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

Mutually exclusive fields in JSON schema #104

Open
felixfontein opened this issue Jun 23, 2020 · 0 comments
Open

Mutually exclusive fields in JSON schema #104

felixfontein opened this issue Jun 23, 2020 · 0 comments

Comments

@felixfontein
Copy link
Collaborator

There are multiple places in the schema where mutual exclusion is checked by code. We would eventually like this mutual exclusion to show up in the JSON schema.

@abadger thinks this is the pydantic feature which will allow us to add an xor to the json schema: https://pydantic-docs.helpmanual.io/usage/schema/#schema-customization

Whoever does implement it will also need to know a little about json-schema. @abadger thinks this is the heart of what we'll need to output: http://json-schema.org/understanding-json-schema/reference/combining.html#oneof

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

No branches or pull requests

1 participant