Restack · API Governance Rules
Restack API Rules
Spectral linting rules defining API design standards and conventions for Restack.
10 Rules
error 1
warn 7
info 2
Rule Categories
restack
Rules
warn
restack-operation-ids-kebab-case
Operation IDs must use camelCase (Restack convention)
$.paths[*][*].operationId
warn
restack-paths-api-prefix
All Restack paths must start with /api/ or /health
$.paths
info
restack-resource-path-components
Agent and workflow paths must include resource type and name
$.paths
warn
restack-bearer-auth-required
All non-health endpoints must require bearer authentication
$.paths[?([email protected](/health/))][*]
warn
restack-operations-have-tags
All operations must have at least one tag
$.paths[*][*]
warn
restack-responses-have-200
POST operations should have a 200 success response
$.paths[*].post
error
restack-request-body-content-type
Request bodies must use application/json
$.paths[*][*].requestBody.content
info
restack-input-object-structure
Request bodies should wrap input in an 'input' property
$.paths[?(@property.match(/\/api\/(agents|workflows)/)].post.requestBody.content.application/json.schema.properties
warn
restack-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
warn
restack-info-contact-defined
API info must include contact information
$.info