Convex · API Governance Rules
Convex API Rules
Spectral linting rules defining API design standards and conventions for Convex.
7 Rules
error 4
warn 3
Rule Categories
convex
Rules
error
convex-http-info-title
HTTP API OpenAPI info.title must reference Convex HTTP API
$.info.title
error
convex-http-server-defined
At least one server URL must be defined for the deployment
$.servers
warn
convex-http-server-pattern
HTTP API server URLs must match the convex.cloud deployment pattern
$.servers[*].url
warn
convex-http-tag-required
Tags must declare Queries, Mutations, Actions, or Functions scope
$.tags[*].name
error
convex-http-operation-id-camelcase
Every operation must define an operationId using camelCase
$.paths.*[get,put,post,delete,patch].operationId
error
convex-http-paths-prefix
HTTP API paths must live under /api
$.paths
warn
convex-http-post-only
Function execution endpoints must be POST
$.paths[?(@property =~ /^\/api\/(query|mutation|action|run)/)]