FasterXML / FasterXML/jackson-dataformats-binary
Cannot find method to generate AVRO schema will nullable Map values
- Langage dominant
- Java
- Étoiles
- 347
- Forks
- 156
- Merge moyen
- 3 j 3 h
- PR mergées (30 j)
- 22
Description
This class when Avro'd
```
public final class Foo {
private Map strings;
public Map getStrings() {
return strings;
}
public void setStrings( Map strings ) {
this.strings = strings;
}
```
Results in this schema:
```
{
"type" : "record",
"name" : "Foo",
"namespace" : "my.package",
"doc" : "Schema for my.package",
"fields" : [ {
"name" : "strings",
"type" : [ "null", {
"type" : "map",
"values" : "string"
} ]
}
```
Where as I want this schema:
```
{
"type" : "record",
"name" : "Foo",
"namespace" : "my.package",
"doc" : "Schema for my.package",
"fields" : [ {
"name" : "strings",
"type" : [ "null", {
"type" : "map",
"values" : [ "null", "string" ]
} ]
}
```
I can't see a way to do this currently.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.