United Rentals · API Governance Rules
United Rentals API Rules
Spectral linting rules defining API design standards and conventions for United Rentals.
15 Rules
error 6
warn 9
Rule Categories
date
equipment
info
operation
parameter
path
rental
response
security
servers
Rules
error
operation-operationId
Every operation must have a unique operationId.
$.paths.*[get,post,put,patch,delete,options,head]
warn
operation-summary-title-case
Operation summaries must use Title Case.
$.paths.*[get,post,put,patch,delete].summary
warn
operation-tags
Every operation must include at least one tag.
$.paths.*[get,post,put,patch,delete]
warn
operation-description
Every operation must have a description.
$.paths.*[get,post,put,patch,delete]
warn
path-kebab-case
Path segments must use kebab-case (lowercase with hyphens).
$.paths[*]~
error
path-no-trailing-slash
Paths must not end with a trailing slash.
$.paths[*]~
warn
response-descriptions
All response status codes must include a description.
$.paths.*[get,post,put,patch,delete].responses.*
error
security-apikey-required
United Rentals APIs require X-API-Key authentication. Security must be defined on all operations.
$.paths.*[get,post,put,patch,delete]
warn
operation-request-body-required
POST, PUT, and PATCH operations should have a requestBody.
$.paths.*[post,put,patch]
error
date-field-format
Date fields must use format date (ISO 8601 YYYY-MM-DD).
$.components.schemas.*[*]
error
rental-purchase-order-required
Rental creation requires a purchaseOrderNumber for ERP integration.
$.components.schemas.RentalRequest.required
warn
info-contact
API info must include contact information.
$.info
error
servers-defined
API must define at least one server.
$
warn
parameter-description
All parameters must have a description.
$.paths.*[get,post,put,patch,delete].parameters.*
warn
equipment-rate-completeness
Equipment schemas should define dailyRate, weeklyRate, and monthlyRate.
$.components.schemas.Equipment.properties