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

Support schemas with allOf intersection types #36

Merged
merged 1 commit into from
Feb 2, 2024
Merged

Conversation

aj-foster
Copy link
Owner

This change adds support for schemas with allOf intersecting types. It does this by naively merging the properties of the sub-schemas. This may not be appropriate in all circumstances.

Related to #35.

@jinfiesto
Copy link

jinfiesto commented Jan 31, 2024

Is the main concern here constructing illogical types? For example, if the combined allof resolves to a different type than the given type for a property?

@aj-foster
Copy link
Owner Author

That is a concern. Mostly I just haven't explored all of the interesting use-cases for allOf schemas, so this level of support might not be useful. But that's okay — we'll figure it out as we go.

@aj-foster aj-foster merged commit afadb9b into main Feb 2, 2024
2 checks passed
@aj-foster aj-foster deleted the aj/all-of branch February 2, 2024 14:14
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