-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Internal Parser Exception
when serializing empty schema/ model with avro-json
#464
Comments
Yes. The problem is that print(BaseMessage.avro_schema())
# {"type": "record", "name": "BaseMessage", "fields": []} Then is it nos possible to serialize an empty payload with a |
Hi @marcosschroh, we weren't sure if this was the expected behaviour as it's inconsistent between serialisation types, i.e. it's an error when serialising with the |
Hi, Even though it does not have too mush sense to have an |
Hi @marcosschroh, does it make sense to raise this issue over at fastavro? It could be patched here but that would involve checking for nested schemas with no fields on serialization. Another example that produces the same internal parser error:
|
I think we should create an issue in fastavro and in the meantime we can patch it here |
Does someone of you want to create the issue in |
It's on my to-do 😅 If you want to do it go for it 😄 |
Describe the bug
Serializing empty schema/model using
avro-json
results in a fastavroInternal Parser Exception
To Reproduce
Expected behavior
The should serialize without error
Actual behavior
avro
serialization:avro-json
serialization:The text was updated successfully, but these errors were encountered: