Closed tusooa closed 9 months ago
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.
See also https://git.pleroma.social/pleroma/pleroma/-/blob/develop/test/support/conn_case.ex?ref_type=heads#L69
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.