CargoSmart · API Governance Rules
CargoSmart API Rules
Spectral linting rules defining API design standards and conventions for CargoSmart.
6 Rules
error 1
warn 5
Rule Categories
message
no
operation
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
warn
operation-id-casing
Operation IDs should be camelCase (the dominant convention in this API).
$.channels[*][publish,subscribe].operationId
warn
message-contenttype-defined
Messages should declare a contentType (set on 100% of this API's messages).
$.components.messages[*]
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