decoder: validateBody
should ignore missing provider schemas
#291
Labels
enhancement
New feature or request
validateBody
should ignore missing provider schemas
#291
Requires #287
Problem Statement
We currently compare all blocks and attributes against the available schema. We don't distinguish between a missing schema or a block that doesn't accept any attributes. Since we only bundle the ~250 official and partner providers with terraform-ls, it is likely that we will encounter providers for which we don't have a schema yet.
Instead of raising diagnostics for unknown attributes / blocks we should not raise any.
Proposal
validateBody
to skip resources/blocks when validating a file if we don't have a schemamergeBlockBodySchemas
to indicate if merging was successfullPart of hashicorp/vscode-terraform#720
The text was updated successfully, but these errors were encountered: