Credo fixes.

This commit is contained in:
lain 2020-04-27 14:02:11 +02:00
parent e62f8542a1
commit 00e956528b

View file

@ -4,11 +4,11 @@
defmodule Pleroma.Web.ApiSpec.ChatOperation do
alias OpenApiSpex.Operation
alias OpenApiSpex.Schema
alias Pleroma.Web.ApiSpec.Helpers
alias Pleroma.Web.ApiSpec.Schemas.ChatMessageCreateRequest
alias Pleroma.Web.ApiSpec.Schemas.ChatMessageResponse
alias Pleroma.Web.ApiSpec.Schemas.ChatResponse
alias OpenApiSpex.Schema
@spec open_api_operation(atom) :: Operation.t()
def open_api_operation(action) do
@ -120,7 +120,7 @@ def post_chat_message_operation do
}
end
def chats_response() do
def chats_response do
%Schema{
title: "ChatsResponse",
description: "Response schema for multiple Chats",
@ -182,7 +182,7 @@ def chats_response() do
}
end
def chat_messages_response() do
def chat_messages_response do
%Schema{
title: "ChatMessagesResponse",
description: "Response schema for multiple ChatMessages",