Skip to content

Commit

Permalink
Update spec_validator.go
Browse files Browse the repository at this point in the history
  • Loading branch information
denopink authored Jan 16, 2024
1 parent b9b97e4 commit 27fe932
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions wrpvalidator/spec_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 27fe932

Please sign in to comment.