Skip to content

Commit 573b662

Browse files
authored
add document link in the error message (#647)
1 parent 32f9362 commit 573b662

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/services/myvalidator/dynamic_is_not_string_validator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func (_ dynamicIsNotStringValidator) ValidateDynamic(ctx context.Context, req va
2525
}
2626

2727
if _, ok := raw.UnderlyingValue().(types.String); ok {
28-
resp.Diagnostics.AddAttributeError(req.Path, "Invalid Type", "The value must not be a string")
28+
resp.Diagnostics.AddAttributeError(req.Path, "Invalid Type", "The value must not be a string. From 2.0, the value only accepts an HCL object. Please refer to the documentation for more information: https://registry.terraform.io/providers/Azure/azapi/latest/docs/guides/2.0-upgrade-guide#dynamic-properties-support")
2929
}
3030
}
3131

0 commit comments

Comments
 (0)