Skip to content

Surface device.yml descriptions in the runtime generated modules - #54

Open
bruno-f-cruz wants to merge 3 commits into
mainfrom
feat-emit-descriptions-as-docstrings
Open

Surface device.yml descriptions in the runtime generated modules#54
bruno-f-cruz wants to merge 3 commits into
mainfrom
feat-emit-descriptions-as-docstrings

Conversation

@bruno-f-cruz

Copy link
Copy Markdown
Member

The runtime schema generator (harp.device.schema._emit) built register, payload field, and mask classes at runtime but silently dropped every description: from device.yml. This surfaces them as __doc__ on the emitted objects, matching what the static generator (harp-tech/generators) documents for the same schema:

  • register.description: __doc__ on the register class
  • payloadSpec.<member>.description: __doc__ on its Field/GroupMask descriptor
  • bitMask/groupMask.description: __doc__ on the emitted enum class
  • the per-value maskValue.description: __doc__ on the individual enum member

Closes #53

@bruno-f-cruz
bruno-f-cruz requested a review from glopesdev August 31, 2026 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Runtime module should emit description as docstrings on all members

1 participant