IBM Turbonomic · API Governance Rules
IBM Turbonomic API Rules
Spectral linting rules defining API design standards and conventions for IBM Turbonomic.
12 Rules
error 2
warn 7
info 3
Rule Categories
turbonomic
Rules
warn
turbonomic-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
error
turbonomic-operation-id-required
All operations must have an operationId
$.paths[*][get,post,put,delete,patch]
warn
turbonomic-uuid-path-parameter
Turbonomic uses 'uuid' as the identifier parameter name for all entity paths. Path parameters referencing entity identifiers should be named 'uuid'.
$.paths[*][*].parameters[?(@.in == 'path')]
warn
turbonomic-bearer-auth-required
All Turbonomic endpoints (except /login and /logout) must require bearer token authentication.
$.paths[?([email protected]('/(login|logout)'))][get,post,put,delete,patch]
warn
turbonomic-200-response-defined
All operations should define a 200 success response
$.paths[*][get,post,put,delete,patch].responses
info
turbonomic-response-schema-defined
Success responses should define a response schema
$.paths[*][get,post,put].responses.200
error
turbonomic-tag-required
All operations must be tagged for Swagger UI grouping
$.paths[*][get,post,put,delete,patch]
warn
turbonomic-description-required
All operations should have a description for documentation completeness
$.paths[*][get,post,put,delete,patch]
warn
turbonomic-parameter-description
All parameters should have a description
$.paths[*][*].parameters[*]
info
turbonomic-no-generic-error
Operations should define specific error responses (401, 404) not just generic errors
$.paths[*][get,post,put,delete,patch].responses
warn
turbonomic-components-schemas-defined
API must define reusable schemas in components/schemas
$.components
info
turbonomic-action-uuid-in-path
Turbonomic action and entity endpoints use UUID as path parameter. Ensure UUID parameters use the correct format.
$.paths[*][*].parameters[?(@.name == 'uuid')]