# NOTE: This file is auto generated by OpenAPI Generator 7.22.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule Spatio.Model.ApiError do
@moduledoc """
Standard error envelope returned by 4xx and 5xx responses across the SpatioAPI. Some endpoints attach extra machine-readable fields (`code`, `accounts`, `requiresPassword`, etc.) — those are documented on the individual operation.
"""
@derive JSON.Encoder
defstruct [
:error,
:code
]
@type t :: %__MODULE__{
:error => String.t,
:code => String.t | nil
}
def decode(value) do
value
end
end