Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changepacks/changepack_log_PuelXaL-yjqfXQx8crqM_.json
Original file line number Diff line number Diff line change
@@ -0,0 +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"}
2 changes: 2 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
run: cargo check
- name: Lint
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Test Deploy
run: cargo publish --dry-run
- name: Test
run: |
# rust coverage issue
Expand Down
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions crates/vespera_macro/src/schema_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,6 @@ fn find_struct_from_path(ty: &Type) -> Option<StructMetadata> {
/// Or: `schema_type!(NewTypeName from SourceType, omit = ["field1", "field2"])`
/// Or: `schema_type!(NewTypeName from SourceType, rename = [("old", "new")])`
/// Or: `schema_type!(NewTypeName from SourceType, add = [("field": Type)])`
#[derive(Debug)]
pub struct SchemaTypeInput {
/// The new type name to generate
pub new_type: Ident,
Expand Down Expand Up @@ -994,8 +993,11 @@ mod tests {
let tokens = quote::quote!(UserDTO from User, unknown = ["a"]);
let result: syn::Result<SchemaTypeInput> = syn::parse2(tokens);
assert!(result.is_err());
let err = result.unwrap_err().to_string();
assert!(err.contains("unknown parameter"));
// Note: Can't use unwrap_err() because SchemaTypeInput doesn't impl Debug (contains syn::Type)
match result {
Err(e) => assert!(e.to_string().contains("unknown parameter")),
Ok(_) => panic!("Expected error"),
}
}

// Tests for `add` parameter
Expand Down