Skip to content

Fix schema incompatibility check#46

Merged
andreasjansson merged 3 commits into
mainfrom
fix-schema-incompatibility-check
Dec 4, 2025
Merged

Fix schema incompatibility check#46
andreasjansson merged 3 commits into
mainfrom
fix-schema-incompatibility-check

Conversation

@andreasjansson

Copy link
Copy Markdown
Member

No description provided.

The tests were using a flat dict structure for Input schemas:
  {"Input": {"text": {...}}}

But the real schema structure from get_schemas has a "properties" wrapper:
  {"Input": {"type": "object", "properties": {"text": {...}}}}

This masked a bug in check_backwards_compatible that was fixed in schema.py.
Added helper function make_input_schema() to properly construct test schemas
and a new test for train=True to cover TrainingInput schemas.
This test uses a full real-world schema structure with all the metadata
(title, x-order, nullable, format, etc.) to ensure check_backwards_compatible
correctly handles schemas returned from get_schemas().
@andreasjansson andreasjansson merged commit d9a9436 into main Dec 4, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant