surangamas
3 years agoNew Contributor
Adding descriptions to enum values
HI everyone, just wondering whether there is a way to add descriptions to enum values, by enum values, I am referring to this: https://swagger.io/docs/specification/data-models/enums/
For example, consider the following enum values:
- enum:
- - black
- - white
- - red
- - green
- - blue
My question is, can we do something like this:
- enum:
- - black:
- description: color is black
- - white:
- description: color is black
- ...
I validated the above in both Postman and Swagger editor, and they passed the validation, but I just want to know if this is the right way to do it?