Packages
OpenAPI API client for Ory Kratos, Ory's central identity management solution with hardened authentication, MFA, FIDO2, TOTP, WebAuthn, SSO, profile management, and more.
Current section
Files
Jump to
Current section
Files
lib/ory/model/error_generic.ex
# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule Ory.Model.ErrorGeneric do
@moduledoc """
The standard Ory JSON API error format.
"""
@derive [Poison.Encoder]
defstruct [
:error
]
@type t :: %__MODULE__{
:error => Ory.Model.GenericError.t
}
end
defimpl Poison.Decoder, for: Ory.Model.ErrorGeneric do
import Ory.Deserializer
def decode(value, options) do
value
|> deserialize(:error, :struct, Ory.Model.GenericError, options)
end
end