forked from stoplightio/spectral-owasp-ruleset
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change
oneOf
to anyOf
schema in owasp:api4:2019-string-restricted…
… and owasp:api4:2019-string-limit (stoplightio#43) * Change `oneOf` to `anyOf` schema in owasp:api4:2019-string-restricted The use of `oneOf` means that _only_ one of the schema constraints may be true, but it is valid if two or more of the string schema constraint keywords are present: `format`, `pattern`, `enum`, `const`. * Change `oneOf` to `anyOf` schema in owasp:api4:2019-string-limit Similar as with `2019-string-restricted`: the schema check should be `anyOf` instead of `oneOf` in case a schema has more than one of the keywords.
- Loading branch information
1 parent
2fd49c3
commit 343043b
Showing
3 changed files
with
67 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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