v16.0.0
This commit is contained in:
@@ -10,8 +10,8 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/go-playground/validator/v10"
|
||||
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v15/interfaces"
|
||||
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v15/internal/multierror"
|
||||
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v16/interfaces"
|
||||
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v16/internal/multierror"
|
||||
)
|
||||
|
||||
// protoValidator is used to validate Proto fields.
|
||||
@@ -488,3 +488,9 @@ func sepDescriptionValidator(fe validator.FieldLevel) bool {
|
||||
ok, _ := regexp.MatchString(`^[a-zA-Zа-яА-ЯёЁ0-9_.\[\]()\-]*$`, fe.Field().String())
|
||||
return ok
|
||||
}
|
||||
|
||||
func watchdogActionValidator(fe validator.FieldLevel) bool {
|
||||
fieldValue := fe.Field().String()
|
||||
|
||||
return IsInSlice(fieldValue, watchdogActionVaues)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user