Skip to content

Commit

Permalink
add document link in the error message (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-henglu authored Oct 23, 2024
1 parent 32f9362 commit 573b662
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (_ dynamicIsNotStringValidator) ValidateDynamic(ctx context.Context, req va
}

if _, ok := raw.UnderlyingValue().(types.String); ok {
resp.Diagnostics.AddAttributeError(req.Path, "Invalid Type", "The value must not be a string")
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")
}
}

Expand Down

0 comments on commit 573b662

Please sign in to comment.