Skip to content

Fix generation of initialisation values for fields of type enum#127

Open
Konfuzzyus wants to merge 1 commit intothake:masterfrom
Konfuzzyus:fix-initializer-for-enum-defaults
Open

Fix generation of initialisation values for fields of type enum#127
Konfuzzyus wants to merge 1 commit intothake:masterfrom
Konfuzzyus:fix-initializer-for-enum-defaults

Conversation

@Konfuzzyus
Copy link
Copy Markdown

I noticed that the compiler would generate string literals when building fields of type enum (instead of using the actual enum value).

This PR adds a test case to default_values.avsc and adds the necessary code to generate valid (default) initialization values for enum fields.

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

Successfully merging this pull request may close these issues.

1 participant