spring-hateoas icon indicating copy to clipboard operation
spring-hateoas copied to clipboard

Allow to define HAL FORMS options based on the representation model's state

Open Ickbinet opened this issue 4 years ago • 5 comments

At the moment options can only be added via HalFormsConfiguration for certain input classes' properties. It would be more flexible when PropertyMetadata would support it too, because there are use cases where a class and property based approach is not sufficient:

  • Dependent on a certain state only a subset of options are allowed: order amount > 1000 $ -> shipping only via UPS, not via FedEx
  • List/Array types: property or Parameter of type List<Long>

Ickbinet avatar Oct 22 '21 21:10 Ickbinet