You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to customize HalFormsConfiguration in order to be able to produce HAL-Forms options for some template payload properties via a home made annotation based engine.
Since this computation is private, I have no other way than copying the Spring HATEOAS name computation code in my project to make sure to match my annotated property with the name expected by Spring HATEOAS.
The text was updated successfully, but these errors were encountered:
Nothing in the current HalFormsConfiguration is designed for extension, as it's impossible to do that without knowing what folks might envision to customize. Can you elaborate on what you're actually trying to achieve?
I'd like to customize
HalFormsConfiguration
in order to be able to produce HAL-Forms options for some template payload properties via a home made annotation based engine.My goal is to have something like this:
To do that, I need to invoke
spring-hateoas/src/main/java/org/springframework/hateoas/mediatype/hal/forms/HalFormsConfiguration.java
Lines 170 to 171 in 6884846
The
property
argument should be the name of the property for which we try to provide options. But this value is computed like this:spring-hateoas/src/main/java/org/springframework/hateoas/mediatype/PropertyUtils.java
Lines 445 to 456 in a796509
Since this computation is private, I have no other way than copying the Spring HATEOAS name computation code in my project to make sure to match my annotated property with the name expected by Spring HATEOAS.
The text was updated successfully, but these errors were encountered: