Patch · API Governance Rules
Patch API Rules
Spectral linting rules defining API design standards and conventions for Patch.
10 Rules
error 5
warn 5
Rule Categories
patch
Rules
error
patch-info-title-required
Patch APIs must declare info.title.
$.info
warn
patch-info-contact
Patch APIs must declare an engineering contact.
$.info
error
patch-bearer-auth-required
Patch APIs must declare bearer-auth security scheme.
$.components.securitySchemes
error
patch-server-https
All Patch server URLs must use HTTPS.
$.servers[*].url
warn
patch-tag-titlecase
OpenAPI tags must use Title Case.
$.tags[*].name
warn
patch-summary-titlecase
Operation summaries must use Title Case.
$.paths[*][get,post,put,patch,delete].summary
error
patch-operation-id-camelcase
Operation IDs must be camelCase.
$.paths[*][get,post,put,patch,delete].operationId
error
patch-path-v1-prefix
All API paths must be prefixed with /v1/.
$.paths
warn
patch-error-response-401
Mutating operations must declare a 401 response.
$.paths[*][post,patch,delete].responses
warn
patch-snake-case-properties
JSON property names should be snake_case (Patch convention).
$.components.schemas[*].properties