You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Exception while reading input message; nested exception is
com.github.fge.jsonschema.core.exceptions.ProcessingException: fatal: string
"2017-06-13" is invalid against requested date format(s) [yyyy-MM-
dd'T'HH:mm:ssZ, yyyy-MM-dd'T'HH:mm:ss.[0-9]{1,12}Z] level: "fatal" schema:
{"loadingURI":"#","pointer":"../properties/TrackDt"}
instance: {"pointer":"/TrackDt"} domain: "validation" keyword: "format"
attribute: "date-time" value: "2017-06-13" expected: ["yyyy-MM-
dd'T'HH:mm:ssZ","yyyy-MM-dd'T'HH:mm:ss.[0-9]{1,12}Z"]
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
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:
The text was updated successfully, but these errors were encountered: