ACI.dev · API Governance Rules

ACI.dev API Rules

Spectral linting rules defining API design standards and conventions for ACI.dev.

7 Rules error 3 warn 4
View Rules File View on GitHub

Rule Categories

aci

Rules

warn
aci-info-contact
API info object must declare a contact for Aipolabs.
$.info
warn
aci-info-license
API info must declare the Apache 2.0 license used by ACI.dev.
$.info
error
aci-server-required
At least one server URL must be defined so consumers can call the production API.
$
error
aci-path-versioned
All paths must be versioned under /v1 (matching ACI.dev's only stable release line).
$.paths
warn
aci-operation-id-prefixed
operationId must be prefixed with one of the known resource tags (apps, functions, app-configurations, linked-accounts).
$.paths[*][get,post,patch,delete]
warn
aci-summary-title-case
Operation summaries must use Title Case.
$.paths[*][get,post,patch,delete]
error
aci-apikey-header
APIKeyHeader security scheme must use the X-API-KEY header as documented by ACI.dev.
$.components.securitySchemes.APIKeyHeader

Spectral Ruleset

Raw ↑
extends: spectral:oas
formats:
  - oas3_1
rules:
  aci-info-contact:
    description: API info object must declare a contact for Aipolabs.
    severity: warn
    given: $.info
    then:
      field: contact
      function: truthy

  aci-info-license:
    description: API info must declare the Apache 2.0 license used by ACI.dev.
    severity: warn
    given: $.info
    then:
      field: license
      function: truthy

  aci-server-required:
    description: At least one server URL must be defined so consumers can call the production API.
    severity: error
    given: $
    then:
      field: servers
      function: truthy

  aci-path-versioned:
    description: All paths must be versioned under /v1 (matching ACI.dev's only stable release line).
    severity: error
    given: $.paths
    then:
      field: '@key'
      function: pattern
      functionOptions:
        match: '^/v1/'

  aci-operation-id-prefixed:
    description: operationId must be prefixed with one of the known resource tags (apps, functions, app-configurations, linked-accounts).
    severity: warn
    given: $.paths[*][get,post,patch,delete]
    then:
      field: operationId
      function: pattern
      functionOptions:
        match: '^(apps|functions|app-configurations|linked-accounts)-'

  aci-summary-title-case:
    description: Operation summaries must use Title Case.
    severity: warn
    given: $.paths[*][get,post,patch,delete]
    then:
      field: summary
      function: pattern
      functionOptions:
        match: '^[A-Z][A-Za-z0-9]*( ([A-Za-z0-9-]+))*$'

  aci-apikey-header:
    description: APIKeyHeader security scheme must use the X-API-KEY header as documented by ACI.dev.
    severity: error
    given: $.components.securitySchemes.APIKeyHeader
    then:
    - field: type
      function: pattern
      functionOptions:
        match: '^apiKey$'
    - field: in
      function: pattern
      functionOptions:
        match: '^header$'
    - field: name
      function: pattern
      functionOptions:
        match: '^X-API-KEY$'

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/aci-dev-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.