type=date format validation is not working
Should be considered a valid date
does not conform to the "date" format
https://npmcdn.com/[email protected]/dist/react-jsonschema-form.js
jsonschema seems to have strong expectations for the date string format, which should be YYYY-MM-DD.
I'm surprised we missed a failing test case.
I know; there's currently no support for "date" string format as it's not part of the current draft-v4 spec (only "date-time" is). But jsonschema, for some reason, supports a custom "date" format.
Hence why expecting a datetime it fails here. I'll probably add support for the "date" string format though, as datetimes are definitely overkill for birth dates.
I'll probably add support for the "date" string format though, as datetimes are definitely overkill for birth dates.
:+1:
Hmm, https://npmcdn.com/react-jsonschema-form/dist/react-jsonschema-form.js still points to 0.28.1. Is there an automatic build of this change? Thank you !
v0.29.0 has just been released featuring this change.
Can somebody Please help me with how to change the date format? for eg - by default it take "YYYY-MM-DD" and I want "MM-DD-YYYY".
should match format date . error when I try to submit the form .
Can somebody Please help me with how to change the date format? for eg - by default it take "YYYY-MM-DD" and I want "MM-DD-YYYY".
We currently don't support a different date format with the default date widget.
Most helpful comment
Can somebody Please help me with how to change the date format? for eg - by default it take "YYYY-MM-DD" and I want "MM-DD-YYYY".