-
Notifications
You must be signed in to change notification settings - Fork 29
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
Suggestion: Include schema in generated object #23
Comments
It could be useful to add it indeed. That could be gated by a flag (like your derive-builders param). I think someone made a prototype of it in the past but it didn't get contributed back here. |
I think that prototype could provide a good grounds for a solution. I especially like the use of lazy static. |
Apache Avro team recently added in apache/avro#1631 a derive macro that allows you to retrieve the
As I could see, you're already migrating to the apache version in #26, we could also derive |
For this, you absolutely could call the derive macro, but you don't need to! You could generate an implementation for the |
Fixed in |
Would it be possible to include the schema in the generated struct? This could then be used to e.g. validate the struct against the schema or write the struct to avro file.
The text was updated successfully, but these errors were encountered: