Vectara · API Governance Rules

Vectara API Rules

Spectral linting rules defining API design standards and conventions for Vectara.

4 Rules error 2 warn 2
View Rules File View on GitHub

Rule Categories

vectara

Rules

warn
vectara-operation-summary-title-case
Operation summaries must be in Title Case.
$.paths[*][get,post,patch,put,delete].summary
warn
vectara-path-kebab-or-snake
Path segments use lowercase, hyphen, or underscore — never camelCase.
$.paths
error
vectara-uses-bearer-or-apikey
Vectara endpoints must declare ApiKeyAuth or OAuth2 security.
$.security
error
vectara-success-status-codes
Operations must declare a 2xx success response.
$.paths[*][get,post,patch,put,delete].responses

Spectral Ruleset

Raw ↑
extends:
  - spectral:oas
rules:
  operation-tag-defined: true
  operation-operationId: error
  operation-operationId-unique: error
  operation-summary: error
  vectara-operation-summary-title-case:
    description: Operation summaries must be in Title Case.
    given: $.paths[*][get,post,patch,put,delete].summary
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: "^([A-Z][a-z0-9]*|A|An|And|At|But|By|For|From|In|Of|On|Or|The|To|With)(\\s+([A-Z][a-z0-9]*|a|an|and|at|but|by|for|from|in|of|on|or|the|to|with))*$"
  vectara-path-kebab-or-snake:
    description: Path segments use lowercase, hyphen, or underscore — never camelCase.
    given: $.paths
    severity: warn
    then:
      field: "@key"
      function: pattern
      functionOptions:
        match: "^(/[a-z0-9_\\-{}.]+)+$"
  vectara-uses-bearer-or-apikey:
    description: Vectara endpoints must declare ApiKeyAuth or OAuth2 security.
    given: $.security
    severity: error
    then:
      function: schema
      functionOptions:
        schema:
          type: array
          minItems: 1
  vectara-success-status-codes:
    description: Operations must declare a 2xx success response.
    given: $.paths[*][get,post,patch,put,delete].responses
    severity: error
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          patternProperties:
            "^2[0-9]{2}$": {}
          minProperties: 1

Work with this as data

Every ruleset 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 spectral rules

4 MCP tools reach this
  • find_rulesBrowse and filter every ruleset 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 ruleset
curl "https://apis.io/api/v1/rules/vectara-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?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.