File tree Expand file tree Collapse file tree 6 files changed +13
-8
lines changed
Expand file tree Collapse file tree 6 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 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
1213func TestIssue1016 (t * testing.T ) {
Original file line number Diff line number Diff 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
1415func TestIssue1069V2ToV3 (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ package openapi3_test
33import (
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
1011func TestParameterExampleRef (t * testing.T ) {
Original file line number Diff line number Diff 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
1920func TestValidateRequestWithAnAuthenticatorFunc_CanConsumeTheRequestBody (t * testing.T ) {
Original file line number Diff line number Diff 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
2122const testSchema = `
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments