Skip to content

Commit 52a824a

Browse files
authored
Minor change to test for #56: annotations needed due to FasterXML/jackson-databind#5466 (#1066)
1 parent 207e81a commit 52a824a

File tree

1 file changed

+4
-1
lines changed
  • src/test/kotlin/tools/jackson/module/kotlin/test/github

1 file changed

+4
-1
lines changed

src/test/kotlin/tools/jackson/module/kotlin/test/github/Github56.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ import kotlin.test.assertEquals
1010
class TestGithub56 {
1111
data class TestGalleryWidget_BAD(
1212
val widgetReferenceId: String,
13-
@JsonUnwrapped var gallery: TestGallery
13+
// IMPORTANT! Need _at least_ @get one (@param optional, not sufficient)
14+
// (see https://github.com/FasterXML/jackson-databind/pull/5466 for change
15+
// that made this necessary in 3.1 )
16+
@get:JsonUnwrapped var gallery: TestGallery
1417
)
1518

1619
data class TestGalleryWidget_GOOD(val widgetReferenceId: String) {

0 commit comments

Comments
 (0)