@@ -745,7 +745,7 @@ func (s *APIModeServiceTests) testAPIModeSuccess(t *testing.T) {
745745
746746 handler := handlersAPI .Handlers (s .lock , & cfg , s .shutdown , s .logger , s .dbSpec , nil , nil )
747747
748- p , err := json .Marshal (map [string ]interface {} {
748+ p , err := json .Marshal (map [string ]any {
749749 "firstname" : "test" ,
750750 "lastname" : "test" ,
751751 "job" : "test" ,
@@ -777,7 +777,7 @@ func (s *APIModeServiceTests) testAPIModeSuccess(t *testing.T) {
777777 checkResponseOkStatusCode (t , & reqCtx , DefaultSchemaID )
778778
779779 // Repeat request with invalid email
780- reqInvalidEmail , err := json .Marshal (map [string ]interface {} {
780+ reqInvalidEmail , err := json .Marshal (map [string ]any {
781781 "firstname" : "test" ,
782782 "lastname" : "test" ,
783783 "job" : "test" ,
@@ -808,7 +808,7 @@ func (s *APIModeServiceTests) testAPIModeMissedMultipleReqParams(t *testing.T) {
808808
809809 handler := handlersAPI .Handlers (s .lock , & cfg , s .shutdown , s .logger , s .dbSpec , nil , nil )
810810
811- p , err := json .Marshal (map [string ]interface {} {
811+ p , err := json .Marshal (map [string ]any {
812812 "firstname" : "test" ,
813813 "lastname" : "test" ,
814814 "job" : "test" ,
@@ -840,7 +840,7 @@ func (s *APIModeServiceTests) testAPIModeMissedMultipleReqParams(t *testing.T) {
840840 checkResponseOkStatusCode (t , & reqCtx , DefaultSchemaID )
841841
842842 // Repeat request with invalid email
843- reqInvalidEmail , err := json .Marshal (map [string ]interface {} {
843+ reqInvalidEmail , err := json .Marshal (map [string ]any {
844844845845 })
846846
@@ -850,7 +850,7 @@ func (s *APIModeServiceTests) testAPIModeMissedMultipleReqParams(t *testing.T) {
850850
851851 req .SetBodyStream (bytes .NewReader (reqInvalidEmail ), - 1 )
852852
853- missedParams := map [string ]interface {} {
853+ missedParams := map [string ]any {
854854 "firstname" : struct {}{},
855855 "lastname" : struct {}{},
856856 }
@@ -1008,7 +1008,7 @@ func (s *APIModeServiceTests) testAPIModeOneSchemeMultipleIDs(t *testing.T) {
10081008 handler := handlersAPI .Handlers (s .lock , & cfg , s .shutdown , s .logger , s .dbSpec , nil , nil )
10091009
10101010 // one schema
1011- p , err := json .Marshal (map [string ]interface {} {
1011+ p , err := json .Marshal (map [string ]any {
10121012 "firstname" : "test" ,
10131013 "lastname" : "test" ,
10141014 "job" : "test" ,
@@ -1092,7 +1092,7 @@ func (s *APIModeServiceTests) testAPIModeTwoDifferentSchemesMultipleIDs(t *testi
10921092 handler := handlersAPI .Handlers (s .lock , & cfg , s .shutdown , s .logger , s .dbSpec , nil , nil )
10931093
10941094 // one schema
1095- p , err := json .Marshal (map [string ]interface {} {
1095+ p , err := json .Marshal (map [string ]any {
10961096 "firstname" : "test" ,
10971097 "lastname" : "test" ,
10981098 "job" : "test" ,
@@ -1122,7 +1122,7 @@ func (s *APIModeServiceTests) testAPIModeTwoDifferentSchemesMultipleIDs(t *testi
11221122
11231123 req .Header .Set (web .XWallarmSchemaIDHeader , fmt .Sprintf ("%d" , SecondSchemaID ))
11241124
1125- p , err = json .Marshal (map [string ]interface {} {
1125+ p , err = json .Marshal (map [string ]any {
1126112611271127 })
11281128
@@ -1198,7 +1198,7 @@ func (s *APIModeServiceTests) testAPIModeTwoSchemesMultipleIDs(t *testing.T) {
11981198
11991199 handler := handlersAPI .Handlers (s .lock , & cfg , s .shutdown , s .logger , s .dbSpec , nil , nil )
12001200
1201- p , err := json .Marshal (map [string ]interface {} {
1201+ p , err := json .Marshal (map [string ]any {
12021202 "firstname" : "test" ,
12031203 "lastname" : "test" ,
12041204 "job" : "test" ,
@@ -1247,7 +1247,7 @@ func (s *APIModeServiceTests) testAPIModeTwoSchemesMultipleIDs(t *testing.T) {
12471247 }
12481248
12491249 // Repeat request with invalid email
1250- reqInvalidEmail , err := json .Marshal (map [string ]interface {} {
1250+ reqInvalidEmail , err := json .Marshal (map [string ]any {
12511251 "firstname" : "test" ,
12521252 "lastname" : "test" ,
12531253 "job" : "test" ,
@@ -1330,7 +1330,7 @@ func (s *APIModeServiceTests) testAPIModeInvalidCTParseError(t *testing.T) {
13301330
13311331 handler := handlersAPI .Handlers (s .lock , & cfg , s .shutdown , s .logger , s .dbSpec , nil , nil )
13321332
1333- p , err := json .Marshal (map [string ]interface {} {
1333+ p , err := json .Marshal (map [string ]any {
13341334 "firstname" : "test" ,
13351335 "lastname" : "test" ,
13361336 "job" : "test" ,
@@ -1366,7 +1366,7 @@ func (s *APIModeServiceTests) testAPIModeCTNotInSpec(t *testing.T) {
13661366
13671367 handler := handlersAPI .Handlers (s .lock , & cfg , s .shutdown , s .logger , s .dbSpec , nil , nil )
13681368
1369- p , err := json .Marshal (map [string ]interface {} {
1369+ p , err := json .Marshal (map [string ]any {
13701370 "firstname" : "test" ,
13711371 "lastname" : "test" ,
13721372 "job" : "test" ,
@@ -1426,7 +1426,7 @@ func (s *APIModeServiceTests) testAPIModeNoXWallarmSchemaIDHeader(t *testing.T)
14261426
14271427 handler := handlersAPI .Handlers (s .lock , & cfg , s .shutdown , s .logger , s .dbSpec , nil , nil )
14281428
1429- p , err := json .Marshal (map [string ]interface {} {
1429+ p , err := json .Marshal (map [string ]any {
14301430 "firstname" : "test" ,
14311431 "lastname" : "test" ,
14321432 "job" : "test" ,
@@ -1528,7 +1528,7 @@ func (s *APIModeServiceTests) testAPIModeMethodAndPathNotFound(t *testing.T) {
15281528
15291529 handler := handlersAPI .Handlers (s .lock , & cfg , s .shutdown , s .logger , s .dbSpec , nil , nil )
15301530
1531- p , err := json .Marshal (map [string ]interface {} {
1531+ p , err := json .Marshal (map [string ]any {
15321532 "firstname" : "test" ,
15331533 "lastname" : "test" ,
15341534 "job" : "test" ,
@@ -1731,7 +1731,7 @@ func (s *APIModeServiceTests) testAPIModeRequiredBodyMissed(t *testing.T) {
17311731
17321732 handler := handlersAPI .Handlers (s .lock , & cfg , s .shutdown , s .logger , s .dbSpec , nil , nil )
17331733
1734- p , err := json .Marshal (map [string ]interface {} {
1734+ p , err := json .Marshal (map [string ]any {
17351735 "status" : uuid .New ().String (),
17361736 "testInt" : 50 ,
17371737 "error" : "test" ,
@@ -1782,7 +1782,7 @@ func (s *APIModeServiceTests) testAPIModeRequiredBodyParameterMissed(t *testing.
17821782
17831783 handler := handlersAPI .Handlers (s .lock , & cfg , s .shutdown , s .logger , s .dbSpec , nil , nil )
17841784
1785- p , err := json .Marshal (map [string ]interface {} {
1785+ p , err := json .Marshal (map [string ]any {
17861786 "status" : uuid .New ().String (),
17871787 "testInt" : 50 ,
17881788 "error" : "test" ,
@@ -1812,7 +1812,7 @@ func (s *APIModeServiceTests) testAPIModeRequiredBodyParameterMissed(t *testing.
18121812 checkResponseOkStatusCode (t , & reqCtx , DefaultSchemaID )
18131813
18141814 // body without required parameter
1815- p , err = json .Marshal (map [string ]interface {} {
1815+ p , err = json .Marshal (map [string ]any {
18161816 "error" : "test" ,
18171817 })
18181818
@@ -2003,7 +2003,7 @@ func (s *APIModeServiceTests) testAPIModeRequiredBodyParameterInvalidValue(t *te
20032003
20042004 handler := handlersAPI .Handlers (s .lock , & cfg , s .shutdown , s .logger , s .dbSpec , nil , nil )
20052005
2006- p , err := json .Marshal (map [string ]interface {} {
2006+ p , err := json .Marshal (map [string ]any {
20072007 "status" : uuid .New ().String (),
20082008 "testInt" : 50 ,
20092009 "error" : "test" ,
@@ -2033,7 +2033,7 @@ func (s *APIModeServiceTests) testAPIModeRequiredBodyParameterInvalidValue(t *te
20332033 checkResponseOkStatusCode (t , & reqCtx , DefaultSchemaID )
20342034
20352035 // body without required parameter
2036- p , err = json .Marshal (map [string ]interface {} {
2036+ p , err = json .Marshal (map [string ]any {
20372037 "status" : "invalid_test_value" ,
20382038 "testInt" : 50 ,
20392039 "error" : "test" ,
@@ -2063,7 +2063,7 @@ func (s *APIModeServiceTests) testAPIModeRequiredBodyParameterInvalidValue(t *te
20632063 checkResponseForbiddenStatusCode (t , & reqCtx , DefaultSchemaID , []string {validator .ErrCodeRequiredBodyParameterInvalidValue })
20642064
20652065 // body with parameter which has invalid type
2066- p , err = json .Marshal (map [string ]interface {} {
2066+ p , err = json .Marshal (map [string ]any {
20672067 "status" : uuid .New ().String (),
20682068 "testInt" : "invalid_type_str" ,
20692069 "error" : "test" ,
@@ -2093,7 +2093,7 @@ func (s *APIModeServiceTests) testAPIModeRequiredBodyParameterInvalidValue(t *te
20932093 checkResponseForbiddenStatusCode (t , & reqCtx , DefaultSchemaID , []string {validator .ErrCodeRequiredBodyParameterInvalidValue })
20942094
20952095 // body with required parameter that has value less than minimum threshold
2096- p , err = json .Marshal (map [string ]interface {} {
2096+ p , err = json .Marshal (map [string ]any {
20972097 "status" : uuid .New ().String (),
20982098 "testInt" : 1 ,
20992099 "error" : "test" ,
@@ -2123,7 +2123,7 @@ func (s *APIModeServiceTests) testAPIModeRequiredBodyParameterInvalidValue(t *te
21232123 checkResponseForbiddenStatusCode (t , & reqCtx , DefaultSchemaID , []string {validator .ErrCodeRequiredBodyParameterInvalidValue })
21242124
21252125 // body with required parameter that has value more than maximum threshold
2126- p , err = json .Marshal (map [string ]interface {} {
2126+ p , err = json .Marshal (map [string ]any {
21272127 "status" : uuid .New ().String (),
21282128 "testInt" : 1000 ,
21292129 "error" : "test" ,
@@ -2365,7 +2365,7 @@ func (s *APIModeServiceTests) testAPIModeUnknownParameterBodyJSON(t *testing.T)
23652365
23662366 handler := handlersAPI .Handlers (s .lock , & cfg , s .shutdown , s .logger , s .dbSpec , nil , nil )
23672367
2368- p , err := json .Marshal (map [string ]interface {} {
2368+ p , err := json .Marshal (map [string ]any {
23692369 "firstname" : "test" ,
23702370 "lastname" : "test" ,
23712371 "job" : "test" ,
@@ -2399,7 +2399,7 @@ func (s *APIModeServiceTests) testAPIModeUnknownParameterBodyJSON(t *testing.T)
23992399 // check response status code and response body
24002400 checkResponseForbiddenStatusCode (t , & reqCtx , DefaultSchemaID , []string {validator .ErrCodeUnknownParameterFound })
24012401
2402- p , err = json .Marshal (map [string ]interface {} {
2402+ p , err = json .Marshal (map [string ]any {
24032403 "firstname" : "test" ,
24042404 "lastname" : "test" ,
24052405 "job" : "test" ,
@@ -2690,7 +2690,7 @@ func (s *APIModeServiceTests) testAPIModeInvalidRouteInRequest(t *testing.T) {
26902690
26912691 handler := handlersAPI .Handlers (s .lock , & cfg , s .shutdown , s .logger , s .dbSpec , nil , nil )
26922692
2693- p , err := json .Marshal (map [string ]interface {} {
2693+ p , err := json .Marshal (map [string ]any {
26942694 "firstname" : "test" ,
26952695 "lastname" : "test" ,
26962696 "job" : "test" ,
@@ -2746,7 +2746,7 @@ func (s *APIModeServiceTests) testAPIModeInvalidRouteInRequestInMultipleSchemas(
27462746
27472747 handler := handlersAPI .Handlers (s .lock , & cfg , s .shutdown , s .logger , s .dbSpec , nil , nil )
27482748
2749- p , err := json .Marshal (map [string ]interface {} {
2749+ p , err := json .Marshal (map [string ]any {
27502750 "firstname" : "test" ,
27512751 "lastname" : "test" ,
27522752 "job" : "test" ,
0 commit comments