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

decoder: validateBody should support AnyAttribute #289

Closed
2 tasks
dbanck opened this issue Jul 31, 2023 · 0 comments · Fixed by #296
Closed
2 tasks

decoder: validateBody should support AnyAttribute #289

dbanck opened this issue Jul 31, 2023 · 0 comments · Fixed by #296
Assignees
Labels
enhancement New feature or request

Comments

@dbanck
Copy link
Member

dbanck commented Jul 31, 2023

Requires #287

Problem Statement

Some blocks don't have a static attribute schema, where we can compare each attribute in the configuration to an attribute in the schema. Blocks with an AnyAttribute schema allow any key as an attribute, while only the value has to follow specific rules.

Proposal

  • Update validateBody to validate blocks with AnyAttribute correctly
    • Might be just skipping validation for those
  • Blocks in the core schema:
    • locals
    • required_providers within terraform
  • Add test cases with AnyAttribue

Part of hashicorp/vscode-terraform#720

@dbanck dbanck added the enhancement New feature or request label Jul 31, 2023
@dbanck dbanck changed the title decoder: validateFilePerSchema support AnyAttribute decoder: validateBody should support AnyAttribute Aug 2, 2023
@radeksimko radeksimko self-assigned this Aug 8, 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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants