Skip to content
This repository was archived by the owner on Aug 9, 2025. It is now read-only.

Commit ad0b7a9

Browse files
committed
fix(rest): initialize constructor arg with default
The com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of error typically occurs when Jackson is unable to create an instance of a class during deserialization.
1 parent b5cf46a commit ad0b7a9

File tree

1 file changed

+1
-1
lines changed
  • rest-adapter/src/main/kotlin/packagename/rest/representation

1 file changed

+1
-1
lines changed

rest-adapter/src/main/kotlin/packagename/rest/representation/ExampleInfo.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ package packagename.rest.representation
22

33
import packagename.domain.model.Example
44

5-
data class ExampleInfo(val examples: List<Example>)
5+
data class ExampleInfo(val examples: List<Example> = emptyList())

0 commit comments

Comments
 (0)