W3C · API Governance Rules
W3C API Rules
Spectral linting rules defining API design standards and conventions for W3C.
7 Rules
warn 3
info 4
Rule Categories
w3c
Rules
info
w3c-api-info-contact
W3C API definitions should include contact information.
$.info
warn
w3c-api-operation-summary-title-case
Operation summaries should use Title Case.
$.paths[*][*].summary
info
w3c-api-has-description
All operations should have a description for documentation quality.
$.paths[*][*]
warn
w3c-api-response-defined
Every operation should define at least one response.
$.paths[*][*].responses
warn
w3c-api-200-response
GET operations should have a 200 response defined.
$.paths[*].get.responses
info
w3c-api-path-versioned
W3C API paths should be versioned.
$.servers[*].url
info
w3c-api-tags-defined
Operations should be tagged for logical grouping.
$.paths[*][*]