Seems to still be looking for this, readd it

This commit is contained in:
Chizu 2023-03-14 06:22:20 +09:00
parent cc0b3b5aab
commit 87d32b3286

View file

@ -177,4 +177,32 @@ defmodule Pleroma.Web.ApiSpec.SearchOperation do
}
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