ahtahkr
4 years agoNew Member
Rest api requires "enum" word at the end of the enum
Hi,
I updated my swagger to use enum, with sample code I found in swagger website.
components:
- schemas:
- Color:
- type: string
- enum:
- - black
- - white
- - red
- - green
- - blue
- Color:
Unfortunately, everytime I make a call to the endpoint ("/color/black"), it requires me to use "blackenum" instead of "black". I want to use "black". Is there something I can do to use "black", instead of "blackenum".
Thank You.