// We don't allow variables/functions in the description because
// we want to be able to display it in a UI that might be prompting
// for data that would be needed to evaluate expressions, so we'll
// just evaluate this right now and HCL will generate "variables cannot
// be used here" errors in case a user tries.
val,hclDiags:=attr.Expr.Value(nil)
diags=diags.Append(hclDiags)
if!diags.HasErrors(){
ifval.Type().Equals(cty.String)&&!val.IsNull(){
cv.Description=val.AsString()
}else{
diags=diags.Append(&hcl.Diagnostic{
Severity:hcl.DiagError,
Summary:"Invalid description for context value",
Detail:"The description of a context value must be a string and should contain a natural language description of the meaning of this context value using full sentences.",