terraform/builtin/providers/azurerm/validators.go

11 lines
257 B
Go

package azurerm
import "fmt"
func validateJsonString(v interface{}, k string) (ws []string, errors []error) {
if _, err := normalizeJsonString(v); err != nil {
errors = append(errors, fmt.Errorf("%q contains an invalid JSON: %s", k, err))
}
return
}