File size: 392 Bytes
88211d3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
defmodule PlausibleWeb.Plugins.API.Schemas.Error do
  @moduledoc """
  OpenAPI schema for an error included in a response
  """

  use PlausibleWeb, :open_api_schema

  OpenApiSpex.schema(%{
    description: """
    An explanation of an error that occurred within the Plugins API
    """,
    type: :object,
    required: [:detail],
    properties: %{detail: %Schema{type: :string}}
  })
end