Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
0.25
-
Quasar
-
Puma Sprint 229
Description
In HSTTWO-4748 we are adding to HippoBean something like
public Map<String, Object> getContributorMap() { // return some map of objects populated by contributors which can be added // by downstream projects }
However, typically what we do need is that this contributor map gets its keys get serialized as sibling of the normal getters!!! Therefor we need behavior similar to @JsonAnyGetter (which again is similar to @JsonUnwrapped but then for a Map). See [1]
We need similar behavior, therefor introduce support for
@PageModelAnyGetter public Map<String, Object> getContributorMap() { // return some map of objects populated by contributors which can be added // by downstream projects }
where PageModelAnyGetter should behave as JsonAnyGetter