Json schema failed in spec validation for the date range less than 1941

224 views
Skip to first unread message

Vasanth

unread,
Feb 7, 2018, 4:25:21 AM2/7/18
to JSON Schema
Hi Team,

I have faced some strange issue with the respect to JSON Schema validation with the respect to date. which is not accepting date less than 1941.

My Schema looks below,

"birth_date":{
"type":"string",
"format":"date"}

Exact Error: SpecValidationError: Failed to pass spec validation: InvalidDataError: for record 3337 Exceptions are: /birth_date string \"1940-04-14\" is invalid against requested date format(s) yyyy-MM-dd


I am using Jackson parser and json_scheme_validation_2.2.4.jar. This issue not occuring in the development but captured in higher environments.

Any help would appreciate.



Ben Hutton (@Relequestual)

unread,
Feb 8, 2018, 4:41:32 AM2/8/18
to JSON Schema
There's nothing in the JSON Schema spec that prevents this.

You will need to log an issue with the library author.
Reply all
Reply to author
Forward
0 new messages