Skip to content
Wilkin Santana edited this page Nov 29, 2026 · 1 revision

This article explains part of Radio 2.0 in plain words. It is not normative: where it differs from the specification, the specification is right.

Conformance means that a publisher or consumer follows the rules of the Radio 2.0 specification, checked against the checklist in section 12 and, for documents, against the schemas and the reference tests. The standard does not run a certification programme. It gives a checklist and test files.

Defined in Specification section 12
Checklist groups Publisher: manifest; Publisher: events; Consumer
Reference tests manifest/conformance_test.go, testdata/invalid/
Status Draft

The checklist in short

Publisher: manifest

  • The manifest validates against the manifest schema, with specVersion set to "0.2".
  • guid is permanent and manifestUrl names the canonical address.
  • At least one discovery method is offered, and stream responses carry the Link header where the server allows it.
  • The manifest is verified by its homepage.
  • ETag, Cache-Control: max-age=300 and 304 on If-None-Match are in place; 503 with Retry-After for temporary outages; 404 or 410 only when withdrawn.
  • Contact fields appear only as the station chose; no hidden listener counts; no upcoming songs.
  • When stated, broadcast matches the streams' carries, and each transmission has the members its band requires and no others.

Publisher: events (when events is present)

  • Every event validates against the event schema, and the SSE event and id equal type and id.
  • now_playing is sent on every state change, with edge events immediately before it.
  • item.startedAt is the air time and streams declare typicalDelayMs.
  • A message goes out at least every 30 seconds, and Last-Event-ID resume works.
  • The poll address answers the latest now_playing with an ETag.
  • A value override lasts only until the next now_playing.

Consumer

  • Ignores unknown members when reading and accepts application/json.
  • Stores manifests normalised.
  • Uses the manifestUrl copy and applies verification before trusting a manifest.
  • Follows the move rules and never treats 503 as removal.
  • Shows titles at air time plus stream delay.
  • Labels each stream from its own carries.
  • Polls no faster than every 5 seconds and fetches manifests no faster than every 5 minutes.
  • Renders text as plain text and applies the fetch limits when fetching for others.
  • Pays recipients directly, by their splits, with fees shown.

How the reference tests check it

The Go reference implementation tests the standard itself:

  • Examples must pass. Every example manifest, the schedule and every event file must validate and parse. The test counts them and expects 14.
  • Invalid files must fail. Each file in testdata/invalid/ must fail, for the reason in its name, at an expected JSON pointer and rule. Names are prefixed manifest--, event-- or schedule--.
  • Discovery is tested against local httptest servers, not real stations.
  • The command is go test -race ./....

A change that adds a MUST rule needs an example or a counter-example, which is why CONTRIBUTING requires it.

Validator and consumer strictness

A validator reports unknown members, a consumer ignores them. The reference library provides both: strict Parse and Validate, and ParseLenient for consumers. See Reference implementation.

See also

References

Clone this wiki locally