JsonSchema.check.classic
Given a JSON Schema spec, returns a predicate function that accepts any input and returns a boolean indicating whether the input satisfied the spec.
Pros:
Cons:
JsonSchema.check
See also:
JsonSchema.check.writeable
JsonSchema.check.classic
Given a JSON Schema spec, returns a predicate function that accepts any input and returns a boolean indicating whether the input satisfied the spec.
Pros:
JsonSchema.check.classic
works in any environment, including Cloudflare workersCons:
JsonSchema.check.classic
has worse performance thanJsonSchema.check
See also:
JsonSchema.check
JsonSchema.check.writeable