Support for Draft v4 multipleOf, not, allOf, anyOf, and oneOf keywords. #49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Similar to Draft v3
divisibleBy, the Draft v4multipleOfkeyword basically does the same thing. It validates that the division of a numeric instance by the value ofmultipleOfis an integer. Implemented the functionality and enabled the Draft v4 unit tests.Also implemented the Draft v4
notkeyword. Withnot, an instance validates if it does not match the specified schema. Enabled the Draft v4nottests and also wrote supplemental unit tests.Implemented the Draft v4
allOf,anyOf, andoneOfkeywords as well. These verify that an instance validates either all, at least one, or exactly one of the specified schemas. Enabled the Draft v4 unit tests for each of these new keywords.