UtilityAPI · API Governance Rules
UtilityAPI API Rules
Spectral linting rules defining API design standards and conventions for UtilityAPI.
8 Rules
error 2
warn 6
Rule Categories
utilityapi
Rules
error
utilityapi-bearer-auth-required
All operations must use bearerAuth security
$.paths[*][*]
warn
utilityapi-uid-path-parameters
Path parameters for resource IDs should be named 'uid'
$.paths[*][*].parameters[*]
warn
utilityapi-pagination-next-cursor
List endpoints should support 'next' cursor pagination
$.paths[*].get
warn
utilityapi-list-response-envelope
List responses should use plural noun envelope
$.paths[*].get.responses.200.content.application/json.schema
error
utilityapi-operations-must-have-summaries
All operations must have a summary
$.paths[*][get,post,put,delete,patch]
warn
utilityapi-operations-must-have-tags
All operations must have at least one tag
$.paths[*][get,post,put,delete,patch]
warn
utilityapi-error-response-defined
Operations should define 401 error responses
$.paths[*][get,post,put,delete,patch].responses
warn
utilityapi-operation-ids-camel-case
Operation IDs should use camelCase
$.paths[*][*].operationId