UPS · API Governance Rules
UPS API Rules
Spectral linting rules defining API design standards and conventions for UPS.
6 Rules
warn 3
info 3
Rule Categories
ups
Rules
warn
ups-operation-ids-camel-case
Operation IDs must use camelCase
$.paths[*][*].operationId
warn
ups-summaries-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
warn
ups-bearer-auth-required
All non-OAuth operations must use BearerAuth
$.paths[?([email protected](/\/oauth\/token/))][get,post,delete]
info
ups-request-wrappers
UPS API requests use PascalCase wrapper objects
$.paths[*][post,put].requestBody.content.application/json.schema
info
ups-void-uses-delete
Void/cancel operations should use DELETE method
$.paths[?(@property.match(/void|cancel/))]
info
ups-tracking-number-path-param
Tracking endpoints use path parameters for tracking numbers
$.paths[?(@property.match(/track/))]