oatpp / oatpp-swagger

OpenApi 3.0.0 docs + Swagger UI for oatpp services
https://oatpp.io/
Apache License 2.0
90 stars 51 forks source link

bad interpretation of enum schemas #81

Open yoyos opened 1 year ago

yoyos commented 1 year ago

An openapi using this schema

schemas:
    CaptureMode:
      type: string
      enum:
        - idle
        - snapshot
        - freerun
        - calibration

is not interpreted correctly by the oatpp-swagger ui and it makes a bad API call without additional double quotes :

image

The same openapi spec renders doubles quotes correctly on https://editor.swagger.io:

image