Skip to content

Instantly share code, notes, and snippets.

@jtmarmon
Created May 26, 2015 20:45
Show Gist options
  • Save jtmarmon/b9d43ea96f65f80dbff8 to your computer and use it in GitHub Desktop.
Save jtmarmon/b9d43ea96f65f80dbff8 to your computer and use it in GitHub Desktop.
broken swagger ui
{
"paths": {
"/hello": {
"get": {
"responses": {
"200": {
"schema": {
"$ref": "#/definitions/Message"
},
"description": ""
}
},
"parameters": [
{
"type": "string",
"required": true,
"description": "",
"in": "query",
"name": "name"
}
],
"summary": "say hello",
"tags": [
"hello"
]
}
}
},
"produces": [
"application/json",
"application/x-yaml",
"application/edn",
"application/transit+json",
"application/transit+msgpack"
],
"tags": [
{
"description": "says hello in Finnish",
"name": "hello"
}
],
"swagger": "2.0",
"definitions": {
"Message": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
}
},
"consumes": [
"application/json",
"application/x-yaml",
"application/edn",
"application/transit+json",
"application/transit+msgpack"
],
"basePath": "/",
"info": {
"description": "Compojure Api example",
"title": "Testapp",
"version": "0.0.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment