Rundeck · API Governance Rules
Rundeck API Rules
Spectral linting rules defining API design standards and conventions for Rundeck.
18 Rules
error 7
warn 11
Rule Categories
rundeck
Rules
error
rundeck-operation-id-required
All operations must have an operationId for code generation
$.paths[*][get,post,put,patch,delete]
warn
rundeck-operation-id-camel-case
Rundeck operationIds use camelCase convention (e.g., listJobs, runJob, getExecution). This ensures consistent client SDK method naming.
$.paths[*][get,post,put,patch,delete].operationId
error
rundeck-tags-required
All operations must have at least one tag for grouping
$.paths[*][get,post,put,patch,delete]
warn
rundeck-tags-title-case
Tags must use Title Case (e.g., "Jobs", "Executions", "Projects")
$.paths[*][get,post,put,patch,delete].tags[*]
error
rundeck-summary-required
All operations must have a summary
$.paths[*][get,post,put,patch,delete]
warn
rundeck-summary-title-case
Operation summaries must use Title Case (e.g., "List Jobs", "Run Job", "Get Execution Status"). This matches Rundeck's documentation style.
$.paths[*][get,post,put,patch,delete].summary
warn
rundeck-description-required
All operations must have a description
$.paths[*][get,post,put,patch,delete]
warn
rundeck-responses-must-include-401
Rundeck API requires authentication on all protected endpoints. Operations must document the 401 Unauthorized response.
$.paths[*][get,post,put,patch,delete].responses
error
rundeck-get-must-return-200
GET operations must define a 200 success response
$.paths[*].get.responses
warn
rundeck-delete-must-return-204
DELETE operations should return 204 No Content
$.paths[*].delete.responses
warn
rundeck-post-must-return-200-or-201
POST operations must return either 200 or 201
$.paths[*].post.responses
error
rundeck-project-path-parameter
Path operations containing {project} must have the project parameter documented. Rundeck organizes most resources under projects.
$.paths[~/project/~][*].parameters[?(@.name == 'project')]
error
rundeck-execution-id-path-parameter
Path operations with {id} for executions must mark id as required
$.paths[~/execution/~][*].parameters[?(@.name == 'id')]
warn
rundeck-token-auth-header-name
Rundeck uses X-Rundeck-Auth-Token header for API token authentication. Security schemes should reference this header name.
$.components.securitySchemes[?(@.type == 'apiKey')].name
warn
rundeck-schema-type-required
All schema properties should have a type defined
$.components.schemas[*].properties[*]
warn
rundeck-response-content-type-json
API responses should use application/json content type
$.paths[*][get,post,put].responses[200,201].content
warn
rundeck-info-contact-required
API info must include contact information
$.info
error
rundeck-servers-defined
At least one server must be defined
$