FasterXML / FasterXML/jackson-dataformats-binary
Cannot find method to generate AVRO schema will nullable Map values
- Ngôn ngữ chính
- Java
- Star
- 347
- Fork
- 156
- Merge trung bình
- 3 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 22
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.