graphql-to-openapi
graphql-to-openapi copied to clipboard
Support for Enum in query params
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.
Instead of a
schema:
type: string
it should return
schema:
type: string
enum:
- foo
- bar