Skip to content

Response body comparator does not de-reference when reading content types #455

@jgoussard

Description

@jgoussard

Issue

The response body comparator uses responses[status].content.* keys to find the existing content types. However, when the response is defined as a $ref, it needs to be de-referenced first.

Fix: #454

The issue was not detected in the tests because by default if no content type is found, application/json is used and it turned out to be the actual content type used in the fixture. The PR above ensures a test is added using text/plain content type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions