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

Issue 55: Support for Json schema draft 4 to 7 #57

Merged
merged 6 commits into from
Jul 17, 2020

Conversation

shiveshr
Copy link
Contributor

Signed-off-by: Shivesh Ranjan [email protected]

Change log description
Use everit.json.SchemaLoader to parse the json schema to verify that it is supported for schemas that follow draft specifications from 4 6 or 7.

Purpose of the change
Fixes #55

What the code does
Jackson's JsonSchema module supports Json schema draft 3. Draft 4 to 7 have some additional incompatible changes. JsonSchema is not able to parse a schema which conforms to versions 4 to 7 if they use any keywords that is not present in draft 3.

So we first try to parse the schema using JsonSchema and if it fails, we attempt to parse it using SchemaLoader.
If both fail, the schema is considered invalid.

How to verify it
TBD

shiveshr added 2 commits July 16, 2020 08:19
Signed-off-by: Shivesh Ranjan <[email protected]>
Signed-off-by: Shivesh Ranjan <[email protected]>
@shiveshr shiveshr requested a review from ravisharda July 16, 2020 15:30
Signed-off-by: Shivesh Ranjan <[email protected]>
shiveshr added 3 commits July 16, 2020 21:28
Signed-off-by: Shivesh Ranjan <[email protected]>
Signed-off-by: Shivesh Ranjan <[email protected]>
Signed-off-by: Shivesh Ranjan <[email protected]>
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.

Support Json draft 4, 6 and 7, jackson's library only parses draft 3
2 participants