Closed sushmayellampally closed 6 years ago
Why would the validation fails if I add Jaxb annotation introspector?
Closing this issue. This error is related to https://github.com/java-json-tools/json-schema-validator/issues/103. Adding the date and time attributes fixed the error.
My POJO element is:
During generating Json schema, I am using both JAXB and Jackson annotaions by adding introspectors like below:
The generated Json schema looks like:
A Json request example: { .... "TrackDt": "2017-06-13", .... } While validating this JSON instance against the schema, the date is validated and the response contains the dates according to the pattern specified in @JsonFormat annotation.
Now , I want to add JAXB annotation introspector and use JAXB annotations also. But the validator throws following error: