Skip to content

EmailValidator use ValidatorTypeCode Datetime #281

@avan2s

Description

@avan2s

Hi,

i saw that the EmailValidator class is instantiated as ValidatorTypeCode.DATETIME. Is there a reason why it is not ValidatorTypeCode.FORMAT? From my understanding it should be format, because we write in our json schema:
{ "properties": { "email": { "type": "string", "format": "email" } } }
If i'am right please change it to ValidatorTypeCode.FORMAT please. Otherwise the validation messages will have a confusing type in my opinion.

Best regards,
Andy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions