Skip to content

Custom validators for format of strings #56

Closed
@domenkozar

Description

@domenkozar

As per https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types

However, to support documentation needs, the format property is an open string-valued property, and can have any value. Formats such as "email", "uuid", and so on, MAY be used even though undefined by this specification. Types that are not accompanied by a format property follow the type definition in the JSON Schema. Tools that do not recognize a specific format MAY default back to the type alone, as if the format is not specified.

It would be great if openapi-core allows custom validation of format: uuid, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueIndicates an issue ready for a new contributor.help wantedIndicates an issue that needs help from a contributor.kind/enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions