Skip to content

Instantly share code, notes, and snippets.

@Inirit
Created February 14, 2018 00:25
Show Gist options
  • Select an option

  • Save Inirit/1e5c61ecdfb1f5f9b1b3cd33ae86f2ab to your computer and use it in GitHub Desktop.

Select an option

Save Inirit/1e5c61ecdfb1f5f9b1b3cd33ae86f2ab to your computer and use it in GitHub Desktop.
{
"swagger": "2.0",
"info":
{
"title": "My API",
"description": "My Description",
"version": "1.0.0"
},
"host": "MYHOST:55555",
"basePath": "/",
"schemes": ["http"],
"consumes": ["application/json"],
"produces": ["application/json"],
"definitions":
{
"MyObject":
{
"required": ["MyEnumProperty"],
"type": "object",
"properties":
{
"MyEnumProperty":
{
"$ref": "#/definitions/MyEnum"
}
}
},
"MyEnum":
{
"enum": ["FirstValue", "SecondValue", "ThirdValue"],
"type": "string"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment