FasterXML / FasterXML/jackson-module-kotlin

Simplest way to use @JsonManagedReference

Open
#294 5 comments 3 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
1.2k
Forks
187
Avg merge
9h 48m
Merged PRs (30d)
16

Description

We're trying to use `@JsonManagedReference` but so far the `@JsonBackReference` is null when we deserialize.

We tried the approach from #129 .
But actually this test doesn't check that the back reference is set when deserializing. We added
`assertNotNull(value.colors.single().car)`
and then the test fails.

The example from #149 works, but it uses a backing field, which we'd prefer not to use.

What's the simplest way to get the example from #129 to work?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.