spring-hateoas
spring-hateoas copied to clipboard
Allow to define HAL FORMS options based on the representation model's state
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>