"email" format validation is too relaxed
trzejos opened this issue · comments
Josh Trzebiatowski commented
The validator only checks that "@" is in the input string, rather than one of the specifications for the "email" or "idn-email" formats.
https://github.com/python-jsonschema/jsonschema/blob/v4.23.0/jsonschema/_format.py#L238
https://json-schema.org/understanding-json-schema/reference/string#email-addresses
Julian Berman commented
This is intentional behavior, documented here and customizable if you have different needs.