Skip to content

defaultValue is not honored for Python code generation #133

Description

@bruno-f-cruz

The device.yml already specifies a defaultValue field. The python interface supports it via a "default" keyword in the field constructor:

https://github.com/harp-tech/python/blob/d32971f3feba5b537d21df955b9f12b242d4292b/src/packages/harp-protocol/src/harp/protocol/_payload.py#L107

It would be nice to honor it in the generated code too. The runtime already supports it. From a quick test it looks like C# already supports it.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions