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

Avro Scheme "default" and "doc" are missing #20

Open
ahilis opened this issue Jun 9, 2018 · 0 comments
Open

Avro Scheme "default" and "doc" are missing #20

ahilis opened this issue Jun 9, 2018 · 0 comments

Comments

@ahilis
Copy link

ahilis commented Jun 9, 2018

I've spent a lot of time trying to figure out how to add "default" or "doc" properties for any field from C# class into scheme. I do it like that:

AvroSerializer.Create<Class>().WriterSchema.ToString()

I found that it's impossible. And that's why:
ReflectionSchemaBuilder always pass null inside the RecordField instead of default value (line 466)
Doc property is always sets to empty string inside MemberSerializationInfo constructor
Is there any chance that it will be fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant