Speakeasy · API Governance Rules
Speakeasy API Rules
Spectral linting rules defining API design standards and conventions for Speakeasy.
9 Rules
error 2
warn 5
info 2
Rule Categories
speakeasy
Rules
error
speakeasy-path-versioned
All API paths must be prefixed with /v1/
$.paths.*~
warn
speakeasy-operation-id-camel-case
Operation IDs must use camelCase
$.paths.*.*.operationId
error
speakeasy-operation-id-required
All operations must define an operationId
$.paths.*[get,post,put,patch,delete]
warn
speakeasy-operation-tags-required
All operations must have at least one tag for grouping
$.paths.*[get,post,put,patch,delete]
warn
speakeasy-operation-summary-required
All operations must have a summary in Title Case
$.paths.*[get,post,put,patch,delete]
warn
speakeasy-error-responses-required
Operations should define 4XX error responses
$.paths.*[get,post,put,patch,delete].responses
info
speakeasy-path-param-camel-case
Path parameters should use camelCase naming (e.g., workspaceId not workspace_id)
$.paths.*.*.parameters[?(@.in == 'path')].name
warn
speakeasy-security-defined
API operations should define security requirements
$.paths.*[get,post,put,patch,delete]
info
speakeasy-workspace-paths-consistent
Workspace-scoped paths should use the /workspace/{workspace_id}/ prefix
$.paths.*~