Stadia Maps · API Governance Rules

Stadia Maps API Rules

Spectral linting rules defining API design standards and conventions for Stadia Maps.

9 Rules error 3 warn 5 info 1
View Rules File View on GitHub

Rule Categories

stadia

Rules

warn
stadia-maps-operation-ids-kebab-case
Operation IDs must use kebab-case
$.paths[*][*].operationId
error
stadia-maps-tags-required
All operations must have at least one tag
$.paths[*][*]
warn
stadia-maps-summaries-title-case
Operation summaries should use sentence case starting with a capital letter
$.paths[*][*].summary
error
stadia-maps-security-required
All operations must declare security (API key required)
$.paths[*][*]
error
stadia-maps-api-key-scheme
API must use ApiKeyAuth security scheme
$.components.securitySchemes
warn
stadia-maps-versioned-paths
All paths should include a version segment (e.g., /v1)
$.paths
warn
stadia-maps-json-responses
200 responses should return application/json content type
$.paths[*][*].responses['200'].content
warn
stadia-maps-post-request-bodies
POST operations should define a request body
$.paths[*][post]
info
stadia-maps-descriptions-present
All operations should have a description
$.paths[*][*]

Spectral Ruleset

Raw ↑
extends: spectral:oas
rules:
  stadia-maps-operation-ids-kebab-case:
    description: Operation IDs must use kebab-case
    severity: warn
    given: "$.paths[*][*].operationId"
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-z0-9]*(-[a-z0-9]+)*$"

  stadia-maps-tags-required:
    description: All operations must have at least one tag
    severity: error
    given: "$.paths[*][*]"
    then:
      field: tags
      function: truthy

  stadia-maps-summaries-title-case:
    description: Operation summaries should use sentence case starting with a capital letter
    severity: warn
    given: "$.paths[*][*].summary"
    then:
      function: pattern
      functionOptions:
        match: "^[A-Z]"

  stadia-maps-security-required:
    description: All operations must declare security (API key required)
    severity: error
    given: "$.paths[*][*]"
    then:
      field: security
      function: truthy

  stadia-maps-api-key-scheme:
    description: API must use ApiKeyAuth security scheme
    severity: error
    given: "$.components.securitySchemes"
    then:
      field: ApiKeyAuth
      function: truthy

  stadia-maps-versioned-paths:
    description: All paths should include a version segment (e.g., /v1)
    severity: warn
    given: "$.paths"
    then:
      function: pattern
      functionOptions:
        match: ".*/v[0-9]+.*"

  stadia-maps-json-responses:
    description: 200 responses should return application/json content type
    severity: warn
    given: "$.paths[*][*].responses['200'].content"
    then:
      field: application/json
      function: truthy

  stadia-maps-post-request-bodies:
    description: POST operations should define a request body
    severity: warn
    given: "$.paths[*][post]"
    then:
      field: requestBody
      function: truthy

  stadia-maps-descriptions-present:
    description: All operations should have a description
    severity: info
    given: "$.paths[*][*]"
    then:
      field: description
      function: truthy

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/stadia-maps-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.