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
Note that the original test case does not and will not work -- Jackson requires definition of values that are referenceable, regardless of underlying data format.
This is done by using annotation
@JsonIdentityInfo
on type or property. Further, type to annotate needs to be POJO type (or, property value needs to be POJO type when used on properties).
But with these modifications, perhaps it should be possible to define POJO type that serializes as an integer number, and then use Object Id references?
This is challenging since representation in such cases is similar (by shape, that is, scalar datatype), and may not be something that can be supported. But this is not yet known to be a hard limitation.
(note: based on https://github.com/FasterXML/jackson-dataformat-yaml/issues/62)
If possible, it would be great to be able to support anchors for simple scalar values.
The original test case to show this would be:
The text was updated successfully, but these errors were encountered: