Skip to content

Commit

Permalink
Add 0.15 terraform language attribute (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko authored Mar 16, 2021
1 parent 687fcfe commit 71b7a2a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/schema/0.15/terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,13 @@ func patchTerraformBlockSchema(bs *schema.BlockSchema, v *version.Version) *sche
Description: lang.Markdown("Provider source, version constraint and its aliases"),
},
}
bs.Body.Attributes["language"] = &schema.AttributeSchema{
IsOptional: true,
Expr: schema.ExprConstraints{
schema.KeywordExpr{
Keyword: "TF2021",
},
},
}
return bs
}

0 comments on commit 71b7a2a

Please sign in to comment.