aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/api_spec/schemas/marker.ex
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-05-05 16:45:34 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-05-05 16:45:34 +0400
commitbabcae7130d3bc75f85adeef1845997cd091eb84 (patch)
treec6a84ae6427795d5b399c0b23588103f64145427 /lib/pleroma/web/api_spec/schemas/marker.ex
parent8096565653f262844214d715228c31d4ef761f57 (diff)
downloadpleroma-babcae7130d3bc75f85adeef1845997cd091eb84.tar.gz
Move single used schemas to Marker operation schema
Diffstat (limited to 'lib/pleroma/web/api_spec/schemas/marker.ex')
-rw-r--r--lib/pleroma/web/api_spec/schemas/marker.ex31
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/pleroma/web/api_spec/schemas/marker.ex b/lib/pleroma/web/api_spec/schemas/marker.ex
deleted file mode 100644
index 64fca5973..000000000
--- a/lib/pleroma/web/api_spec/schemas/marker.ex
+++ /dev/null
@@ -1,31 +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.Marker do
- require OpenApiSpex
- alias OpenApiSpex.Schema
-
- OpenApiSpex.schema(%{
- title: "Marker",
- description: "Schema for a marker",
- type: :object,
- properties: %{
- last_read_id: %Schema{type: :string},
- version: %Schema{type: :integer},
- updated_at: %Schema{type: :string},
- pleroma: %Schema{
- type: :object,
- properties: %{
- unread_count: %Schema{type: :integer}
- }
- }
- },
- example: %{
- "last_read_id" => "35098814",
- "version" => 361,
- "updated_at" => "2019-11-26T22:37:25.239Z",
- "pleroma" => %{"unread_count" => 5}
- }
- })
-end