Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
0.25
-
Quasar
Description
Currently it contains this"
@Override public JsonSerializer<?> modifySerializer(SerializationConfig config, BeanDescription beanDesc, JsonSerializer<?> serializer) { return new PageModelSerializer((JsonSerializer<Object>) serializer, jsonPointerFactory, metadataDecorators); }
However, when serializing a String object for example, there is no point in returning the PageModelSerializer.
We only need to return the PageModelSerializer for
- Objects that implement PageModelEntity (see
HSTTWO-4750) - The object AggregatedPageModel.RootReference
All the other objects can just be serialized using the default object mapper serialized and do not need our enhanced PageModelSerializer
Attachments
Issue Links
- waits for
-
CMS-12850 Add generic support to indicate on which objects the Page Model API should use $ref logic
- Closed