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

assert_operation_response is (incorrectly) based on the request's content type, not the response's. #575

Closed
tusooa opened this issue Nov 19, 2023 · 1 comment · Fixed by #584

Comments

@tusooa
Copy link

tusooa commented Nov 19, 2023

https://github.com/open-api-spex/open_api_spex/blob/c1dbca17a3d64c107de18d85311a447cd27e96b2/lib/open_api_spex/test/test_assertions.ex#L157C7-L157C58

This line gets the request's content type, and uses it to fetch the response schema. I do not think this is the correct behaviour, as the response schema should only depend on the response's content type.

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

Successfully merging a pull request may close this issue.

1 participant