Content-Length: 256506 | pFad | http://github.com/oapi-codegen/oapi-codegen-exp/issues/5

ad Requests with missing `required` `format: date-time` parameters are not rejected · Issue #5 · oapi-codegen/oapi-codegen-exp · GitHub
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.

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









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: http://github.com/oapi-codegen/oapi-codegen-exp/issues/5

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy