We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
anyOf
oneOf
allOf
not
https://json-schema.org/understanding-json-schema/reference/combining
The text was updated successfully, but these errors were encountered:
The names I'm thinking of now:
Option 1
Use the key names as method names (meh)
t.anyOf() t.oneOf() t.allOf() t.not()
Option 2
Use the actions that the docs use to describe what anyOf, allOf, etc are. (see link above)
t.or() -> anyOf t.xor() -> oneOf t.and() -> allOf t.not() -> not
Option 3
Use custom/mixed naming patterns. AKA, what makes sense to me
t.any() -> anyOf ... but NOT `any` type t.one() -> oneOf t.all() -> allOf t.not() -> not
I lean for Option 2 and Option 3
Thoughts?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
anyOf
oneOf
allOf
not
The text was updated successfully, but these errors were encountered: