Seems to still be looking for this, readd it

This commit is contained in:
Chizu 2023-03-14 06:22:20 +09:00
parent 8490f686ac
commit 6e7cef04af

View file

@ -130,4 +130,32 @@ defmodule Pleroma.Web.ApiSpec.SearchOperation do
} }
end end
defp results do
%Schema{
title: "SearchResults",
type: :object,
properties: %{
accounts: %Schema{
type: :array,
items: Account,
description: "Accounts which match the given query"
},
statuses: %Schema{
type: :array,
items: Status,
description: "Statuses which match the given query"
},
hashtags: %Schema{
type: :array,
items: %Schema{type: :string},
description: "Hashtags which match the given query"
}
},
example: %{
"accounts" => [Account.schema().example],
"statuses" => [Status.schema().example],
"hashtags" => ["cofe"]
}
}
end
end end