logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

api_error.ex (497B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.Web.ApiSpec.Schemas.ApiError do
  5. alias OpenApiSpex.Schema
  6. require OpenApiSpex
  7. OpenApiSpex.schema(%{
  8. title: "ApiError",
  9. description: "Response schema for API error",
  10. type: :object,
  11. properties: %{error: %Schema{type: :string}},
  12. example: %{
  13. "error" => "Something went wrong"
  14. }
  15. })
  16. end