Skip to content

GET/DELETE shouldn't verify request media type #55

@marcelstoer

Description

@marcelstoer

(I know this project is looking for a new maintainer but we can still report issues in the meantime)

As per https://swagger.io/docs/specification/2-0/mime-types/

Note that consumes only affects operations with a request body, such as POST, PUT and PATCH. It is ignored for bodiless operations like GET.

Hence, this library shouldn't verify consumes for GET and DELETE and failures like below should be ignored.

The following 6 assertions failed:
1) [Checking 'consumes' of 'GET' operation of path '/v1/failure-messages'] 
Expecting:
  <["*/*"]>
to contain only:
  <["application/json"]>
elements not found:
  <["application/json"]>
and elements not expected:
  <["*/*"]>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions