Compile one document; returns its root resource. The root resource is registered under both its $id (when present) and the retrieval URI.
Compile a schema document (already normalized) into a reusable validator.
Compile a schema from JSON text.
Compile a schema given as a std.json value.
Translate the ECMA-262 shorthand classes \d \w \s (and negations) into their ASCII-only / ECMA-exact equivalents. std.regex interprets them as Unicode-aware classes, but JSON Schema patterns use ECMA-262 semantics where \d is exactly [0-9] and \w is [A-Za-z0-9_].
Determine the vocabulary set for a dialect URI. The standard 2020-12 URI maps directly; any other URI must name a registered meta-schema document, whose $vocabulary is honored. Unknown dialects are refused.
Schema compilation: JSON document → IR.
compileSchema normalizes the input, detects the dialect via $schema, walks every schema location building CompiledSchema nodes, registers resources / anchors / pointer maps, and resolves all $ref edges eagerly.