Skip to content

SwaggerDeserializer does not handle RefResponse #122

@tschaible

Description

@tschaible

When processing paths, SwaggerDeserializer lacks handling of referenced responses and does not create objects of RefResponse type. Instead, when a referenced response is defined, an empty Response object is returned.

The simplified JSON below shows this error. It is expected that getting the response for "200" would return a RefResponse with $ref set to "#/responses/OK", however a Response is returned.

{
    "paths": {
        "/pet": {
            "get": {
                "responses": {
                    "200": {
                        "$ref": "#/responses/OK"
                    }
                }
            }
        }
    },
    "swagger": "2.0"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions