Reloadly · API Governance Rules

Reloadly API Rules

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

10 Rules error 6 warn 4
View Rules File View on GitHub

Rule Categories

reloadly

Rules

error
reloadly-operation-ids-camel-case
Operation IDs must use camelCase
$.paths[*][*].operationId
warn
reloadly-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
error
reloadly-tags-required
Every operation must have at least one tag
$.paths[*][*]
error
reloadly-bearer-auth-required
API must define bearerAuth security scheme
$.components.securitySchemes
warn
reloadly-pagination-parameters
Collection endpoints must support page and size parameters
$.paths[*].get
error
reloadly-error-response-defined
Operations must define 401 error responses
$.paths[?(!/@oauth)][*]
warn
reloadly-response-200-schema
Successful responses must have a schema
$.paths[*][*].responses[200,201].content.application/json
error
reloadly-request-body-schema
POST/PUT request bodies must have schemas
$.paths[*][post,put].requestBody.content.application/json
error
reloadly-audience-parameter
Token request must include audience parameter
$.paths['/oauth/token'].post.requestBody.content.application/json.schema.required
warn
reloadly-path-kebab-case
Path segments must use kebab-case
$.paths

Spectral Ruleset

Raw ↑
rules:
  reloadly-operation-ids-camel-case:
    description: Operation IDs must use camelCase
    message: "Operation ID '{{value}}' must use camelCase"
    severity: error
    given: "$.paths[*][*].operationId"
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-zA-Z0-9]*$"

  reloadly-summary-title-case:
    description: Operation summaries must use Title Case
    message: "Summary '{{value}}' must use Title Case"
    severity: warn
    given: "$.paths[*][*].summary"
    then:
      function: pattern
      functionOptions:
        match: "^[A-Z][a-zA-Z0-9 -]*$"

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

  reloadly-bearer-auth-required:
    description: API must define bearerAuth security scheme
    message: API must use Bearer token authentication
    severity: error
    given: "$.components.securitySchemes"
    then:
      field: bearerAuth
      function: truthy

  reloadly-pagination-parameters:
    description: Collection endpoints must support page and size parameters
    message: GET collection endpoints should include page and size query parameters
    severity: warn
    given: "$.paths[*].get"
    then:
      function: schema
      functionOptions:
        schema:
          type: object

  reloadly-error-response-defined:
    description: Operations must define 401 error responses
    message: Operation must define a 401 Unauthorized response
    severity: error
    given: "$.paths[?(!/@oauth)][*]"
    then:
      field: responses
      function: schema
      functionOptions:
        schema:
          type: object
          required:
            - '401'

  reloadly-response-200-schema:
    description: Successful responses must have a schema
    message: 200/201 response must include a content schema
    severity: warn
    given: "$.paths[*][*].responses[200,201].content.application/json"
    then:
      field: schema
      function: truthy

  reloadly-request-body-schema:
    description: POST/PUT request bodies must have schemas
    message: POST/PUT operations must define a requestBody schema
    severity: error
    given: "$.paths[*][post,put].requestBody.content.application/json"
    then:
      field: schema
      function: truthy

  reloadly-audience-parameter:
    description: Token request must include audience parameter
    message: OAuth token request must include the audience parameter
    severity: error
    given: "$.paths['/oauth/token'].post.requestBody.content.application/json.schema.required"
    then:
      function: schema
      functionOptions:
        schema:
          type: array
          contains:
            const: audience

  reloadly-path-kebab-case:
    description: Path segments must use kebab-case
    message: "Path segment '{{value}}' must use kebab-case"
    severity: warn
    given: "$.paths"
    then:
      function: pattern
      functionOptions:
        match: "^(/[a-z0-9{}-]+)+$"

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