Lightning.Credentials.Schema (Lightning v2.16.8-pre)
View SourceStructure that can parse JsonSchemas (using ExJsonSchema) and validate
changesets for a given schema.
Summary
Functions
Returns the original (unrecognized) JSON Schema type for a field if the
schema's type was rewritten to "string" during loading, or nil otherwise.
Types
@type t() :: %Lightning.Credentials.Schema{ fields: [atom()], name: String.t() | nil, root: ExJsonSchema.Schema.Root.t(), types: Ecto.Changeset.types(), warnings: %{required(atom()) => String.t()} }
Functions
@spec validate(changeset :: Ecto.Changeset.t(), schema :: t()) :: Ecto.Changeset.t()
Returns the original (unrecognized) JSON Schema type for a field if the
schema's type was rewritten to "string" during loading, or nil otherwise.