FasterXML / FasterXML/jackson-dataformats-binary
Cannot find method to generate AVRO schema will nullable Map values
- Vorherrschende Sprache
- Java
- Sterne
- 347
- Forks
- 156
- Ø Merge
- 3 T. 3 Std.
- Gemergte PRs (30 T.)
- 22
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.