FasterXML / FasterXML/jackson-module-kotlin

Take into account Java Optional when calculating the property's required marker

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

Description

`class Data(val id: String, val email: Optional)`

`email` field is marked as required, but if we not pass data to it, it works correctly, it is initialized with `Optional.empty`.

Please mark `Optional` as non required.

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.