Skip to content

Read draft-03 device interface files #60

Description

@glopesdev

The schema model in harp-device follows the draft-02 device schema. harp-tech/protocol#249 changed it for draft-03, and a draft-03 file does not load correctly today:

  • name replaces device, and version replaces firmwareVersion. Both new keys are ignored by DeviceModel, so the device name and version read as None.
  • hardwareTargets is removed.
  • Registers called Reserved followed by their address declare visibility: reserved, which Visibility does not accept, and take defaults for everything else, a single U8 with Read access, so a reserved register declaring no type fails to load.
  • deprecated is declared on payload members as well as registers.

Both key spellings need to load, since draft-02 files keep device and firmwareVersion.

Activity

  1. added this to the 0.6.0 milestone on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions