FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(schema): Allow compound oneOf for queryProperty by marshallswain · Pull Request #2545 · feathersjs/feathers · GitHub

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

Merged
daffl merged 1 commit into
dovefrom
dove-compound-query-prop
Jan 28, 2022
Merged

fix(schema): Allow compound oneOf for queryProperty#2545
daffl merged 1 commit into
dovefrom
dove-compound-query-prop

Conversation

marshallswain commented Jan 27, 2022
edited
Loading

Copy link
Copy Markdown
Member

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.

Copy link
Copy Markdown
Member Author

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

marshallswain requested a review from daffl January 27, 2022 21:39
daffl changed the title fix(queryProperty): allow compound oneOf fix(schema): Allow compound oneOf for queryProperty Jan 27, 2022
daffl merged commit 7cfea62 into dove Jan 28, 2022
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL