TypeSafe.ResponseValidationError exception (TypeSafe v0.2.2)

Copy Markdown View Source

A successful HTTP response whose body was missing or structurally invalid required data.

:field_path names the first offending field, such as "answers.tone.confidence".

Summary

Types

t()

@type t() :: %TypeSafe.ResponseValidationError{
  __exception__: term(),
  body: term(),
  endpoint: String.t() | nil,
  field_path: String.t(),
  headers: %{optional(String.t()) => String.t()},
  message: String.t(),
  request_id: String.t() | nil,
  status: pos_integer()
}