Under Armour · API Governance Rules
Under Armour API Rules
Spectral linting rules defining API design standards and conventions for Under Armour.
10 Rules
error 3
warn 6
info 1
Rule Categories
ua
Rules
error
ua-operation-ids-required
All operations must have an operationId
$.paths[*][get,post,put,patch,delete,options,head]
warn
ua-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary
warn
ua-tags-required
Operations must have at least one tag
$.paths[*][get,post,put,patch,delete]
info
ua-path-trailing-slash
Paths should use trailing slash per Under Armour API convention
$.paths[*]~
error
ua-responses-must-include-success
Operations must define at least one 2xx success response
$.paths[*][get,post,put,patch,delete].responses
error
ua-oauth2-security-defined
API must define OAuth2 security scheme
$.components.securitySchemes
warn
ua-version-prefix-in-path
Paths must include API version prefix
$.paths[*]~
warn
ua-path-parameters-described
Path parameters must include a description
$.paths[*][*].parameters[?(@.in == "path")]
warn
ua-delete-returns-204
DELETE operations should return 204 No Content
$.paths[*].delete.responses
warn
ua-post-returns-201
POST create operations should return 201 Created
$.paths[*].post.responses