-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change type notation to HCL2 type annotation
Fixes #9 Terraform v0.12 introduced a new `SchemaConfigModeAttr` feature. Most attributes have simple types, but if `SchemaConfigModeAttr` is set for an attribute, it is syntactically NestedBlock but semantically interpreted as an Attribute. In this case, Attribute has a complex data type. It is reasonable to use the same notation as the type annotation in HCL2 to represent the correct data type. However, it seems that HCL2 has a type annotation parser but no writer, so we implement it by ourselves. See also: - #9 - hashicorp/terraform-provider-aws#8187 - hashicorp/terraform#20626 - https://www.terraform.io/docs/configuration/types.html This is a breaking change caused by the upstream, so I think it is impossible to maintain tfschema backward compatibility. I tried to be as consistent as possible.
- Loading branch information
1 parent
d0222d5
commit 7c6105b
Showing
1 changed file
with
95 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters