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
When trying to compile or validate a valid ISO 8601 date in the month of October, fastjsonschema returns a JsonSchemaValueException.
>>> fastjsonschema.compile({'$schema': 'http://json-schema.org/draft-07/schema', 'format': 'date'})('2018-10-05')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 6, in validate
fastjsonschema.exceptions.JsonSchemaValueException: data must be date
When trying to compile or validate a valid ISO 8601 date in the month of October, fastjsonschema returns a
JsonSchemaValueException
.The issue was most likely caused here:
python-fastjsonschema/fastjsonschema/draft07.py
Line 6 in 524b9e8
To match October correctly it should probably be
(?P<month>(0[1-9]|1[0-2]))
for the month regex part.The text was updated successfully, but these errors were encountered: