Skip to content

Fallback to standard string handling for unknown "format" values #64

Closed

Description

@acgray

Is your feature request related to a problem? Please describe.
If a string field uses an arbirtrary custom "format" value, as allowed by the OpenAPI spec, it is rejected by the parser.

Describe the solution you'd like
As it is guaranteed to be a string, even if the exact format is unknown, I suggest that the parser should follow the recommended behaviour in the spec and fall back to handling the field as a plain string. This is the behaviour recommended by the specification:

Tools that do not support a specific format may default back to the type alone, as if the format is not specified.

Activity

  1. added
    ✨ enhancement
    on Jun 8, 2020
  2. added this to the 0.4.2 milestone on Jun 8, 2020
  3. dbanty commented on Jun 13, 2020

    @dbanty
    Collaborator

    Changes are merged in and will be available in 0.4.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✨ enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions