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/json_patch.ex
# NOTE: This file is auto generated by OpenAPI Generator 6.2.1 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule Ory.Model.JsonPatch do
@moduledoc """
A JSONPatch document as defined by RFC 6902
"""
@derive [Poison.Encoder]
defstruct [
:from,
:op,
:path,
:value
]
@type t :: %__MODULE__{
:from => String.t | nil,
:op => String.t,
:path => String.t,
:value => AnyType | nil
}
end
defimpl Poison.Decoder, for: Ory.Model.JsonPatch do
import Ory.Deserializer
def decode(value, options) do
value
|> deserialize(:value, :struct, Ory.Model.AnyType, options)
end
end