Speedscale · API Governance Rules

Speedscale API Rules

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

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

Rule Categories

speedscale

Rules

error
speedscale-operationid-required
All operations should have an operationId for Speedscale CLI mapping.
$.paths[*][get,post,put,patch,delete,options,head]
warn
speedscale-response-schema-required
Operations should define response schemas for accurate mock generation.
$.paths[*][get,post,put,patch,delete].responses[200,201,202]
info
speedscale-security-defined
APIs with authentication should define security schemes for capture.
$.components
warn
speedscale-servers-defined
Server URLs should be defined for correct traffic routing in replay.
$

Spectral Ruleset

speedscale-rules.yml Raw ↑
extends: "spectral:oas"

rules:
  speedscale-operationid-required:
    description: All operations should have an operationId for Speedscale CLI mapping.
    message: "Operation at {{path}} must have an operationId for traffic replay mapping."
    severity: error
    given: "$.paths[*][get,post,put,patch,delete,options,head]"
    then:
      field: operationId
      function: truthy

  speedscale-response-schema-required:
    description: Operations should define response schemas for accurate mock generation.
    message: "Operation {{path}} should define a response schema for service virtualization."
    severity: warn
    given: "$.paths[*][get,post,put,patch,delete].responses[200,201,202]"
    then:
      field: content
      function: truthy

  speedscale-security-defined:
    description: APIs with authentication should define security schemes for capture.
    message: "API spec should define security schemes to enable authenticated traffic capture."
    severity: info
    given: "$.components"
    then:
      field: securitySchemes
      function: truthy

  speedscale-servers-defined:
    description: Server URLs should be defined for correct traffic routing in replay.
    message: "API spec should define at least one server for replay target configuration."
    severity: warn
    given: "$"
    then:
      field: servers
      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/speedscale-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 form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

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