Sysdig · API Governance Rules

Sysdig API Rules

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

10 Rules error 4 warn 5 info 1
View Rules File View on GitHub

Rule Categories

sysdig

Rules

error
sysdig-operation-ids-required
All operations must have an operationId defined.
$.paths[*][get,post,put,delete,patch]
error
sysdig-operation-summary-required
All operations must have a summary.
$.paths[*][get,post,put,delete,patch]
warn
sysdig-operation-summary-title-case
Operation summaries must use Title Case.
$.paths[*][get,post,put,delete,patch].summary
error
sysdig-bearer-auth-required
API must define Bearer token authentication.
$.components.securitySchemes
warn
sysdig-tags-defined
All operations must have at least one tag.
$.paths[*][get,post,put,delete,patch]
error
sysdig-responses-200-defined
GET operations must have a 200 response.
$.paths[*].get
warn
sysdig-error-responses-defined
Operations should define 401 or error responses.
$.paths[*][post,put,delete]
warn
sysdig-request-body-post
POST operations should have a request body.
$.paths[*].post
warn
sysdig-path-versioned
API paths should include a version prefix (/api/v1/, /api/v2/, /api/v3/).
$.paths[*]~
info
sysdig-schema-descriptions
Schema properties should have descriptions.
$.components.schemas[*].properties[*]

Spectral Ruleset

Raw ↑
extends: spectral:oas
rules:
  sysdig-operation-ids-required:
    description: All operations must have an operationId defined.
    severity: error
    given: "$.paths[*][get,post,put,delete,patch]"
    then:
      field: operationId
      function: truthy

  sysdig-operation-summary-required:
    description: All operations must have a summary.
    severity: error
    given: "$.paths[*][get,post,put,delete,patch]"
    then:
      field: summary
      function: truthy

  sysdig-operation-summary-title-case:
    description: Operation summaries must use Title Case.
    severity: warn
    given: "$.paths[*][get,post,put,delete,patch].summary"
    then:
      function: pattern
      functionOptions:
        match: "^[A-Z][a-z]*(\\s[A-Z][a-z]*)*$"

  sysdig-bearer-auth-required:
    description: API must define Bearer token authentication.
    severity: error
    given: "$.components.securitySchemes"
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          minProperties: 1

  sysdig-tags-defined:
    description: All operations must have at least one tag.
    severity: warn
    given: "$.paths[*][get,post,put,delete,patch]"
    then:
      field: tags
      function: truthy

  sysdig-responses-200-defined:
    description: GET operations must have a 200 response.
    severity: error
    given: "$.paths[*].get"
    then:
      field: responses.200
      function: truthy

  sysdig-error-responses-defined:
    description: Operations should define 401 or error responses.
    severity: warn
    given: "$.paths[*][post,put,delete]"
    then:
      field: responses
      function: schema
      functionOptions:
        schema:
          type: object
          minProperties: 2

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

  sysdig-path-versioned:
    description: API paths should include a version prefix (/api/v1/, /api/v2/, /api/v3/).
    severity: warn
    given: "$.paths[*]~"
    then:
      function: pattern
      functionOptions:
        match: "^/api/(v[0-9]+|scanning|secure|compliance|notificationChannels)"

  sysdig-schema-descriptions:
    description: Schema properties should have descriptions.
    severity: info
    given: "$.components.schemas[*].properties[*]"
    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/sysdig-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.