FAQ

  • GitHub GitHub Repo stars
  • Discord Discord Server
  • ✨ New! Try the OpenAPI Doctor ✨ The OpenAPI Doctor

    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.


    View Function Source