@@ -33,7 +33,7 @@ func int64Ptr(f int64) *int64 {
3333}
3434
3535var header = Header {
36- VendorExtensible : VendorExtensible {Extensions : map [string ]interface {} {
36+ VendorExtensible : VendorExtensible {Extensions : map [string ]any {
3737 "x-framework" : "swagger-go" ,
3838 }},
3939 HeaderProps : HeaderProps {Description : "the description of this header" },
@@ -57,7 +57,7 @@ var header = Header{
5757 MinItems : int64Ptr (5 ),
5858 UniqueItems : true ,
5959 MultipleOf : float64Ptr (5 ),
60- Enum : []interface {} {"hello" , "world" },
60+ Enum : []any {"hello" , "world" },
6161 },
6262}
6363
@@ -87,7 +87,7 @@ const headerJSON = `{
8787func TestIntegrationHeader (t * testing.T ) {
8888 var actual Header
8989 require .NoError (t , json .Unmarshal ([]byte (headerJSON ), & actual ))
90- assert .EqualValues (t , actual , header )
90+ assert .Equal (t , actual , header )
9191
9292 assertParsesJSON (t , headerJSON , header )
9393}
@@ -104,13 +104,13 @@ func TestJSONLookupHeader(t *testing.T) {
104104 require .True (t , ok )
105105 assert .Equal (t , "8" , def )
106106
107- var x * interface {}
107+ var x * any
108108 res , err = header .JSONLookup ("x-framework" )
109109 require .NoError (t , err )
110110 require .NotNil (t , res )
111111 require .IsType (t , x , res )
112112
113- x , ok = res .(* interface {} )
113+ x , ok = res .(* any )
114114 require .True (t , ok )
115115 assert .EqualValues (t , "swagger-go" , * x )
116116
@@ -144,7 +144,7 @@ func TestWithHeader(t *testing.T) {
144144 i := new (Items ).Typed ("string" , "date" )
145145 h = new (Header ).CollectionOf (i , "pipe" )
146146
147- assert .EqualValues (t , * i , * h .Items )
147+ assert .Equal (t , * i , * h .Items )
148148 assert .Equal (t , "pipe" , h .CollectionFormat )
149149
150150 h = new (Header ).WithDefault ([]string {"a" , "b" , "c" }).WithMaxLength (10 ).WithMinLength (3 )
@@ -162,7 +162,7 @@ func TestWithHeader(t *testing.T) {
162162 h = new (Header ).WithEnum ("a" , "b" , "c" )
163163 assert .Equal (t , Header {
164164 CommonValidations : CommonValidations {
165- Enum : []interface {} {
165+ Enum : []any {
166166 "a" ,
167167 "b" ,
168168 "c" ,
@@ -173,5 +173,5 @@ func TestWithHeader(t *testing.T) {
173173
174174func TestHeaderWithValidation (t * testing.T ) {
175175 h := new (Header ).WithValidations (CommonValidations {MaxLength : swag .Int64 (15 )})
176- assert .EqualValues (t , swag .Int64 (15 ), h .MaxLength )
176+ assert .Equal (t , swag .Int64 (15 ), h .MaxLength )
177177}
0 commit comments