Error serializing nullable boolean
Closed this issue · 1 comments
francosang commented
Hey!
I have a schema that looks like this:
{
"type": "record",
"name": "Name",
"fields": [
{ "name": "stacked", "type": ["null", "boolean"], "default": null },
{ more fields },
{ more fields },
]
}
When I try to produce a message containing a boolean value in the stacked
property, I get this error:
cannot decode textual union: expected: '{'; actual: 'f' for key: "stacked"
But it works correctly without the property.
mostafa commented