Hi π
It seems that the current terraform-docs
integration cannot handle the new optional object attribute syntax with default values
For example, this is fine:
variable "example" {
type = object({
example = optional(string)
})
}
But this breaks documentation generation:
variable "example" {
type = object({
example = optional(string, "")
})
}
Problem
If a module contains any variable using the optional(TYPE, DEFAULT) form, no documentation is generated at all. This includes unrelated variables β the entire module's documentation output is empty.