Skip to content

[FEATURE]: <WithEndpoint>: Support more Metadata Values #82

@ANeaves

Description

@ANeaves

WithEndpoint only currently checks for/supports the Writeable Metadata value (auto genned depending on if the param has a PUT method) and the Min/Max values.

This is a full list of manual Metadata labels that could exist, and a recommendation for what to do if they do:

  • name
    • Use as a floating label maybe? Assuming the type of component rendered supports it
  • description
    • Add a tooltip to the component containing the description?
  • min/max
    • as we are currently using it
  • allowed_values
    • same as what we are currently doing with min/max. Check submitted value against list of possible, don't do the PUT if it doesn't match
  • units
    • a label to show the units alongside the input box?
  • display_precision
    • display according to precision

Some of these may be best left to the developer to chose which to display, such as the labels. But at minimum, allowed_values and display_precision might be worth supporting.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions