HR Partner · API Governance Rules
HR Partner API Rules
Spectral linting rules defining API design standards and conventions for HR Partner.
18 Rules
error 14
warn 4
Rule Categories
employee
info
no
operation
path
response
schema
security
servers
tag
Rules
error
info-title-required
Info title must be present
$.info
error
info-description-required
Info description must be present
$.info
error
info-contact-required
Info contact must be present
$.info
error
operation-operationid-required
Every operation must have an operationId
$.paths[*][get,post,put,patch,delete]
error
operation-summary-required
Every operation must have a summary
$.paths[*][get,post,put,patch,delete]
error
operation-description-required
Every operation must have a description
$.paths[*][get,post,put,patch,delete]
error
operation-tags-required
Every operation must have at least one tag
$.paths[*][get,post,put,patch,delete]
warn
operation-summary-title-case
Operation summaries must be Title Case
$.paths[*][get,post,put,patch,delete].summary
error
response-description-required
Every response must have a description
$.paths[*][get,post,put,patch,delete].responses[*]
warn
response-200-required
Every operation should declare a 200 response
$.paths[*][get,post]
error
servers-defined
At least one server must be defined
$
error
servers-base-url-hr-partner
Production server must point at api.hrpartner.io
$.servers[0]
error
security-apikey-header
API must declare the x-api-key apiKey header security scheme
$.components.securitySchemes
error
no-empty-descriptions
Descriptions must not be empty
$..description
error
schema-types-required
All schemas must declare a type
$.components.schemas[*]
error
tag-description-required
All top-level tags must have a description
$.tags[*]
warn
path-kebab-or-lower-case
Paths should be lowercase and may use hyphens
$.paths[*]~
warn
employee-code-path-param
Employee-scoped paths must use employeeCode path parameter, not id
$.paths[/employee/{employeeCode}]