Skip to content

Support for Enum in query params #504

@djpate

Description

@djpate

Right now if an input for a query is an enum, the resulting openapi that gets generated sets it as a string type but does not set an enum key with the allowed list.

Screenshot from 2024-05-13 09-22-39

Instead of a

schema: 
  type: string

it should return

schema:
  type: string
  enum:
    - foo
    - bar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions