json-schema-validator icon indicating copy to clipboard operation
json-schema-validator copied to clipboard

JsonSchemaFactory/Validation is not consistent

Open abhikt48 opened this issue 2 years ago • 1 comments

Hi All,

I tied to validate custom JsonSchema with 3 ways

  1. AutoDetect JsonSchema From JsonNode - No errors, but 11 WARN
  2. JsonSchema From Url - 2 Errors, No WARN
  3. 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 -
image

Log Screenshot - image

abhikt48 avatar Mar 07 '22 14:03 abhikt48

@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.

stevehu avatar Mar 08 '22 04:03 stevehu