com.fasterxml.jackson.module.kotlin.MissingKotlinParameterException #223
Replies: 2 comments 1 reply
-
By "missing" I guess you mean "unknown" (or unrecognized)? It would make sense to add an example here, because behavior can be different between different target types: This is why a reproduction (or example) is needed, not general verbal description. |
Beta Was this translation helpful? Give feedback.
-
Consider my Dataclass is |
Beta Was this translation helpful? Give feedback.
-
Does Jackson support deserializing missing keys in the json? Currently we have a data class where a member is non nullable and the same is not present in the json; for which jackson throws com.fasterxml.jackson.module.kotlin.MissingKotlinParameterException . But I dont want jackson to assign any value if a particular key is missing in the json file, just deserialize the fields present in the json. Is there any configuration that I have missed here?
Additionaly have already configured jackson with this.map.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
Beta Was this translation helpful? Give feedback.
All reactions