ExJsonschema.ValidationError exception (ExJsonschema v0.1.17)
View SourceRepresents a JSON Schema validation error with detailed path and message information.
Summary
Functions
Creates a detailed ValidationError (backward compatibility). Only includes basic error information without verbose context.
Creates a ValidationError from a map returned by the NIF.
Returns a formatted error message for the exception.
Types
@type t() :: %ExJsonschema.ValidationError{ __exception__: true, annotations: map() | nil, context: map() | nil, instance_path: String.t(), instance_value: any() | nil, keyword: String.t() | nil, message: String.t(), schema_path: String.t(), schema_value: any() | nil, suggestions: [String.t()] | nil }
Functions
Creates a detailed ValidationError (backward compatibility). Only includes basic error information without verbose context.
Creates a ValidationError from a map returned by the NIF.
Supports both detailed format (basic fields only) and verbose format (with additional context, values, and suggestions).
Returns a formatted error message for the exception.