Radio Browser · API Governance Rules
Radio Browser API Rules
Spectral linting rules defining API design standards and conventions for Radio Browser.
7 Rules
error 2
warn 4
info 1
Rule Categories
rb
Rules
error
rb-operation-id-camel-case
All operationIds must be camelCase to match Radio Browser conventions.
$.paths[*][get,post,put,delete,patch].operationId
warn
rb-summary-title-case
Operation summaries must use Title Case.
$.paths[*][get,post,put,delete,patch].summary
warn
rb-stations-tag-required
Operations under /json/stations must be tagged Stations.
$.paths[?(@property =~ /^\/json\/stations/)][get,post].tags
error
rb-uuid-path-format
Station path parameters named stationuuid must declare format uuid.
$.paths[*][get,post,put,delete,patch].parameters[?(@.name=='stationuuid')].schema
warn
rb-user-agent-doc
The API description must remind callers that a User-Agent header is mandatory.
$.info.description
warn
rb-license-agpl
License must be AGPL-3.0 for the canonical server.
$.info.license.name
info
rb-server-pool
At least one server entry must reference the round-robin pool host.
$.servers[*].url