US Geological Survey · API Governance Rules
US Geological Survey API Rules
Spectral linting rules defining API design standards and conventions for US Geological Survey.
10 Rules
error 2
warn 4
info 4
Rule Categories
usgs
Rules
warn
usgs-operation-ids-camel-case
Operation IDs must use camelCase naming
$.paths[*][*].operationId
error
usgs-operations-have-summaries
All operations must have a summary
$.paths[*][get,post,put,patch,delete]
warn
usgs-operations-have-tags
All operations should be tagged for grouping
$.paths[*][get,post,put,patch,delete]
info
usgs-format-param-documented
Format parameters should list valid values
$.paths[*][*].parameters[?(@.name == 'format')]
warn
usgs-response-200-defined
All GET operations should define a 200 response
$.paths[*][get]
info
usgs-response-400-defined
Query operations should define a 400 bad request response
$.paths[*][get]
error
usgs-servers-defined
API must define servers
$
info
usgs-time-params-iso8601-format
Time parameters should indicate ISO 8601 format
$.paths[*][*].parameters[?(@.name == 'starttime' || @.name == 'endtime')]
info
usgs-geo-params-in-range
Latitude parameters should specify valid range
$.paths[*][*].parameters[?(@.name == 'minlatitude' || @.name == 'maxlatitude')]
warn
usgs-tags-title-case
Tags must use Title Case naming
$.tags[*].name