package chatoyant

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Json_schema.OutputSource

Structured validation output.

The public result is intentionally compact but keeps JSON Pointer paths and failing keyword names so provider errors, test failures, and downstream diagnostics can be rendered deterministically.

Sourcetype error = {
  1. instance_path : string;
  2. schema_path : string;
  3. keyword : string;
  4. message : string;
}
Sourcetype t = {
  1. valid : bool;
  2. errors : error list;
}
Sourceval valid : t
Sourceval invalid : error -> t
Sourceval error : instance_path:string -> schema_path:string -> keyword:string -> message:string -> error
Sourceval error_to_string : error -> string