Update OpenApiSpex dependency

This commit is contained in:
Egor Kislitsyn 2021-03-05 15:51:29 +04:00
commit 92ab72dbbb
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
10 changed files with 30 additions and 35 deletions

View file

@ -67,13 +67,11 @@ defmodule Pleroma.Web.ConnCase do
end
defp json_response_and_validate_schema(
%{
private: %{
open_api_spex: %{operation_id: op_id, operation_lookup: lookup, spec: spec}
}
} = conn,
%{private: %{operation_id: op_id}} = conn,
status
) do
{spec, lookup} = OpenApiSpex.Plug.PutApiSpec.get_spec_and_operation_lookup(conn)
content_type =
conn
|> Plug.Conn.get_resp_header("content-type")