diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-24 14:46:59 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-24 15:16:15 +0400 |
commit | f362836742aabd5b60b92c1296f2bbb6d83a3d59 (patch) | |
tree | e24949c5eb8cdecd29ea83165af9d2bab4447771 /lib/pleroma/web/api_spec/schemas/domain_block_request.ex | |
parent | 1b5f8d19eeccfe202c0377079caa6a1d6f3cacb5 (diff) | |
download | pleroma-f362836742aabd5b60b92c1296f2bbb6d83a3d59.tar.gz |
Support validation for inline OpenAPI schema and automatic tests for examples
Diffstat (limited to 'lib/pleroma/web/api_spec/schemas/domain_block_request.ex')
-rw-r--r-- | lib/pleroma/web/api_spec/schemas/domain_block_request.ex | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/pleroma/web/api_spec/schemas/domain_block_request.ex b/lib/pleroma/web/api_spec/schemas/domain_block_request.ex deleted file mode 100644 index ee9238361..000000000 --- a/lib/pleroma/web/api_spec/schemas/domain_block_request.ex +++ /dev/null @@ -1,20 +0,0 @@ -# Pleroma: A lightweight social networking server -# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/> -# SPDX-License-Identifier: AGPL-3.0-only - -defmodule Pleroma.Web.ApiSpec.Schemas.DomainBlockRequest do - alias OpenApiSpex.Schema - require OpenApiSpex - - OpenApiSpex.schema(%{ - title: "DomainBlockRequest", - type: :object, - properties: %{ - domain: %Schema{type: :string} - }, - required: [:domain], - example: %{ - "domain" => "facebook.com" - } - }) -end |