MarineTraffic · API Governance Rules
MarineTraffic API Rules
Spectral linting rules defining API design standards and conventions for MarineTraffic.
7 Rules
error 2
warn 4
info 1
Rule Categories
marinetraffic
Rules
error
marinetraffic-server-base
All MarineTraffic AIS API specs must declare the canonical services.marinetraffic.com base server.
$.servers
warn
marinetraffic-api-key-in-path
MarineTraffic operations authenticate via an `api_key` path parameter — every path must end in `/{api_key}`.
$.paths.*
warn
marinetraffic-operation-summary-title-case
Operation summaries must use Title Case.
$.paths[*][get,post,put,delete,patch].summary
error
marinetraffic-operation-must-have-tag
Each operation must declare exactly one tag drawn from the MarineTraffic taxonomy.
$.paths[*][get,post,put,delete,patch]
info
marinetraffic-response-content-json
GET responses should declare an `application/json` content type. CSV / JSONO variants are allowed via the `protocol` parameter but JSON must be the default.
$.paths[*][get].responses['200'].content
warn
marinetraffic-no-trailing-slashes-in-paths
Paths must not contain trailing whitespace (Redocly-style operation overloading creates duplicate path keys — not portable).
$.paths
warn
marinetraffic-parameter-protocol-enum
When a `protocol` query parameter exists, its schema must enumerate json / jsono / csv / xml.
$..parameters[?(@.name=='protocol')].schema