Skip to content

Instantly share code, notes, and snippets.

@ponelat
Created May 1, 2015 09:34
Show Gist options
  • Save ponelat/35c55981f5427fe6f0bc to your computer and use it in GitHub Desktop.
Save ponelat/35c55981f5427fe6f0bc to your computer and use it in GitHub Desktop.
{
"swagger": "2.0",
"host": "petstore.swagger.wordnik.com",
"info": {
"title": "swagger-ui#1234",
"title": "Describe your issue here",
"version": "1.0.0"
},
"paths": {
"/road": {
"get": {
"parameters": [
{
"in": "body",
"name": "test",
"schema": {
"$ref": "#/definitions/TestModel"
}
}
],
"responses": {
"200": {
"description": "Successful response",
"schema": {
"$ref": "#/definitions/TestModel"
}
}
}
}
}
},
"definitions": {
"TestModel": {
"properties": {
"Favorite": {
"properties": {
"i_am_nested": {
"type": "boolean"
}
},
"type": "object"
}
},
"type": "object"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment