We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
null
""
When I ran terraform-docs tfvars hcl ., optional strings with no default value were represented as "".
terraform-docs tfvars hcl .
I did a bit of reading on Type Constraints on Optional Object Type Attributes. Long story short is, a string type with no default value evaluates to tostring(null), not "".
string
tostring(null)
cd
examples/terraform/aws
terraform-docs version v0.17.0 0.17.0 darwin/amd64
The text was updated successfully, but these errors were encountered:
data.talos_machine_configuration
kubernetes_version
talos_version
No branches or pull requests
Describe the bug
When I ran
terraform-docs tfvars hcl .
, optional strings with no default value were represented as""
.I did a bit of reading on Type Constraints on Optional Object Type Attributes. Long story short is, a
string
type with no default value evaluates totostring(null)
, not""
.How can we reproduce it?
cd
into theexamples/terraform/aws
directory.terraform-docs tfvars hcl .
Environment information
The text was updated successfully, but these errors were encountered: