swagger-core icon indicating copy to clipboard operation
swagger-core copied to clipboard

trunk does not display some operation results

Open gaffa opened this issue 13 years ago • 1 comments

latest trunk does not display some operation results.

working:

image

{
        "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:

image

{
        "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.

gaffa avatar Aug 19 '13 08:08 gaffa

i am sorry. i opened this here by mistake. it clearly has to go into swagger-ui.

gaffa avatar Aug 29 '13 07:08 gaffa