JSONSchex.Types.Schema (jsonschex v0.7.0)

Copy Markdown View Source

A compiled JSON Schema, containing executable validation rules and a definition registry for reference resolution.

Summary

Types

t()

@type t() :: %JSONSchex.Types.Schema{
  content_assertion: boolean(),
  defs: map() | nil,
  format_assertion: boolean(),
  loader:
    (String.t() ->
       {:ok, map() | boolean()}
       | {:ok,
          %{:document => map() | boolean(), optional(:base_uri) => String.t()}}
       | {:error, term()})
    | nil,
  raw: map() | nil,
  rules: [JSONSchex.Types.Rule.t()],
  source_id: String.t() | nil
}