graphql-to-openapi icon indicating copy to clipboard operation
graphql-to-openapi copied to clipboard

Support for Enum in query params

Open djpate opened this issue 9 months ago • 0 comments

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

djpate avatar May 13 '24 13:05 djpate