United States Army Corps of Engineers · API Governance Rules
United States Army Corps of Engineers API Rules
Spectral linting rules defining API design standards and conventions for United States Army Corps of Engineers.
9 Rules
error 1
warn 7
info 1
Rule Categories
cwms
Rules
warn
cwms-office-code-documented
Office query parameters should document the three-character USACE district code convention
$.paths..parameters[?(@.name == "office")].description
warn
cwms-timeseries-name-format
Time series name parameters should reference CWMS identifier format
$.paths..[?(@.name == "name" && @.in == "query")].description
info
cwms-pagination-documented
Paginated endpoints should document page and page-size parameters
$.paths..get.parameters[?(@.name == "page")]
warn
cwms-unit-enum-values
Unit parameters should have clear enum values
$.paths..parameters[?(@.name == "unit")].schema
warn
cwms-timestamp-format-documented
Date/time parameters should reference ISO 8601 or epoch milliseconds
$.paths..parameters[?(@.name == "begin" || @.name == "end")].description
warn
cwms-response-schemas-defined
All GET responses should reference a schema
$.paths..get.responses.200.content.application/json
error
cwms-operation-ids-present
All operations must have operationIds
$.paths[*][*]
warn
cwms-tags-present
All operations should have at least one tag
$.paths[*][*]
warn
cwms-description-present
All operations should have descriptions
$.paths[*][*]