internal/provider/utils/validator.go (6 lines of code) (raw):

package utils import ( "regexp" "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" ) // HttpUrlValidator validates that URL starts with http or https schema var HttpUrlValidator = stringvalidator.RegexMatches(regexp.MustCompile(`^https?://`), "value should be an URL with http or https schema")