FeaturevisorSchemas.Issue (featurevisor_schemas v2.1.0)

Copy Markdown View Source

One problem with a value, with what an application needs to word it.

path holds keys and indexes, code names what went wrong, such as "required" or "minLength", and params hold what the message is filled from. mutation names the mutation that set the rule, when one did.

Summary

Functions

The path as a field name with dots, such as items.0.name.

Types

t()

@type t() :: %FeaturevisorSchemas.Issue{
  code: String.t(),
  message: String.t(),
  mutation: String.t() | nil,
  params: map(),
  path: [String.t() | non_neg_integer()],
  schema: String.t()
}

Functions

field(issue)

@spec field(t()) :: String.t()

The path as a field name with dots, such as items.0.name.