Skip to content

Custom date-time format not possible since version 1.0.82 #784

@kad-koninr1

Description

@kad-koninr1

In version 1.0.82 the following code was removed from FormatKeyword::newValidator. Making it impossible to add a custom format for date-time.

format = formats.get(formatName);
// if you set custom format, override default Email/DateTime/UUID Validator
if (format != null) {
  return new FormatValidator(schemaPath, schemaNode, parentSchema, validationContext, format, type);
}

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