Robocorp · API Governance Rules

Robocorp API Rules

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

13 Rules error 2 warn 7 info 4
View Rules File View on GitHub

Rule Categories

robocorp

Rules

warn
robocorp-operation-has-tag
All operations must have at least one tag
$.paths[*][get,post,put,patch,delete]
error
robocorp-operation-has-summary
All operations must have a summary
$.paths[*][get,post,put,patch,delete]
warn
robocorp-operation-has-description
All operations should have a description
$.paths[*][get,post,put,patch,delete]
error
robocorp-operation-has-operation-id
All operations must have an operationId
$.paths[*][get,post,put,patch,delete]
warn
robocorp-workspace-id-in-path
All resource paths should include workspace_id
$.paths[*]~
warn
robocorp-rc-wskey-auth
Control Room API uses RC-WSKEY prefixed API keys
$.components.securitySchemes[*]
warn
robocorp-delete-returns-204
DELETE operations should return 204 No Content
$.paths[*].delete
info
robocorp-post-create-returns-201
POST operations that create resources should return 201
$.paths[*].post
info
robocorp-list-operations-paginated
List operations should support pagination with cursor
$.paths[*].get
warn
robocorp-camel-case-operation-id
OperationIds should use camelCase
$.paths[*][get,post,put,patch,delete].operationId
info
robocorp-state-enum-defined
State fields should use defined enumerations
$.components.schemas[*].properties.state
info
robocorp-schema-has-description
Schema components should have descriptions
$.components.schemas[*]
warn
robocorp-has-error-response
Operations should define 401 unauthorized response
$.paths[*][get,post,put,patch,delete]

Spectral Ruleset

Raw ↑
extends: spectral:oas
rules:
  # Robocorp Control Room API Conventions

  robocorp-operation-has-tag:
    description: All operations must have at least one tag
    message: Operation {{path}} is missing a tag
    severity: warn
    given: "$.paths[*][get,post,put,patch,delete]"
    then:
      field: tags
      function: truthy

  robocorp-operation-has-summary:
    description: All operations must have a summary
    message: Operation {{path}} is missing a summary
    severity: error
    given: "$.paths[*][get,post,put,patch,delete]"
    then:
      field: summary
      function: truthy

  robocorp-operation-has-description:
    description: All operations should have a description
    message: Operation {{path}} should include a description
    severity: warn
    given: "$.paths[*][get,post,put,patch,delete]"
    then:
      field: description
      function: truthy

  robocorp-operation-has-operation-id:
    description: All operations must have an operationId
    message: Operation {{path}} is missing an operationId
    severity: error
    given: "$.paths[*][get,post,put,patch,delete]"
    then:
      field: operationId
      function: truthy

  robocorp-workspace-id-in-path:
    description: All resource paths should include workspace_id
    message: Path {{path}} should include workspace_id parameter
    severity: warn
    given: "$.paths[*]~"
    then:
      function: pattern
      functionOptions:
        match: "^/workspaces/\\{workspace_id\\}/"

  robocorp-rc-wskey-auth:
    description: Control Room API uses RC-WSKEY prefixed API keys
    message: Security scheme should use apiKey with Authorization header
    severity: warn
    given: "$.components.securitySchemes[*]"
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          properties:
            type:
              type: string
              enum:
                - apiKey

  robocorp-delete-returns-204:
    description: DELETE operations should return 204 No Content
    message: DELETE operation {{path}} should return 204
    severity: warn
    given: "$.paths[*].delete"
    then:
      field: responses.204
      function: truthy

  robocorp-post-create-returns-201:
    description: POST operations that create resources should return 201
    message: POST create operation {{path}} should return 201
    severity: info
    given: "$.paths[*].post"
    then:
      field: responses
      function: truthy

  robocorp-list-operations-paginated:
    description: List operations should support pagination with cursor
    message: List operation {{path}} should support cursor-based pagination
    severity: info
    given: "$.paths[*].get"
    then:
      field: parameters
      function: truthy

  robocorp-camel-case-operation-id:
    description: OperationIds should use camelCase
    message: OperationId {{value}} should use camelCase
    severity: warn
    given: "$.paths[*][get,post,put,patch,delete].operationId"
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-zA-Z0-9]+$"

  robocorp-state-enum-defined:
    description: State fields should use defined enumerations
    message: State property {{path}} should define allowed values
    severity: info
    given: "$.components.schemas[*].properties.state"
    then:
      field: enum
      function: truthy

  robocorp-schema-has-description:
    description: Schema components should have descriptions
    message: Schema {{path}} is missing a description
    severity: info
    given: "$.components.schemas[*]"
    then:
      field: description
      function: truthy

  robocorp-has-error-response:
    description: Operations should define 401 unauthorized response
    message: Operation {{path}} should define 401 response
    severity: warn
    given: "$.paths[*][get,post,put,patch,delete]"
    then:
      field: responses.401
      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/robocorp-control-room-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.