feature: allow manager to preapre query context (#19455)

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
Jian Qiu
2024-02-06 00:01:26 +08:00
committed by GitHub
co-authored by Qiu Jian
parent 1bd5f73365
commit eef9e48e02
270 changed files with 1463 additions and 1323 deletions
@@ -15,6 +15,8 @@
package validators
import (
"context"
"yunion.io/x/jsonutils"
)
@@ -61,7 +63,7 @@ func (v *ValidatorStringLen) getValue() interface{} {
return v.Value
}
func (v *ValidatorStringLen) Validate(data *jsonutils.JSONDict) error {
func (v *ValidatorStringLen) Validate(ctx context.Context, data *jsonutils.JSONDict) error {
if err, isSet := v.Validator.validateEx(data); err != nil || !isSet {
return err
}