json-schema-recommended is the default ruleset for the schema command.

vacuum schema product.schema.json

To explicitly extend it from your own ruleset, use vacuum:json-schema.

extends: [[vacuum:json-schema, recommended]]

Rules

The recommended JSON Schema ruleset focuses on structural correctness first, then a small set of quality checks.

Rule Severity Function
json-schema-valid error jsonSchemaValid
json-schema-ref-valid error jsonSchemaRefValid
json-schema-type-constraint-compatible error jsonSchemaSanity
json-schema-enum-values-compatible error jsonSchemaSanity
json-schema-required-properties-defined error jsonSchemaSanity
json-schema-dependent-required-defined error jsonSchemaSanity
json-schema-patterns-valid error jsonSchemaSanity
json-schema-composition-sanity error jsonSchemaSanity
json-schema-title-description-type warn jsonSchemaSanity
json-schema-examples-valid warn jsonSchemaSanity

Example

extends: [[vacuum:json-schema, recommended]]
rules:
  json-schema-title-description-type:
    severity: error

Run the ruleset with the normal --ruleset flag.

vacuum schema product.schema.json --ruleset json-schema-rules.yaml