jsonschema
Bundled cx-stdlib module.
jsonschema:validate
[$jsonschema:validate] -> element — Validate a value against a JSON Schema 2020-12 (MCP subset), returning [ok] or [invalid [violation keyword= path= message=] …].
jsonschema:is-valid
[$jsonschema:is-valid] -> bool — True when the value satisfies every supported keyword of the schema (no violations).
jsonschema:violations
[$jsonschema:violations] -> [sequence element] — The [violation …] elements from a validate result — empty for an [ok] result.
jsonschema:violation-paths
[$jsonschema:violation-paths] -> [sequence string] — The JSON-pointer-style paths of each violation in a validate result.