hashicorp / terraform-plugin-codegen-openapi

OpenAPI to Terraform Provider Code Generation Specification
Mozilla Public License 2.0
53 stars 12 forks source link

HCL for Generator Config #149

Open genelet opened 7 months ago

genelet commented 7 months ago

This Pull Request (PR) introduces the HCL data format to the Generator Config file. While YAML is currently the only format supported by the Generator Config, HCL is the native format for Terraform and may be preferred by some users.

To utilize this new feature, simply pass the string "hcl" or "tf" as the second argument to the config.ParseConfig function.

The HCL parser leverages the package "github.com/genelet/determined/dethcl", an enhanced version of the original "github.com/hashicorp/hcl/v2/gohcl".

hashicorp-cla commented 7 months ago

CLA assistant check
All committers have signed the CLA.