Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error serializing nullable boolean #302

Closed
francosang opened this issue Aug 7, 2024 · 1 comment
Closed

Error serializing nullable boolean #302

francosang opened this issue Aug 7, 2024 · 1 comment
Labels
❓ Question Further information is requested

Comments

@francosang
Copy link

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
Copy link
Owner

mostafa commented Aug 7, 2024

#220 (comment)

@mostafa mostafa added the ❓ Question Further information is requested label Aug 7, 2024
@mostafa mostafa closed this as completed Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants