Onfleet · API Governance Rules
Onfleet API Rules
Spectral linting rules defining API design standards and conventions for Onfleet.
6 Rules
error 1
warn 4
info 1
Rule Categories
message
no
operation
payload
server
Rules
error
server-secure-protocol
Servers should use a secure protocol (this API's convention).
$.servers[*].protocol
warn
message-name-casing
Message names should be PascalCase (the dominant convention in this API).
$.components.messages
info
payload-property-casing
Message payload properties should be camelCase (the dominant convention in this API).
$.components.schemas[*].properties
warn
operation-id-casing
Operation IDs should be camelCase (the dominant convention in this API).
$.channels[*][publish,subscribe].operationId
warn
message-payload-defined
Messages should define a payload schema (set on 100% of this API's messages).
$.components.messages[*]
warn
no-empty-descriptions
Descriptions must not be empty strings.
$..description