Vacuum · Schema

Vacuum Ruleset

A Vacuum/Spectral-compatible ruleset for OpenAPI linting

API DesignDocumentationLintingOpenAPISpectralDeveloper ToolsGo

Properties

Name Type Description
extends object Extend built-in or external rulesets
rules object Custom rule definitions
formats array Supported specification formats
View JSON Schema on GitHub

JSON Schema

vacuum-ruleset-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://quobix.com/vacuum/schemas/ruleset",
  "title": "Vacuum Ruleset",
  "description": "A Vacuum/Spectral-compatible ruleset for OpenAPI linting",
  "type": "object",
  "properties": {
    "extends": {
      "oneOf": [
        { "type": "string" },
        {
          "type": "array",
          "items": {
            "oneOf": [
              { "type": "string" },
              {
                "type": "array",
                "items": [
                  { "type": "string" },
                  { "type": "string", "enum": ["all", "recommended", "off"] }
                ]
              }
            ]
          }
        }
      ],
      "description": "Extend built-in or external rulesets"
    },
    "rules": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/definitions/Rule"
      },
      "description": "Custom rule definitions"
    },
    "formats": {
      "type": "array",
      "items": { "type": "string" },
      "description": "Supported specification formats"
    }
  },
  "definitions": {
    "Rule": {
      "type": "object",
      "properties": {
        "description": { "type": "string" },
        "message": { "type": "string" },
        "severity": {
          "type": "string",
          "enum": ["error", "warn", "info", "hint", "off"]
        },
        "given": {
          "oneOf": [
            { "type": "string" },
            { "type": "array", "items": { "type": "string" } }
          ],
          "description": "JSONPath expression(s) to target"
        },
        "then": {
          "oneOf": [
            { "$ref": "#/definitions/RuleThen" },
            { "type": "array", "items": { "$ref": "#/definitions/RuleThen" } }
          ]
        }
      },
      "required": ["description", "given", "then"]
    },
    "RuleThen": {
      "type": "object",
      "properties": {
        "function": {
          "type": "string",
          "description": "Function name to apply (truthy, falsy, defined, undefined, pattern, schema, etc.)"
        },
        "field": {
          "type": "string",
          "description": "Optional field to apply the function to"
        },
        "functionOptions": {
          "type": "object",
          "description": "Options to pass to the function"
        }
      },
      "required": ["function"]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/vacuum-ruleset"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.