Hello, we are creating a new terraform provider. After updating SDK to v2.0.0-rc2 we got a deprecation warning in ValidateFunc (ValidateDiagFunc should be used), but methods in validation package (github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation) return schema.SchemaValidateFunc. Did we miss something?
Nope, you got everything, this is just a weird situation we were working around with the release. We’ll get ValidateDiagFunc versions of those helpers created, in the meantime you can probably do a wrapper like
Obviously that’s pretty gnarly (and was written in the text box of a forums post without being tested, so take it with a grain of salt) but hopefully it gets the idea across. We’ll work on getting a better option into the SDK properly. I see you opened an issue for it here, which I appreciate, and we’ll definitely update that as we get this supported.