File tree Expand file tree Collapse file tree 6 files changed +21
-7
lines changed Expand file tree Collapse file tree 6 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import (
18
18
"errors"
19
19
"testing"
20
20
21
- "github.com/go-playground/validator/v10"
21
+ validator "github.com/go-playground/validator/v10"
22
22
"github.com/serverlessworkflow/sdk-go/v3/model"
23
23
"github.com/serverlessworkflow/sdk-go/v3/test"
24
24
@@ -137,7 +137,7 @@ func TestBuilder_Validate(t *testing.T) {
137
137
Version : "1.0.0" ,
138
138
},
139
139
Do : & model.TaskList {
140
- {
140
+ & model. TaskItem {
141
141
Key : "task1" ,
142
142
Task : & model.CallHTTP {
143
143
Call : "http" ,
@@ -155,7 +155,7 @@ func TestBuilder_Validate(t *testing.T) {
155
155
156
156
// Test validation failure
157
157
workflow .Do = & model.TaskList {
158
- {
158
+ & model. TaskItem {
159
159
Key : "task2" ,
160
160
Task : & model.CallHTTP {
161
161
Call : "http" ,
Original file line number Diff line number Diff line change
1
+ # Copyright 2025 The Serverless Workflow Specification Authors
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
1
15
document :
2
16
dsl : ' 1.0.0'
3
17
namespace : default
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import (
19
19
"errors"
20
20
"testing"
21
21
22
- "github.com/go-playground/validator/v10"
22
+ validator "github.com/go-playground/validator/v10"
23
23
"github.com/stretchr/testify/assert"
24
24
)
25
25
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import (
19
19
"errors"
20
20
"testing"
21
21
22
- "github.com/go-playground/validator/v10"
22
+ validator "github.com/go-playground/validator/v10"
23
23
"github.com/stretchr/testify/assert"
24
24
)
25
25
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import (
20
20
"regexp"
21
21
"strings"
22
22
23
- "github.com/go-playground/validator/v10"
23
+ validator "github.com/go-playground/validator/v10"
24
24
)
25
25
26
26
var (
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import (
19
19
"errors"
20
20
"testing"
21
21
22
- "github.com/go-playground/validator/v10"
22
+ validator "github.com/go-playground/validator/v10"
23
23
24
24
"github.com/stretchr/testify/assert"
25
25
)
You can’t perform that action at this time.
0 commit comments