swagger-core
swagger-core copied to clipboard
trunk does not display some operation results
latest trunk does not display some operation results.
working:

{
"path": "/dev/return/{statuscode}",
"operations": [
{
"method": "GET",
"summary": "status",
"notes": "will return a response with given status code",
"type": "void",
"nickname": "returnWithCode",
"produces": ["application/json"],
"parameters": [
{
"name": "statuscode",
"description": "the http status code",
"required": true,
"allowMultiple": false,
"type": "integer",
"format": "int32",
"paramType": "path"
}
]
}
]
}
not working:

{
"path": "/dev/ping",
"operations": [
{
"method": "GET",
"summary": "ping",
"notes": "will return 'pong'",
"type": "string",
"nickname": "ping",
"produces": ["application/json"],
"parameters": []
}
]
}
As you can see in the second case the response is not displayed.
i am sorry. i opened this here by mistake. it clearly has to go into swagger-ui.