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
2 changes: 1 addition & 1 deletion .gts-spec-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.12.0
v0.12.1
4 changes: 3 additions & 1 deletion gts-macros/tests/inheritance_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,9 @@ mod tests {
.register_schema(BaseEventV1::<()>::gts_type_id().as_ref(), &base_schema)
.unwrap();

let base_inline = store.resolve_schema_refs(&BaseEventV1::<()>::gts_schema_with_refs());
let base_inline = store
.resolve_schema_refs(&BaseEventV1::<()>::gts_schema_with_refs())
.expect("base schema refs should resolve");

// Base has no $refs to resolve, so inline should be same as with_refs
assert!(
Expand Down
13 changes: 9 additions & 4 deletions gts-macros/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -960,8 +960,9 @@ fn test_schema_inline_inheritance_with_parent() {
.unwrap();

// Base type can use inline resolution
let inlined =
store.resolve_schema_refs(&inheritance_tests::BaseEventV1::<()>::gts_schema_with_refs());
let inlined = store
.resolve_schema_refs(&inheritance_tests::BaseEventV1::<()>::gts_schema_with_refs())
.expect("base schema refs should resolve");
assert!(
inlined.get("properties").is_some(),
"Inlined schema should have properties"
Expand Down Expand Up @@ -990,7 +991,9 @@ fn test_runtime_schema_inline_resolution() {
.unwrap();

// Generate the inlined schema using runtime resolution (only for base type)
let inlined = store.resolve_schema_refs(&base_schema);
let inlined = store
.resolve_schema_refs(&base_schema)
.expect("base schema refs should resolve");
let inlined_str = inlined.to_string();

// Verify that no external $ref references remain (only internal schema refs should remain)
Expand Down Expand Up @@ -1058,7 +1061,9 @@ fn test_runtime_schema_inline_resolution_single_segment() {
.unwrap();

// Generate the inlined schema
let inlined = store.resolve_schema_refs(&EventTopicV1::gts_schema_with_refs());
let inlined = store
.resolve_schema_refs(&EventTopicV1::gts_schema_with_refs())
.expect("event topic schema refs should resolve");

// For single-segment schemas, the result should be essentially the same
assert_eq!(inlined["$id"], "gts://gts.x.core.events.topic.v1~");
Expand Down
Loading
Loading