d895aca4e658c0a2411bd4f2bdce11ba58bb9203
[akkoma] / domain_blocks_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.DomainBlocksResponse do
6 require OpenApiSpex
7 alias OpenApiSpex.Schema
8
9 OpenApiSpex.schema(%{
10 title: "DomainBlocksResponse",
11 description: "Response schema for domain blocks",
12 type: :array,
13 items: %Schema{type: :string},
14 example: ["google.com", "facebook.com"]
15 })
16 end