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

Validation issue in oneOf when elements have optional fields #185

Closed
ddobrin opened this issue Sep 9, 2019 · 0 comments
Closed

Validation issue in oneOf when elements have optional fields #185

ddobrin opened this issue Sep 9, 2019 · 0 comments

Comments

@ddobrin
Copy link
Contributor

ddobrin commented Sep 9, 2019

Currently, oneOf validates each element in the schema.

2 problems need to be addressed:

  • prevent more than one element to be passed in oneOf - violation of OpenAPI spec
  • address the PropertiesValidator, which can not distinguish whether a missing node is an optional field or one of the oneOf elements which is not present in the request
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