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

Is discriminator supported? #323

Closed
NathanHazout opened this issue Jun 22, 2020 · 3 comments
Closed

Is discriminator supported? #323

NathanHazout opened this issue Jun 22, 2020 · 3 comments
Labels
question Further information is requested

Comments

@NathanHazout
Copy link

Does it shortcut validation based on a specific field?

https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#discriminatorObject

@cdimascio
Copy link
Owner

@nasht00, see my comment ajv-validator/ajv-keywords#35 (comment)

As AJV's author mentioned, from the validator's perspective, there is nothing to do. It's a no-op.

However, when defaults are involved, there is some necessary work. The following ticket has been created to handle defaults.

@cdimascio cdimascio added the question Further information is requested label Jun 23, 2020
@cdimascio
Copy link
Owner

cdimascio commented Jun 23, 2020

Two additional tickets to review

@cdimascio
Copy link
Owner

closing this as it's handled by issues #104 (open) and #95 (closed).

if you feel your case is different, please reopen with more details, otherwise feel free to add more commentary to #104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants