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

fix(schema): Allow compound oneOf for queryProperty #2545

Merged
merged 1 commit into from Jan 28, 2022

Conversation

marshallswain
Copy link
Member

@marshallswain marshallswain commented Jan 27, 2022

Currently we use oneOf to create the queryProperty validations. This works fine until you nest it inside of another oneOf. In this case it fails every time. I've switched it to anyOf and have also added two tests to make sure it's both passing and failing correctly.

Currently we use `anyOf` to create the `queryProperty` validations.  This works fine until you nest it inside of another `oneOf`.  In this case it fails every time.  I've switched it to `anyOf` and have also added two tests to make sure it's working according to spec.
@marshallswain
Copy link
Member Author

Also, I should note that if we don't change to anyOf, the first test I added would fail.

@daffl daffl changed the title fix(queryProperty): allow compound oneOf fix(schema): Allow compound oneOf for queryProperty Jan 27, 2022
@daffl daffl merged commit 7cfea62 into dove Jan 28, 2022
@daffl daffl deleted the dove-compound-query-prop branch January 28, 2022 16:02
daffl pushed a commit that referenced this pull request Feb 15, 2022
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.

None yet

2 participants