Vercel · API Governance Rules
Vercel API Rules
Spectral linting rules defining API design standards and conventions for Vercel.
11 Rules
error 5
warn 6
Rule Categories
vercel
Rules
error
vercel-bearer-auth
Vercel APIs must use Bearer token authentication
$.components.securitySchemes[*]
error
vercel-operation-id-required
All operations must define an operationId
$.paths[*][get,post,put,patch,delete]
warn
vercel-operation-id-camel-case
operationId should use camelCase
$.paths[*][get,post,put,patch,delete].operationId
warn
vercel-summary-title-case
Operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary
error
vercel-summary-required
All operations must have a summary
$.paths[*][get,post,put,patch,delete]
warn
vercel-ai-gateway-path-version
AI Gateway paths must use /v1/ prefix
$.paths[*]~
error
vercel-401-response
All operations must document 401 Unauthorized response
$.paths[*][get,post,put,patch,delete].responses
warn
vercel-429-response
Operations should document 429 rate limit response
$.paths[*][post].responses
warn
vercel-path-kebab-case
Path segments should use kebab-case
$.paths[*]~
warn
vercel-info-contact
API info must include contact information
$.info
error
vercel-servers-defined
API must define server URLs
$