Restate · API Governance Rules
Restate API Rules
Spectral linting rules defining API design standards and conventions for Restate.
10 Rules
error 3
warn 6
info 1
Rule Categories
restate
Rules
warn
restate-operation-ids-snake-case
Operation IDs must use snake_case (Restate convention)
$.paths[*][*].operationId
warn
restate-tags-defined
All operations must have at least one tag
$.paths[*][*]
warn
restate-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
warn
restate-error-responses-defined
All operations must define error responses
$.paths[*][get,post,put,delete,patch]
error
restate-deployment-uri-required
Create deployment must require URI field
$.paths['/deployments'].post.requestBody.content.application/json.schema
info
restate-server-port-9070
Restate Admin API default server should be on port 9070
$.servers[*].url
error
restate-invocation-status-enum
Invocation status must use defined enum values
$.components.schemas.*.properties.status.enum
error
restate-paths-no-trailing-slash
Paths must not have trailing slashes
$.paths
warn
restate-response-schemas-defined
Success responses should reference schemas
$.paths[*][*].responses[200,201].content.application/json
warn
restate-info-version-semver
API version should follow semver format
$.info.version