Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
marcelstoer opened this issue Feb 21, 2019 · 0 comments
Open

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

marcelstoer opened this issue Feb 21, 2019 · 0 comments

Comments

@marcelstoer
Copy link
Contributor

(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:
  <["*/*"]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant