How to define constant string variable in swagger open api 3.0 ? If I define enum it would be like as follows
"StatusCode": {
"title": "StatusCode",
"enum": [
"success",
"fail"
],
"type": "string"
}
But enums can be list of values, Is there any way to define string constant in swagger open api 3.0
code can be executed form the http://editor.swagger.io/