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

Fix TFSchema generation where a OneOf has a lower-case name #47

Merged
merged 5 commits into from
Jan 9, 2025

Conversation

strideynet
Copy link
Contributor

@strideynet strideynet commented Dec 30, 2024

When generating tfschema for RFD153 compliant resources with a oneof, the protoc-gen-terraform does not properly generate the exported field name based on the lower-snake name of the oneof:

image

This PR attempts to correct this. I've also modified the test suite to fail more usefully.

@strideynet strideynet marked this pull request as ready for review December 30, 2024 18:32
@strideynet strideynet changed the title Strideynet/fix lowercase oneof generation Fix TFSchema generation where a OneOf has a lower-case name Dec 30, 2024
@hugoShaka hugoShaka merged commit 154e6b5 into main Jan 9, 2025
2 checks passed
@hugoShaka hugoShaka mentioned this pull request Jan 9, 2025
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.

3 participants