Validate a document's STRUCTURE against the v4 meta-schema (SPEC §1, ADRs C003/C004/C009/C013).
Uses a PRECOMPILED (ajv-standalone) validator (src/validate.standalone.js) — a plain function, no
new Function/eval — so @suluk/core validates on Cloudflare Workers (the deploy target forbids dynamic
code generation) and starts instantly. Regenerate with bun run scripts/gen-validator.ts. It does NOT
validate the inner JSON Schema 2020-12 Schema Objects (those are the 2020-12 dialect's concern).
Validate a document's STRUCTURE against the v4 meta-schema (SPEC §1, ADRs C003/C004/C009/C013).
Uses a PRECOMPILED (ajv-standalone) validator (src/validate.standalone.js) — a plain function, no
new Function/eval — so @suluk/core validates on Cloudflare Workers (the deploy target forbids dynamic code generation) and starts instantly. Regenerate withbun run scripts/gen-validator.ts. It does NOT validate the inner JSON Schema 2020-12 Schema Objects (those are the 2020-12 dialect's concern).