Encore · API Governance Rules
Encore API Rules
Spectral linting rules defining API design standards and conventions for Encore.
7 Rules
error 4
warn 2
info 1
Rule Categories
encore
Rules
error
encore-info-title
Encore API specs should set info.title.
$.info
error
encore-info-version
Encore API specs should set info.version reflecting the framework or platform version.
$.info
error
encore-operation-operation-id
Every operation must have a camelCase operationId.
$.paths.*.[get,put,post,delete,patch,options,head]
error
encore-operation-summary
Every operation must have a Title Case summary.
$.paths.*.[get,put,post,delete,patch,options,head]
warn
encore-operation-description
Every operation must have a description.
$.paths.*.[get,put,post,delete,patch,options,head]
info
encore-canonical-error-codes
Encore error responses should include a `code` field carrying a canonical error code (invalid_argument, unauthenticated, permission_denied, not_found, already_exists, internal, unavailable).
$.components.schemas.Error
warn
encore-path-lower-kebab
Paths should use lowercase kebab-case segments.
$.paths.*~