crossplane-contrib/terraform-provider-gen

Translate snake case fields to camel case

Opened this issue · 1 comments

negz commented

Terraform convention is to use snake case field names, while Kubernetes (and Crossplane) is to use camel case. It seems like we may need to convert the JSON struct tags of our generated types (and be able to map them back to the original snake case field names). There are modules that can help with this, e.g. https://github.com/iancoleman/strcase.

If we were to put our Terraform providers through a conformance suite, they wouldn't pass because of this camel case issue.