Apply suggestion to lib/pleroma/web/pleroma_api/controllers/chat_controller.ex

This commit is contained in:
lain 2020-04-29 19:49:03 +00:00
parent 589ce1e96b
commit 145d35ff70

View file

@ -31,7 +31,7 @@ defmodule Pleroma.Web.PleromaAPI.ChatController do
%{scopes: ["read:statuses"]} when action in [:messages, :index]
)
plug(OpenApiSpex.Plug.CastAndValidate)
plug(OpenApiSpex.Plug.CastAndValidate, render_error: Pleroma.Web.ApiSpec.RenderError)
defdelegate open_api_operation(action), to: Pleroma.Web.ApiSpec.ChatOperation