internal/services/myvalidator/string_is_not_empty.go (8 lines of code) (raw):
package myvalidator
import (
"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
)
func StringIsNotEmpty() validator.String {
return stringvalidator.LengthAtLeast(1)
}