-
Notifications
You must be signed in to change notification settings - Fork 469
Description
The specification mentions property.value (to express a single, selected value) and property.options.selectedValues to express a list of selected values.
The HalFormsOptions.selectedValue field seems to be neither of those things?
The field seems to become property.value (singular) in the template, but in that case the naming seems off (it should not be part of the "property.options", but it should be directly on the property. The property.options only has the selectedValues field for the values, according to the specification.
The javadoc for the HalFormsOptions.getSelectedValue() is also missing, making it hard to guess the intent of this field. Is this an oversight?
It would be great to have a HalFormsOptions.getSelectedValues() that behaves according to the specification and maybe the currentHalFormsOptions.getSelectedValue() should be deprecated and replaced by something else, that is related to the property more clearly (instead of sitting on the options sub-object).