-
Notifications
You must be signed in to change notification settings - Fork 241
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
Validate Json schema using JsonSchema.NET #1626
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
92dc278
Use JsonSchema.NET's Evaluate() method to validate a Json schema inst…
MaggieKimani1 b90aa03
Remove unnecessary using
MaggieKimani1 681f60a
Add a null check
MaggieKimani1 e8d504f
Make method public to expose it to clients
MaggieKimani1 1ecc6fd
Remove whitespace
MaggieKimani1 1d6b0a6
Decorate the nullable keyword with SchemaSpecVersion attribute for ev…
MaggieKimani1 f770dd6
Update assertions with correct test output post validation
MaggieKimani1 6ac327f
Fix failing test
MaggieKimani1 3f058f4
Refactor code to create JSON schema mappings without a Ref in the com…
MaggieKimani1 bd5287e
Merge remote-tracking branch 'origin/release/2.0.0' into mk/validate-…
MaggieKimani1 6e7c5a8
Fix failing tests
MaggieKimani1 e76101a
Adds an optional host document param to use during validation in orde…
MaggieKimani1 c829276
Walk each schema to resolve any present $refs
MaggieKimani1 2baf2f4
Code cleanup
MaggieKimani1 4591988
Update API interface
MaggieKimani1 3cae500
Adds an optional host document parameter
MaggieKimani1 7f5d24c
Register the host document with the schema registry for reference res…
MaggieKimani1 ff38301
Implement FindSubschema by fetching the referenced schema from our co…
MaggieKimani1 dcc7b7f
Fix failing tests
MaggieKimani1 babc887
Set the new schema's baseUri to match the document's
MaggieKimani1 d6593ab
Refactor V2 schema deserializer to update the referenceable schema's …
MaggieKimani1 0fb689d
Register the OpenApi-based vocabs
MaggieKimani1 85a2b54
Add a null check
MaggieKimani1 b09eb62
Revert the V31 deserializer
MaggieKimani1 a278267
Use the extension method from JsonSchema.NET to get a dicriminator ob…
MaggieKimani1 bb2726c
Merge branch 'mk/validate-json-schema' of https://github.com/microsof…
MaggieKimani1 e93cd4c
Use System.Text to deserialize a node into a JSON schema
MaggieKimani1 d1cb002
Replace Enumerable methods with indexing
MaggieKimani1 5c96d1c
Exclude files from build
MaggieKimani1 71c3963
Revert code to fix failing tests
MaggieKimani1 d0380ce
Remove static field modifier
MaggieKimani1 6cd0f02
Merge branch 'release/2.0.0' into mk/validate-json-schema
MaggieKimani1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nullable is not a supported keyword in OpenAPI 3.1 It is implemented by assigning an array to the type property and including null as one of the values in the array.