This commit is contained in:
2026-08-21 18:12:55 +04:00
parent f34fa6055c
commit 3c5157281e
1285 changed files with 4016 additions and 3302 deletions

View File

@@ -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)
}