Skip to content

Required does not apply if set the format to date #2039

@pepebotika69

Description

@pepebotika69

Hello!

-   description: Checkin date
    in: query
    name: checkin_at # todo: required do not work if format: date
    required: true
    schema:
        type: string
        format: date

if i comment format: date the generated code will require the field.

If I use format: date I get:

CheckinAt openapi_types.Date `form:"checkin_at" json:"checkin_at"`

If I dont:

CheckinAt string `form:"checkin_at" json:"checkin_at"`

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