The Things Network / The Things Stack · API Governance Rules
The Things Network / The Things Stack API Rules
Spectral linting rules defining API design standards and conventions for The Things Network / The Things Stack.
5 Rules
error 1
warn 2
Rule Categories
ttn
Rules
warn
ttn-tag-pascal-case
Tag names follow PascalCase service naming used by the upstream gRPC-Gateway swagger (e.g., ApplicationRegistry, GatewayServer).
$.tags[*].name
warn
ttn-path-prefix
HTTP paths under the AS, NS, GS, JS, and IS use stable resource-first segments.
$.paths
hint
ttn-field-mask-on-set
PUT/POST set-style operations should accept a field_mask body parameter for partial updates.
$.paths[*][put,patch].parameters[?(@.in == 'body')].schema.properties
error
ttn-operation-id-required
All operations must declare an operationId.
$.paths[*][get,put,post,delete].operationId
hint
ttn-title-case-summaries
Operation summaries should use Title Case.
$.paths[*][get,put,post,delete].summary