Skip to content

Commit a9c3ec8

Browse files
authored
Merge pull request #57 from dev-five-git/fix-deploy-issue
Fix deploy issue
2 parents 5371b59 + 96fe6cf commit a9c3ec8

4 files changed

Lines changed: 11 additions & 6 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"changes":{"crates/vespera_core/Cargo.toml":"Patch","crates/vespera/Cargo.toml":"Patch","crates/vespera_macro/Cargo.toml":"Patch"},"note":"Fix deploy issue","date":"2026-01-27T16:26:51.362187700Z"}

.github/workflows/CI.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737
run: cargo check
3838
- name: Lint
3939
run: cargo clippy --all-targets --all-features -- -D warnings
40+
- name: Test Deploy
41+
run: cargo publish --dry-run
4042
- name: Test
4143
run: |
4244
# rust coverage issue

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/vespera_macro/src/schema_macro.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,6 @@ fn find_struct_from_path(ty: &Type) -> Option<StructMetadata> {
454454
/// Or: `schema_type!(NewTypeName from SourceType, omit = ["field1", "field2"])`
455455
/// Or: `schema_type!(NewTypeName from SourceType, rename = [("old", "new")])`
456456
/// Or: `schema_type!(NewTypeName from SourceType, add = [("field": Type)])`
457-
#[derive(Debug)]
458457
pub struct SchemaTypeInput {
459458
/// The new type name to generate
460459
pub new_type: Ident,
@@ -994,8 +993,11 @@ mod tests {
994993
let tokens = quote::quote!(UserDTO from User, unknown = ["a"]);
995994
let result: syn::Result<SchemaTypeInput> = syn::parse2(tokens);
996995
assert!(result.is_err());
997-
let err = result.unwrap_err().to_string();
998-
assert!(err.contains("unknown parameter"));
996+
// Note: Can't use unwrap_err() because SchemaTypeInput doesn't impl Debug (contains syn::Type)
997+
match result {
998+
Err(e) => assert!(e.to_string().contains("unknown parameter")),
999+
Ok(_) => panic!("Expected error"),
1000+
}
9991001
}
10001002

10011003
// Tests for `add` parameter

0 commit comments

Comments
 (0)