File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import (
25
25
26
26
func init () {
27
27
val .GetValidator ().RegisterStructValidation (retryStructLevelValidation , Retry {})
28
+ val .GetValidator ().RegisterStructValidation (floatstr .ValidateFloat32OrString , Retry {})
28
29
}
29
30
30
31
// RetryStructLevelValidation custom validator for Retry Struct
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ package model
17
17
import (
18
18
"context"
19
19
20
- "github.com/serverlessworkflow/sdk-go/v2/util/floatstr"
21
-
22
20
validator "github.com/go-playground/validator/v10"
23
21
24
22
val "github.com/serverlessworkflow/sdk-go/v2/validator"
@@ -158,8 +156,6 @@ func init() {
158
156
val .GetValidator ().RegisterStructValidationCtx (ValidationWrap (onErrorStructLevelValidationCtx ), OnError {})
159
157
val .GetValidator ().RegisterStructValidationCtx (ValidationWrap (transitionStructLevelValidationCtx ), Transition {})
160
158
val .GetValidator ().RegisterStructValidationCtx (ValidationWrap (startStructLevelValidationCtx ), Start {})
161
-
162
- val .GetValidator ().RegisterStructValidation (floatstr .ValidateFloat32OrString , Retry {})
163
159
}
164
160
165
161
func startStructLevelValidationCtx (ctx ValidatorContext , structLevel validator.StructLevel ) {
You can’t perform that action at this time.
0 commit comments