Version: dev

validate_schema

Stable function · Validation

Tier: stable · Kind: function · Topic: Validation

JuliaTypeScriptPythonRustGo
validate_schemavalidateSchemanot exportednot exportednot exported

Julia

validate_schema(data)
validate_schema(data::Any) -> Vector{SchemaError}

Validate data (a native JSON tree of Dict/Vector/scalars) against the ESM schema. Returns an empty vector when valid; otherwise ONE SchemaError per schema violation (CONFORMANCE_SPEC §7.1.2), each carrying:

  • path — the RFC-6901 JSON Pointer of the offending node (document root "", 0-based array indices);
  • keyword — the JSON-Schema keyword that failed (required, type, enum, minItems, oneOf, additionalProperties, …);
  • message — free human-readable text (not part of the conformance contract).

Unlike JSONSchema.jl’s single-issue validate, this enumerates leaf failures INSIDE failed oneOf/anyOf/allOf/if branches (see _collect_schema_errors!), matching TypeScript’s AJV allErrors output.

Source

TypeScript

function validateSchema(data: unknown): SchemaError[]

Validate data against the ESM schema

Source

Python

Python does not export this function.

Rust

Rust does not export this function.

Go

Go does not export this function.