Skip to content

Adopt RELAY spec v0.3 — JSON schemas and golden vectors available #11

Description

@SoundMatt

RELAY spec v0.3 released

The RELAY specification has been bumped to v0.3 (draft). See spec/CHANGELOG.md and spec/version.json.

New cross-cutting artifacts useful for this repo:

  • JSON Schemas (draft 2020-12) for every canonical type and CLI document are now published under spec/schemas/ and embedded in the relay binary (relay.Schema(name)).
  • Golden reference vectors are published under spec/vectors/, including error-condition vectors under spec/vectors/errors/. Use these as fixtures to verify your ToMessage()/FromMessage() and validators.
  • relay conform <binary> now validates version/capabilities/status output against the §12 schemas.

Action: when this implementation adopts v0.3, update its exported spec version to "0.3" and run relay conform against the schemas.


C++ note: the JSON Schemas under spec/schemas/ are language-neutral and apply to the C++ RCP implementation's version/capabilities/status CLI output (§12) and its canonical RCP types (rcp-command.json, rcp-status.json). Build the CLI with -DRELAY_BUILD_CLI=ON so relay conform can validate it against the schemas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions