US Senate · API Governance Rules
US Senate API Rules
Spectral linting rules defining API design standards and conventions for US Senate.
7 Rules
error 2
warn 3
info 2
Rule Categories
lda
Rules
info
lda-path-trailing-slash
LDA API paths end with a trailing slash
$.paths[*]~
info
lda-format-parameter
LDA API GET operations should support a format parameter
$.paths[*].get
error
lda-operation-summary-required
All operations must have a summary
$.paths[*][*]
warn
lda-list-endpoints-paginated
List endpoints must return paginated responses with count/next/previous
$.paths[*].get.responses.200.content.application/json.schema
warn
lda-operation-tags
Operations must have at least one tag
$.paths[*][*]
error
lda-get-200-response
All GET operations must define a 200 response
$.paths[*].get
warn
lda-path-params-documented
Path parameters must have description
$.paths[*][*].parameters[?(@.in == 'path')]