Skip to content

Commit 2ff6118

Browse files
committed
Fix import ordering for CI linter
1 parent ffdaa13 commit 2ff6118

File tree

6 files changed

+13
-8
lines changed

6 files changed

+13
-8
lines changed

openapi2conv/issue1016_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import (
55
"encoding/json"
66
"testing"
77

8-
"github.com/getkin/kin-openapi/openapi2"
98
"github.com/stretchr/testify/require"
9+
10+
"github.com/getkin/kin-openapi/openapi2"
1011
)
1112

1213
func TestIssue1016(t *testing.T) {

openapi2conv/issue1069_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ import (
44
"context"
55
"testing"
66

7-
"github.com/getkin/kin-openapi/openapi2"
8-
"github.com/getkin/kin-openapi/openapi3"
97
"github.com/oasdiff/yaml"
108
"github.com/stretchr/testify/assert"
119
"github.com/stretchr/testify/require"
10+
11+
"github.com/getkin/kin-openapi/openapi2"
12+
"github.com/getkin/kin-openapi/openapi3"
1213
)
1314

1415
func TestIssue1069V2ToV3(t *testing.T) {

openapi3/example_refs_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ package openapi3_test
33
import (
44
"testing"
55

6-
"github.com/getkin/kin-openapi/openapi3"
76
"github.com/stretchr/testify/require"
7+
8+
"github.com/getkin/kin-openapi/openapi3"
89
)
910

1011
func TestParameterExampleRef(t *testing.T) {

openapi3filter/issue743_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ import (
99
"strings"
1010
"testing"
1111

12+
"github.com/stretchr/testify/assert"
13+
"github.com/stretchr/testify/require"
14+
1215
"github.com/getkin/kin-openapi/openapi3"
1316
"github.com/getkin/kin-openapi/openapi3filter"
1417
"github.com/getkin/kin-openapi/routers/gorillamux"
15-
"github.com/stretchr/testify/assert"
16-
"github.com/stretchr/testify/require"
1718
)
1819

1920
func TestValidateRequestWithAnAuthenticatorFunc_CanConsumeTheRequestBody(t *testing.T) {

openapi3filter/issue949_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ import (
1212
"strings"
1313
"testing"
1414

15+
"github.com/stretchr/testify/require"
16+
1517
"github.com/getkin/kin-openapi/openapi3"
1618
"github.com/getkin/kin-openapi/openapi3filter"
1719
"github.com/getkin/kin-openapi/routers/gorillamux"
18-
"github.com/stretchr/testify/require"
1920
)
2021

2122
const testSchema = `

openapi3gen/openapi3gen_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import (
44
"encoding/json"
55
"errors"
66
"fmt"
7-
"github.com/stretchr/testify/assert"
87
"reflect"
98
"strconv"
109
"strings"
1110
"testing"
1211
"time"
1312

13+
"github.com/stretchr/testify/assert"
1414
"github.com/stretchr/testify/require"
1515

1616
"github.com/getkin/kin-openapi/openapi3"

0 commit comments

Comments
 (0)