Skip to content

Conversation

@jaxxzer
Copy link
Member

@jaxxzer jaxxzer commented Jul 16, 2019

The valid range metadata can go into the documentation, provide constants for sensor class, and make it possible to do runtime validations in templates.

@jaxxzer jaxxzer requested a review from patrickelectric July 16, 2019 12:46
"type": "u8",
"description": "0 = skip bootloader; 1 = run bootloader"
"description": "0 = skip bootloader; 1 = run bootloader",
"default": "0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minimum and maximum are missing here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a range value. It is an enumeration. I think range does not make sense here.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it's an enum, it's better to use identifiers instead of integers in the json

"type": "u8",
"description": "0 = do not transmit; 1 = transmit after the transducer has reached the specified angle"
"description": "0 = do not transmit; 1 = transmit after the transducer has reached the specified angle",
"default": "0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing maximum and minimum.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a range value. It is an enumeration. I think range does not make sense here.

@jaxxzer
Copy link
Member Author

jaxxzer commented Aug 5, 2019

Add min/max to common and ping1d.

fix #163

@patrickelectric
Copy link
Member

I'll try to cherry-pick this and move to fields as suggested by @tcanabrava

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.

3 participants