Use `json_response_and_validate_schema/2` in tests to validate OpenAPI schema
[akkoma] / lib / pleroma / web / api_spec / schemas / accounts_response.ex
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Web.ApiSpec.Schemas.AccountsResponse do
6 require OpenApiSpex
7
8 OpenApiSpex.schema(%{
9 title: "AccountsResponse",
10 type: :array,
11 items: Pleroma.Web.ApiSpec.Schemas.Account
12 })
13 end