Skip to content

Requests with missing required format: date-time parameters are not rejected #5

Description

@WillMorrison

The generated runtime code binds a missing required query parameter with format: date-time as the zero time.Time object instead of rejecting the request. This bug is related to the format: date-time, as requests missing required string query parameters without a format are correctly rejected.

Reproduction demo, including a comparison with oapi-codegen v2 behaviour, can be found in https://github.com/WillMorrison/vigilant-octo-potato
I have only tried the std-http server type and query parameters.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions