Open ecattez opened 2 years ago
"I would also expect the template name to be the same as the link rel."
A link can have more than one template associated. The association is defined via the templates target or if no target is set via the self link.
"value": "product-001"
property.value is only set for options with a selected value, which is imho a bug. At least default values should be set.
What is your idea for an algo to detect that the value should be "product-001"?
I think it should take care of the request body, in my case SelectProductRequest. As I fulfilled explicitely the methodOn(...) with the request body, it should use the specified value.
It works like a charm with query params and path variables. So it should works with request body.
For the example, I've got products with product references.
Here's the code to set "select-product" relation.
Here's the current result of the collection of products:
I would expect to have product reference already set in
selectProduct
template like below:It seems that value does not exist in
AffordanceModel#PropertyMetadata
but is a valid in the spec: https://rwcbook.github.io/hal-forms/#_code_value_codeI would also expect the template name to be the same as the link rel.