US Department of Commerce · API Governance Rules
US Department of Commerce API Rules
Spectral linting rules defining API design standards and conventions for US Department of Commerce.
10 Rules
error 2
warn 7
info 1
Rule Categories
commerce
Rules
warn
commerce-operation-ids-camel-case
Operation IDs must use camelCase naming
$.paths[*][*].operationId
warn
commerce-response-200-present
All operations should define a 200 response
$.paths[*][get,post,put,patch]
warn
commerce-path-kebab-case
API paths must use kebab-case for path segments
$.paths
error
commerce-operations-have-summaries
All operations must have a summary
$.paths[*][get,post,put,patch,delete]
warn
commerce-operations-have-tags
All operations should have at least one tag
$.paths[*][get,post,put,patch,delete]
info
commerce-pagination-params-consistent
List operations should use consistent pagination parameters
$.paths[*][get]
warn
commerce-response-schema-defined
Successful responses should reference a schema
$.paths[*][get].responses.200
warn
commerce-info-contact-present
API info should include contact information
$.info
error
commerce-servers-defined
API must define at least one server
$
warn
commerce-tags-title-case
Tags must use Title Case naming
$.tags[*].name