hashicorp / terraform-config-inspect

A helper library for shallow inspection of Terraform configurations
Mozilla Public License 2.0
371 stars 76 forks source link

Parse variable validation #74

Closed kylecarbs closed 1 year ago

kylecarbs commented 2 years ago

Closes https://github.com/hashicorp/terraform-config-inspect/issues/73.

Adds variable validation parsing.

Currently omits the condition property from JSON output, but happy to accept suggestions!

The comments on VariableValidation are taken from: https://github.com/hashicorp/terraform/blob/b91d9435ea9d4e8f1708a7092cd7d20d26f15e03/internal/configs/named_values.go#L311-L330

hashicorp-cla commented 2 years ago

CLA assistant check
All committers have signed the CLA.

kylecarbs commented 1 year ago

@radditude any shot you could help get this merged?

crw commented 1 year ago

Hi @kylecarbs, thanks for your submission! The team looked at this today and per the guidelines stated in the README, we cannot accept this contribution. See specifically:

This library and tool are intentionally focused on only extracting simple top-level metadata about a single Terraform module. This is to reduce the maintenance burden of keeping this codebase synchronized with changes to Terraform itself: the features extracted by this package are unlikely to change significantly in future versions. For that reason, we cannot accept external PRs for this codebase that add support for additional Terraform language features.

I am sorry about that, and we do appreciate your contribution. Thanks again!