Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prioritize base schema over schemas in oneOf, anyOf, allOf, and $ref #74

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

hudson-ai
Copy link
Collaborator

In particular, if a schema supplies properties and a $ref to another schema with properties, the properties in the root schema will be inserted first. This feels a bit more intuitive and is consistent with existing tests in guidance.

Ordering between the other applicators (oneOf, anyOf, allOf, and $ref) is still arbitrary -- may want to consider their order in the parent schema in the future (but this is beyond the scope of this PR)

@hudson-ai hudson-ai requested a review from mmoskal November 26, 2024 02:07
@hudson-ai hudson-ai merged commit cf66a07 into guidance-ai:main Nov 26, 2024
2 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.

2 participants