ExJsonschema.CompilationError (ExJsonschema v0.1.0)

View Source

Represents an error that occurred during JSON Schema compilation.

This struct provides detailed information about what went wrong during schema compilation, including the error type, message, and any additional context.

Summary

Functions

Creates a CompilationError from a map returned by the NIF.

Types

t()

@type t() :: %ExJsonschema.CompilationError{
  details: String.t() | nil,
  message: String.t(),
  type: :json_parse_error | :schema_validation_error | :compilation_error
}

Functions

from_map(map)

@spec from_map(map()) :: t()

Creates a CompilationError from a map returned by the NIF.