jsonSchemaValid
jsonSchemaValid validates a JSON Schema document against its declared metaschema.
If the schema does not declare $schema, vacuum treats it as Draft 2020-12.
Example ruleset configuration
json-schema-valid:
description: JSON Schema must be structurally valid for its dialect.
type: validation
severity: error
given: $
then:
function: jsonSchemaValid
The function is used by the json-schema-valid Rule.
