Postman · API Governance Rules
Postman API Rules
Spectral linting rules defining API design standards and conventions for Postman.
15 Rules
error 7
warn 8
Rule Categories
postman
Rules
error
postman-info-title-required
All Postman API specs must declare info.title.
$
error
postman-info-version-required
All Postman API specs must declare info.version.
$
warn
postman-info-contact-required
Postman API specs should declare info.contact with [email protected].
$
error
postman-server-required
At least one server URL must be defined.
$.servers
warn
postman-server-getpostman
The Postman API base server should be https://api.getpostman.com.
$.servers[*].url
error
postman-api-key-security
Postman APIs authenticate with the x-api-key header.
$.components.securitySchemes
warn
postman-operation-title-case-summary
All operation summaries must use Title Case (e.g. "Get All Collections").
$.paths[*][get,post,put,delete,patch,options,head].summary
error
postman-operation-id-camel
operationId should be lowerCamelCase.
$.paths[*][get,post,put,delete,patch,options,head].operationId
error
postman-operation-tag-required
Every operation must be tagged.
$.paths[*][get,post,put,delete,patch,options,head]
warn
postman-operation-response-401
Every operation should document a 401 unauthorized response.
$.paths[*][get,post,put,delete,patch,options,head].responses
warn
postman-operation-response-429
Every operation should document a 429 rate limited response.
$.paths[*][get,post,put,delete,patch,options,head].responses
warn
postman-path-kebab-case
Paths should use kebab-case (lowercase with hyphens).
$.paths
warn
postman-schema-pascal-case
components.schemas keys should be PascalCase.
$.components.schemas
warn
postman-description-required
Every operation must declare a description.
$.paths[*][get,post,put,delete,patch,options,head]
error
postman-secret-leak-warning
Pre-commit safeguard - reject specs that embed a literal x-api-key value (governance + secret-scanner alignment).
$..[?(@property == 'x-api-key')]