US Department of Defense · API Governance Rules
US Department of Defense API Rules
Spectral linting rules defining API design standards and conventions for US Department of Defense.
10 Rules
error 2
warn 6
info 2
Rule Categories
cwms
Rules
warn
cwms-operation-ids-camel-case
Operation IDs must use camelCase naming
$.paths[*][*].operationId
error
cwms-operations-have-summaries
All operations must have a summary
$.paths[*][get,post,put,patch,delete]
warn
cwms-operations-have-tags
All operations should be tagged for grouping
$.paths[*][get,post,put,patch,delete]
info
cwms-office-param-described
Office parameter should have a description explaining valid values
$.paths[*][*].parameters[?(@.name == 'office')]
warn
cwms-response-200-defined
All GET operations should define a 200 response
$.paths[*][get]
error
cwms-servers-defined
API must define servers for base URL
$
warn
cwms-info-contact-present
API should have contact information
$.info
warn
cwms-tags-title-case
Tags must use Title Case naming
$.tags[*].name
info
cwms-time-params-iso8601
Time parameters should specify ISO 8601 format
$.paths[*][*].parameters[?(@.name == 'begin' || @.name == 'end')]
warn
cwms-path-lowercase
API paths should use lowercase
$.paths