json-schema-validator
json-schema-validator copied to clipboard
JsonSchemaFactory/Validation is not consistent
Hi All,
I tied to validate custom JsonSchema with 3 ways
- AutoDetect JsonSchema From JsonNode - No errors, but 11 WARN
- JsonSchema From Url - 2 Errors, No WARN
- JsonSchema From String contents - 2 Errors, No WARN
I am expecting, all 3 schema factory should provide similar result. At this moment, I am not sure which one is correct approach.
Based on our requirement, "AutoDetect JsonSchema From JsonNode" is best fits for us.
Pease find below detail to replicate issue -
Sample code - ValidateJsonSchemaTest.java
used version for testing - com.networknt:json-schema-validator:1.0.66
Screenshot Test Failure -
Log Screenshot -
@abhikt48 Thanks a lot for raising the issue with test cases. We will take a look at your test cases and get the issues fixed.