FasterXML / FasterXML/jackson-dataformats-binary
[Avro] JsonInclude.Include.NON_NULL does not use default values
Ouverte
avro
- Langage dominant
- Java
- Étoiles
- 347
- Forks
- 156
- Merge moyen
- 3 j 3 h
- PR mergées (30 j)
- 22
Description
In the following example, I'd expect that the default value defined for the property `map` would be used. Instead, `null` is passed, which produces an error as null is not allowed for this field.
Schema
```json
{"type": "map", "values": "string", "default": []}
```
POJO
```java
class Foo {
@JsonProperty("map")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
Map getMap();
}
```
Error
```
com.fasterxml.jackson.databind.JsonMappingException: null of map in field map of Foo
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.