diff --git a/wrpvalidator/spec_validator.go b/wrpvalidator/spec_validator.go index f00c5a5..926e10c 100644 --- a/wrpvalidator/spec_validator.go +++ b/wrpvalidator/spec_validator.go @@ -46,11 +46,7 @@ var locatorPattern = regexp.MustCompile( // SpecValidators ensures messages are valid based on // each spec validator in the list. Only validates the opinionated portions of the spec. // SpecValidators validates the following fields: UTF8 (all string fields), MessageType, Source, Destination -func SpecValidators() Validators { - return Validators{}.AddFunc(UTF8Validator, MessageTypeValidator, SourceValidator, DestinationValidator) -} - -func SpecValidatorsWithMetrics(f *touchstone.Factory, labelNames ...string) (Validators, error) { +func SpecValidators(f *touchstone.Factory, labelNames ...string) (Validators, error) { var errs error utf8, err := NewUTF8Validator(f, labelNames...) if err != nil {