SpaceAPI · API Governance Rules

SpaceAPI API Rules

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

8 Rules error 1 warn 6 info 1
View Rules File View on GitHub

Rule Categories

spaceapi

Rules

warn
spaceapi-operation-summary-title-case
All operation summaries must use Title Case
$.paths[*][*].summary
warn
spaceapi-operation-id-camel-case
All operationIds must use camelCase
$.paths[*][*].operationId
warn
spaceapi-tags-title-case
All tags must use Title Case
$.tags[*].name
warn
spaceapi-operation-must-have-tags
Every operation must have at least one tag
$.paths[*][*]
warn
spaceapi-response-must-have-description
All responses must have a description
$.paths[*][*].responses[*]
info
spaceapi-schema-properties-have-descriptions
Schema properties should have descriptions
$.components.schemas[*].properties[*]
warn
spaceapi-info-contact
API must have contact information
$.info
error
spaceapi-servers-must-be-https
All server URLs must use HTTPS
$.servers[*].url

Spectral Ruleset

Raw ↑
rules:
  spaceapi-operation-summary-title-case:
    description: All operation summaries must use Title Case
    message: Operation summary "{{value}}" must use Title Case
    severity: warn
    given: "$.paths[*][*].summary"
    then:
      function: pattern
      functionOptions:
        match: "^([A-Z][a-z0-9]*)(\\s[A-Z][a-z0-9]*)*$"

  spaceapi-operation-id-camel-case:
    description: All operationIds must use camelCase
    message: OperationId "{{value}}" must use camelCase
    severity: warn
    given: "$.paths[*][*].operationId"
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-zA-Z0-9]*$"

  spaceapi-tags-title-case:
    description: All tags must use Title Case
    message: Tag "{{value}}" must use Title Case
    severity: warn
    given: "$.tags[*].name"
    then:
      function: pattern
      functionOptions:
        match: "^([A-Z][a-z0-9]*)(\\s[A-Z][a-z0-9]*)*$"

  spaceapi-operation-must-have-tags:
    description: Every operation must have at least one tag
    message: Operation must have at least one tag
    severity: warn
    given: "$.paths[*][*]"
    then:
      field: tags
      function: truthy

  spaceapi-response-must-have-description:
    description: All responses must have a description
    message: Response must have a description
    severity: warn
    given: "$.paths[*][*].responses[*]"
    then:
      field: description
      function: truthy

  spaceapi-schema-properties-have-descriptions:
    description: Schema properties should have descriptions
    message: Schema property "{{path}}" should have a description
    severity: info
    given: "$.components.schemas[*].properties[*]"
    then:
      field: description
      function: truthy

  spaceapi-info-contact:
    description: API must have contact information
    message: API info must include contact details
    severity: warn
    given: "$.info"
    then:
      field: contact
      function: truthy

  spaceapi-servers-must-be-https:
    description: All server URLs must use HTTPS
    message: Server URL "{{value}}" must use HTTPS
    severity: error
    given: "$.servers[*].url"
    then:
      function: pattern
      functionOptions:
        match: "^https://"

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/spaceapi-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.