SmartRecruiters · API Governance Rules
SmartRecruiters API Rules
Spectral linting rules defining API design standards and conventions for SmartRecruiters.
10 Rules
error 4
warn 6
Rule Categories
smartrecruiters
Rules
warn
smartrecruiters-operation-tags
All operations must have at least one tag for grouping
$.paths[*][*]
error
smartrecruiters-operation-ids
All operations must have an operationId in camelCase
$.paths[*][*]
warn
smartrecruiters-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
warn
smartrecruiters-pagination-params
List operations should support limit and offset pagination parameters
$.paths[*].get
warn
smartrecruiters-list-result-wrapper
List endpoints should return a ListResult wrapper with limit, offset, totalFound, and content fields
$.paths[*].get.responses.200.content['application/json'].schema
warn
smartrecruiters-company-identifier-path
Paths that access company-scoped resources must include companyIdentifier path parameter
$.paths['/v1/companies/{companyIdentifier}/*']
error
smartrecruiters-error-responses
All operations must define 401 and 403 error responses
$.paths[*][post,put,patch,delete]
error
smartrecruiters-content-type
Request bodies must use application/json content type
$.paths[*][post,put,patch].requestBody.content
error
smartrecruiters-security-scheme
API must define authentication security schemes (ApiKey or OAuth2)
$.components.securitySchemes
warn
smartrecruiters-no-trailing-slashes
API paths must not have trailing slashes
$.paths