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-mgmt-info-title
Management API OpenAPI info.title must reference Convex Management
$.info.title
error
convex-mgmt-server-defined
At least one server URL must be defined
$.servers
error
convex-mgmt-server-host
Management API server URL must point to api.convex.dev
$.servers[*].url
error
convex-mgmt-bearer-auth
Management API must declare bearer authentication
$.components.securitySchemes
warn
convex-mgmt-tag-required
Tags must declare Projects, Deployments, Teams, AccessTokens, DeployKeys, CustomDomains, or EnvironmentVariables scope
$.tags[*].name
warn
convex-mgmt-operation-id-camelcase
Every operation must define an operationId in camelCase or snake_case
$.paths.*[get,put,post,delete,patch].operationId
warn
convex-mgmt-paths-prefix
Management API paths must live under /teams, /projects, /deployments, or /token
$.paths