Spikard.FieldErrorSpec (spikard v0.17.0-rc.1)

Copy Markdown

A field-level error to inject at a specific response path.

path is the dot-separated sequence of field names from the operation root to the field that should fail, e.g. "user" for a top-level field or "order.customer" for a nested one.

Summary

Types

t()

A field-level error to inject at a specific response path.

Types

t()

@type t() :: %Spikard.FieldErrorSpec{
  message: String.t() | nil,
  path: String.t() | nil
}

A field-level error to inject at a specific response path.