US Bureau of Labor Statistics · API Governance Rules
US Bureau of Labor Statistics API Rules
Spectral linting rules defining API design standards and conventions for US Bureau of Labor Statistics.
10 Rules
error 2
warn 5
info 3
Rule Categories
bls
Rules
warn
bls-info-contact
BLS API specs must include contact information
$.info
warn
bls-operation-tags
All operations must be tagged
$.paths[*][get,post,put,patch,delete]
error
bls-operation-summary
All operations must have a summary
$.paths[*][get,post,put,patch,delete]
error
bls-operation-id
All operations must have an operationId
$.paths[*][get,post,put,patch,delete]
warn
bls-parameter-description
All parameters must have a description
$.paths[*][get,post,put,patch,delete].parameters[*]
warn
bls-response-schema
All 200 responses must have a schema
$.paths[*][get,post,put,patch,delete].responses.200
info
bls-registration-key-pattern
Registration key parameters should follow BLS naming convention
$.paths[*][get,post,put,patch,delete].parameters[?(@.in == 'query')]
info
bls-series-id-format
Series ID path parameters should follow BLS naming conventions
$.paths[*][get,post,put,patch,delete].parameters[?(@.name == 'seriesId')]
warn
bls-json-responses
BLS API should return JSON responses
$.paths[*][get,post,put,patch,delete].responses[200,201].content
info
bls-version-servers
BLS API servers should specify versioned paths
$.servers[*]