Vendr · API Governance Rules
Vendr API Rules
Spectral linting rules defining API design standards and conventions for Vendr.
11 Rules
error 3
warn 7
Rule Categories
vendr
Rules
error
vendr-path-version-prefix
All Vendr API paths must be prefixed with /v1/
$.paths[*]~
warn
vendr-security-defined
All operations must require X-API-Key authentication
$.paths[*][*]
warn
vendr-path-kebab-case
Path segments must use kebab-case
$.paths[*]~
error
vendr-operation-id-required
All operations must have an operationId
$.paths[*][get,post,put,patch,delete]
warn
vendr-operation-id-camel-case
operationId should use camelCase
$.paths[*][get,post,put,patch,delete].operationId
error
vendr-operation-summary-required
All operations must have a summary
$.paths[*][get,post,put,patch,delete]
warn
vendr-summary-title-case
Operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary
warn
vendr-401-response-required
Authenticated operations must include a 401 response
$.paths[*][get,post,put,patch,delete].responses
warn
vendr-429-response-required
Operations must document rate limit (429) responses
$.paths[*][get,post,put,patch,delete].responses
warn
vendr-info-contact
API info must include contact information
$.info
hint
vendr-schema-description
Schema properties should have descriptions
$.components.schemas[*].properties[*]