Skip to content

Instantly share code, notes, and snippets.

@haedaal
Created March 20, 2021 09:32
Show Gist options
  • Save haedaal/a771d6f3df337b624ae8a2c2d176c0db to your computer and use it in GitHub Desktop.
Save haedaal/a771d6f3df337b624ae8a2c2d176c0db to your computer and use it in GitHub Desktop.
enum test spec for openapi generator
{
"components": {
"examples": {},
"headers": {},
"parameters": {},
"requestBodies": {},
"responses": {},
"schemas": {
"BooleanEnum": {
"enum": ["true", "false"],
"type": "boolean"
},
"NumberEnum": {
"enum": [1, 2, 3, 4],
"type": "number"
},
"StringEnum": {
"enum": ["String1", "String2", "String3", "String4"],
"type": "string"
}
},
"securitySchemes": {}
},
"info": {
"title": "",
"version": "1.0.0"
},
"openapi": "3.0.0",
"paths": {},
"servers": [
{
"url": "http://localhost:8080/api/v1"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment