RelayMark.Diagnostic (relay_mark_elixir v0.5.2)

Copy Markdown View Source

A portable RelayMark validation diagnostic.

Diagnostics use JSON string keys so they can be compared directly with the canonical conformance fixtures and serialized without adapter-specific conversion.

Summary

Types

level()

@type level() :: String.t()

t()

@type t() :: %{required(String.t()) => term()}

Functions

error(code, message, options \\ [])

@spec error(String.t(), String.t(), keyword()) :: t()