Gravitee · API Governance Rules
Gravitee API Rules
Spectral linting rules defining API design standards and conventions for Gravitee.
9 Rules
error 5
warn 3
Rule Categories
gravitee
Rules
error
gravitee-operation-id-camelcase
Operation IDs MUST use camelCase verb-noun form (listApis, createApi, deployApi).
$.paths.*[get,post,put,patch,delete].operationId
warn
gravitee-operation-id-verb-prefix
Operation IDs SHOULD start with an action verb.
$.paths.*[get,post,put,patch,delete].operationId
error
gravitee-summary-title-case
Operation summaries MUST be Title Case.
$.paths.*[get,post,put,patch,delete].summary
error
gravitee-tag-defined
Operations MUST have at least one tag from the published tag list.
$.paths.*[get,post,put,patch,delete]
error
gravitee-security-required
All operations MUST declare security (Bearer, Basic, or Cookie); public endpoints must explicitly set security to an empty array.
$
warn
gravitee-server-versioned
Servers MUST reference the /management/v2 base URL.
$.servers[*].url
warn
gravitee-environment-path-parameter
Environment-scoped paths MUST take envId as a path parameter.
$.paths[?(@property.match(/^\/environments\/\{envId\}/))]
error
gravitee-no-trailing-slash
Paths MUST NOT end with a trailing slash (except the root path).
$.paths
hint
gravitee-action-paths-use-underscore-prefix
Imperative action paths SHOULD use the _verb convention (_deploy, _start, _stop, _publish, _close, _accept, _reject, _search, _import, _verify, _process).
$.paths