Skip to content
New issue

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

Update hasError for child attributes requirement #201

Open
k-y0u opened this issue Jul 31, 2023 · 0 comments
Open

Update hasError for child attributes requirement #201

k-y0u opened this issue Jul 31, 2023 · 0 comments
Labels
enhancement New feature or request Technical task Technical task

Comments

@k-y0u
Copy link
Member

k-y0u commented Jul 31, 2023

Description

Update hasError method to avoid child attributes requirement when parent attribute is optional.

Example

https://registry.terraform.io/providers/hashicorp/aws/latest/docs#assume_role

aws.assume_role (optional)
aws.assume_role.role_arn (required)

if aws.assume_role is not specified, hasError should return false even if aws.assume_role.role_arn is required but empty.

@k-y0u k-y0u added enhancement New feature or request Technical task Technical task labels Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Technical task Technical task
Projects
Status: No status
Development

No branches or pull requests

1 participant