SigNoz · API Governance Rules

SigNoz API Rules

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

8 Rules warn 6 info 2
View Rules File View on GitHub

Rule Categories

signoz

Rules

warn
signoz-operation-summary-title-case
Operation summaries must use Title Case.
$.paths[*][*].summary
warn
signoz-operation-id-kebab-case
OperationIds must use kebab-case naming.
$.paths[*][*].operationId
warn
signoz-api-key-header
API key authentication must use SigNoz-Api-Key header.
$.components.securitySchemes[?(@.type=='apiKey')].name
warn
signoz-paths-use-api-prefix
All paths must begin with /api/v prefix.
$.paths[*]~
info
signoz-response-json
All responses should return application/json content type.
$.paths[*][*].responses[*].content
warn
signoz-tags-defined
Operations should reference tags defined at the top level.
$.paths[*][*].tags[*]
warn
signoz-error-response-schema
Error responses (4xx/5xx) should have a consistent schema.
$.paths[*][*].responses[?(@property >= '400')].content['application/json'].schema
info
signoz-parameters-described
All parameters must have a description.
$.paths[*][*].parameters[?(@.in=='query' || @.in=='path')]

Spectral Ruleset

Raw ↑
extends: "spectral:oas"
rules:
  signoz-operation-summary-title-case:
    description: Operation summaries must use Title Case.
    message: "Summary '{{value}}' must be in Title Case."
    severity: warn
    given: "$.paths[*][*].summary"
    then:
      function: pattern
      functionOptions:
        match: "^[A-Z][a-zA-Z0-9]*([ ][A-Z][a-zA-Z0-9]*)*$"

  signoz-operation-id-kebab-case:
    description: OperationIds must use kebab-case naming.
    message: "OperationId '{{value}}' must use kebab-case."
    severity: warn
    given: "$.paths[*][*].operationId"
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-z0-9]*(-[a-z0-9]+)*$"

  signoz-api-key-header:
    description: API key authentication must use SigNoz-Api-Key header.
    message: "API key authentication should use SigNoz-Api-Key header name."
    severity: warn
    given: "$.components.securitySchemes[?(@.type=='apiKey')].name"
    then:
      function: enumeration
      functionOptions:
        values:
          - SigNoz-Api-Key

  signoz-paths-use-api-prefix:
    description: All paths must begin with /api/v prefix.
    message: "Path '{{property}}' must start with /api/v."
    severity: warn
    given: "$.paths[*]~"
    then:
      function: pattern
      functionOptions:
        match: "^/api/v[0-9]+"

  signoz-response-json:
    description: All responses should return application/json content type.
    message: "Response should include application/json content type."
    severity: info
    given: "$.paths[*][*].responses[*].content"
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          required:
            - "application/json"

  signoz-tags-defined:
    description: Operations should reference tags defined at the top level.
    message: "Operation tags should match top-level tag definitions."
    severity: warn
    given: "$.paths[*][*].tags[*]"
    then:
      function: truthy

  signoz-error-response-schema:
    description: Error responses (4xx/5xx) should have a consistent schema.
    message: "Error response should have a defined schema."
    severity: warn
    given: "$.paths[*][*].responses[?(@property >= '400')].content['application/json'].schema"
    then:
      function: truthy

  signoz-parameters-described:
    description: All parameters must have a description.
    message: "Parameter '{{property}}' is missing a description."
    severity: info
    given: "$.paths[*][*].parameters[?(@.in=='query' || @.in=='path')]"
    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/signoz-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.