Parasail · API Governance Rules

Parasail API Rules

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

5 Rules error 3 warn 2
View Rules File View on GitHub

Rule Categories

parasail

Rules

error
parasail-server-base-url
All Parasail OpenAPI specs must use one of the canonical Parasail base URLs.
$.servers[*].url
error
parasail-bearer-auth
Parasail APIs authenticate via HTTP Bearer (API key) — securitySchemes must include a bearer scheme.
$.components.securitySchemes
warn
parasail-operation-id-camelcase
operationId must be lowerCamelCase verbs (e.g. createChatCompletion, listBatches).
$.paths.*.*.operationId
warn
parasail-summary-title-case
Operation summaries should use Title Case (e.g. "Create Chat Completion").
$.paths.*.*.summary
error
parasail-tags-required
Every operation must have at least one tag.
$.paths.*.*.tags

Spectral Ruleset

Raw ↑
extends: spectral:oas
rules:
  parasail-server-base-url:
    description: All Parasail OpenAPI specs must use one of the canonical Parasail base URLs.
    severity: error
    given: $.servers[*].url
    then:
      function: pattern
      functionOptions:
        match: '^https://api\.parasail\.io/(v1|api/v1)(/.*)?$'
  parasail-bearer-auth:
    description: Parasail APIs authenticate via HTTP Bearer (API key) — securitySchemes must include a bearer scheme.
    severity: error
    given: $.components.securitySchemes
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          additionalProperties:
            type: object
          patternProperties:
            '.*':
              properties:
                type: { const: http }
                scheme: { const: bearer }
  parasail-operation-id-camelcase:
    description: operationId must be lowerCamelCase verbs (e.g. createChatCompletion, listBatches).
    severity: warn
    given: $.paths.*.*.operationId
    then:
      function: pattern
      functionOptions:
        match: '^[a-z][A-Za-z0-9]+$'
  parasail-summary-title-case:
    description: Operation summaries should use Title Case (e.g. "Create Chat Completion").
    severity: warn
    given: $.paths.*.*.summary
    then:
      function: pattern
      functionOptions:
        match: '^([A-Z][A-Za-z0-9]*)( [A-Z][A-Za-z0-9]*)*$'
  parasail-tags-required:
    description: Every operation must have at least one tag.
    severity: error
    given: $.paths.*.*.tags
    then:
      function: length
      functionOptions:
        min: 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/parasail-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.