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
Hey, first of all thanks for your wonderful project!
Right now the only way to restrict a format of a string is with pattern, but JSON Schema also supports format and some built-in formats could be pretty useful to support.
For example, email is notoriously hard to parse using a regex, but a fairly clean BNF is defined in RFC 5321 (which JSON Schema uses for the email format) and I think it should be pretty straightforward to port.
Do you think this could be something you could use? I can try and work out a PR if you'd like :-)
The text was updated successfully, but these errors were encountered:
Hey, first of all thanks for your wonderful project!
Right now the only way to restrict a format of a string is with
pattern
, but JSON Schema also supportsformat
and some built-in formats could be pretty useful to support.For example, email is notoriously hard to parse using a regex, but a fairly clean BNF is defined in RFC 5321 (which JSON Schema uses for the
email
format) and I think it should be pretty straightforward to port.Do you think this could be something you could use? I can try and work out a PR if you'd like :-)
The text was updated successfully, but these errors were encountered: