Current section

Files

Jump to
polarex lib polarex schemas unauthorized.ex
Raw

lib/polarex/schemas/unauthorized.ex

defmodule Polarex.Unauthorized do
@moduledoc """
Provides struct and type for a Unauthorized
"""
@type t :: %__MODULE__{detail: String.t(), error: String.t()}
defstruct [:detail, :error]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[detail: {:string, :generic}, error: {:const, "Unauthorized"}]
end
end