spring-projects / spring-projects/spring-hateoas
Allow extending `HalFormsProperty` behind HAL-FORMS specification
Open
@odrotbohm is already working on this.
Since Aug 12, 2025.
in: mediatypes
type: enhancement
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 476
- PR merge metrics
- No merged PRs in 30d
Description
We'd like to add custom attributes to HalFormsProperty. This seems allowed by HAL-FORMS specification but it seems currently impossible with Spring HATEAOS.
IMO, the best extension point would be somewhere here:
I guess that would mean adding a free Map to HalFormsProperty and a PropertyCustomizer SPI looking like this:
interface PropertyCustomizer {
HalFormsProperty customize(HalFormsProperty property, InputPayloadMetadata payload, PropertyMetadata metadata, PropertyCreationContext context);
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.