Skip to content

Commit c2c84ac

Browse files
committed
Solve lint issues
Signed-off-by: Ricardo Zanini <[email protected]>
1 parent 86c62a9 commit c2c84ac

File tree

6 files changed

+21
-7
lines changed

6 files changed

+21
-7
lines changed

builder/builder_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"errors"
1919
"testing"
2020

21-
"github.com/go-playground/validator/v10"
21+
validator "github.com/go-playground/validator/v10"
2222
"github.com/serverlessworkflow/sdk-go/v3/model"
2323
"github.com/serverlessworkflow/sdk-go/v3/test"
2424

@@ -137,7 +137,7 @@ func TestBuilder_Validate(t *testing.T) {
137137
Version: "1.0.0",
138138
},
139139
Do: &model.TaskList{
140-
{
140+
&model.TaskItem{
141141
Key: "task1",
142142
Task: &model.CallHTTP{
143143
Call: "http",
@@ -155,7 +155,7 @@ func TestBuilder_Validate(t *testing.T) {
155155

156156
// Test validation failure
157157
workflow.Do = &model.TaskList{
158-
{
158+
&model.TaskItem{
159159
Key: "task2",
160160
Task: &model.CallHTTP{
161161
Call: "http",

impl/testdata/for_colors.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
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+
115
document:
216
dsl: '1.0.0'
317
namespace: default

model/extension_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"errors"
2020
"testing"
2121

22-
"github.com/go-playground/validator/v10"
22+
validator "github.com/go-playground/validator/v10"
2323
"github.com/stretchr/testify/assert"
2424
)
2525

model/task_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"errors"
2020
"testing"
2121

22-
"github.com/go-playground/validator/v10"
22+
validator "github.com/go-playground/validator/v10"
2323
"github.com/stretchr/testify/assert"
2424
)
2525

model/validator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"regexp"
2121
"strings"
2222

23-
"github.com/go-playground/validator/v10"
23+
validator "github.com/go-playground/validator/v10"
2424
)
2525

2626
var (

model/workflow_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"errors"
2020
"testing"
2121

22-
"github.com/go-playground/validator/v10"
22+
validator "github.com/go-playground/validator/v10"
2323

2424
"github.com/stretchr/testify/assert"
2525
)

0 commit comments

Comments
 (0)