Secureworks · API Governance Rules

Secureworks API Rules

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

8 Rules error 3 warn 3 info 2
View Rules File View on GitHub

Rule Categories

secureworks

Rules

warn
secureworks-operation-ids-camel-case
Operation IDs must use camelCase
$.paths[*][*].operationId
error
secureworks-tags-required
All operations must have at least one tag
$.paths[*][*]
warn
secureworks-summaries-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
error
secureworks-bearer-auth-required
All operations except token endpoint require bearer authentication
$.paths['/graphql'][*]
error
secureworks-graphql-request-body
GraphQL endpoint must define requestBody with query field
$.paths['/graphql'][post]
info
secureworks-multi-region-servers
API should document all regional server URLs
$.servers
warn
secureworks-response-errors-documented
Operations should document 401 and 429 error responses
$.paths[*][*].responses
info
secureworks-graphql-variables-typed
GraphQL request schema should type variables as object
$.components.schemas.GraphQLRequest.properties.variables

Spectral Ruleset

Raw ↑
extends: spectral:oas
rules:
  secureworks-operation-ids-camel-case:
    description: Operation IDs must use camelCase
    severity: warn
    given: "$.paths[*][*].operationId"
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-zA-Z0-9]*$"

  secureworks-tags-required:
    description: All operations must have at least one tag
    severity: error
    given: "$.paths[*][*]"
    then:
      field: tags
      function: truthy

  secureworks-summaries-title-case:
    description: Operation summaries must use Title Case
    severity: warn
    given: "$.paths[*][*].summary"
    then:
      function: pattern
      functionOptions:
        match: "^[A-Z][a-zA-Z0-9]*(\\s[A-Z][a-zA-Z0-9]*)*$"

  secureworks-bearer-auth-required:
    description: All operations except token endpoint require bearer authentication
    severity: error
    given: "$.paths['/graphql'][*]"
    then:
      field: security
      function: truthy

  secureworks-graphql-request-body:
    description: GraphQL endpoint must define requestBody with query field
    severity: error
    given: "$.paths['/graphql'][post]"
    then:
      field: requestBody
      function: truthy

  secureworks-multi-region-servers:
    description: API should document all regional server URLs
    severity: info
    given: "$.servers"
    then:
      function: truthy

  secureworks-response-errors-documented:
    description: Operations should document 401 and 429 error responses
    severity: warn
    given: "$.paths[*][*].responses"
    then:
      field: "401"
      function: truthy

  secureworks-graphql-variables-typed:
    description: GraphQL request schema should type variables as object
    severity: info
    given: "$.components.schemas.GraphQLRequest.properties.variables"
    then:
      field: type
      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/secureworks-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.