package mcp-kit
Module Jsonschema_core.ErrorSource
Validation error types.
Errors carry both the instance path (where in the data) and the schema path (which keyword). Combinator keywords (allOf, anyOf, etc.) attach sub-errors in context.
Source
type t = {instance_path : Json_pointer.t;schema_path : Json_pointer.t;keyword : string;message : string;context : t list;
}A validation error.
Source
val make :
instance_path:Json_pointer.t ->
schema_path:Json_pointer.t ->
keyword:string ->
string ->
tCreate an error at the given paths.
Source
val make_with_context :
instance_path:Json_pointer.t ->
schema_path:Json_pointer.t ->
keyword:string ->
context:t list ->
string ->
tCreate an error with sub-errors (for combinators like allOf, anyOf).