logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma

domain_blocks_response.ex (490B)


      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