From 4b8ca26e31ef5ba6ad9b732c149b2e7a0ead41e7 Mon Sep 17 00:00:00 2001 From: tdakkota Date: Tue, 20 Sep 2022 05:53:57 +0300 Subject: [PATCH] chore: commit generated files --- examples/ex_2ch/oas_request_decoders_gen.go | 3 - examples/ex_ent/oas_request_decoders_gen.go | 5 - .../oas_request_decoders_gen.go | 20 - .../ex_github/oas_request_decoders_gen.go | 184 ----- examples/ex_gotd/oas_request_decoders_gen.go | 83 -- .../oas_request_decoders_gen.go | 1 - .../ex_telegram/oas_request_decoders_gen.go | 78 -- .../oas_request_decoders_gen.go | 730 ------------------ .../ex_tinkoff/oas_request_decoders_gen.go | 5 - internal/requests_test.go | 38 +- .../sample_api/oas_request_decoders_gen.go | 8 - .../sample_api_nc/oas_request_decoders_gen.go | 8 - .../sample_err/oas_request_decoders_gen.go | 1 - internal/test_allof/oas_client_gen.go | 2 + internal/test_allof/oas_faker_gen.go | 13 +- internal/test_allof/oas_json_gen.go | 53 +- .../test_allof/oas_request_decoders_gen.go | 167 ++-- .../test_allof/oas_request_encoders_gen.go | 13 +- internal/test_allof/oas_schemas_gen.go | 54 +- internal/test_allof/oas_validators_gen.go | 22 +- .../test_form/oas_request_decoders_gen.go | 4 - internal/test_http_requests/oas_client_gen.go | 2 + internal/test_http_requests/oas_json_gen.go | 63 +- .../oas_request_decoders_gen.go | 203 +++-- .../oas_request_encoders_gen.go | 27 +- .../test_http_requests/oas_schemas_gen.go | 56 +- 26 files changed, 238 insertions(+), 1605 deletions(-) diff --git a/examples/ex_2ch/oas_request_decoders_gen.go b/examples/ex_2ch/oas_request_decoders_gen.go index f10276f13..f329ccfd3 100644 --- a/examples/ex_2ch/oas_request_decoders_gen.go +++ b/examples/ex_2ch/oas_request_decoders_gen.go @@ -39,7 +39,6 @@ func (s *Server) decodeUserPassloginPostRequest(r *http.Request, span trace.Span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -124,7 +123,6 @@ func (s *Server) decodeUserPostingPostRequest(r *http.Request, span trace.Span) if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -534,7 +532,6 @@ func (s *Server) decodeUserReportPostRequest(r *http.Request, span trace.Span) ( if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") diff --git a/examples/ex_ent/oas_request_decoders_gen.go b/examples/ex_ent/oas_request_decoders_gen.go index b4d51086d..dc743b78e 100644 --- a/examples/ex_ent/oas_request_decoders_gen.go +++ b/examples/ex_ent/oas_request_decoders_gen.go @@ -35,7 +35,6 @@ func (s *Server) decodeCreatePetRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -91,7 +90,6 @@ func (s *Server) decodeCreatePetCategoriesRequest(r *http.Request, span trace.Sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -147,7 +145,6 @@ func (s *Server) decodeCreatePetFriendsRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -203,7 +200,6 @@ func (s *Server) decodeCreatePetOwnerRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -259,7 +255,6 @@ func (s *Server) decodeUpdatePetRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") diff --git a/examples/ex_firecracker/oas_request_decoders_gen.go b/examples/ex_firecracker/oas_request_decoders_gen.go index 89a7972a3..3953cd07f 100644 --- a/examples/ex_firecracker/oas_request_decoders_gen.go +++ b/examples/ex_firecracker/oas_request_decoders_gen.go @@ -35,7 +35,6 @@ func (s *Server) decodeCreateSnapshotRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -99,7 +98,6 @@ func (s *Server) decodeCreateSyncActionRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -163,7 +161,6 @@ func (s *Server) decodeLoadSnapshotRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -219,7 +216,6 @@ func (s *Server) decodeMmdsConfigPutRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -278,7 +274,6 @@ func (s *Server) decodeMmdsPatchRequest(r *http.Request, span trace.Span) ( if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -340,7 +335,6 @@ func (s *Server) decodeMmdsPutRequest(r *http.Request, span trace.Span) ( if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -399,7 +393,6 @@ func (s *Server) decodePatchBalloonRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -455,7 +448,6 @@ func (s *Server) decodePatchBalloonStatsIntervalRequest(r *http.Request, span tr rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -511,7 +503,6 @@ func (s *Server) decodePatchGuestDriveByIDRequest(r *http.Request, span trace.Sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -575,7 +566,6 @@ func (s *Server) decodePatchGuestNetworkInterfaceByIDRequest(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -642,7 +632,6 @@ func (s *Server) decodePatchMachineConfigurationRequest(r *http.Request, span tr if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -714,7 +703,6 @@ func (s *Server) decodePatchVmRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -778,7 +766,6 @@ func (s *Server) decodePutBalloonRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -834,7 +821,6 @@ func (s *Server) decodePutGuestBootSourceRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -890,7 +876,6 @@ func (s *Server) decodePutGuestDriveByIDRequest(r *http.Request, span trace.Span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -954,7 +939,6 @@ func (s *Server) decodePutGuestNetworkInterfaceByIDRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1018,7 +1002,6 @@ func (s *Server) decodePutGuestVsockRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1082,7 +1065,6 @@ func (s *Server) decodePutLoggerRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1149,7 +1131,6 @@ func (s *Server) decodePutMachineConfigurationRequest(r *http.Request, span trac if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1221,7 +1202,6 @@ func (s *Server) decodePutMetricsRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") diff --git a/examples/ex_github/oas_request_decoders_gen.go b/examples/ex_github/oas_request_decoders_gen.go index 24205f349..6ae5f8a1f 100644 --- a/examples/ex_github/oas_request_decoders_gen.go +++ b/examples/ex_github/oas_request_decoders_gen.go @@ -35,7 +35,6 @@ func (s *Server) decodeActionsCreateOrUpdateEnvironmentSecretRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -99,7 +98,6 @@ func (s *Server) decodeActionsCreateOrUpdateOrgSecretRequest(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -163,7 +161,6 @@ func (s *Server) decodeActionsCreateOrUpdateRepoSecretRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -227,7 +224,6 @@ func (s *Server) decodeActionsCreateSelfHostedRunnerGroupForOrgRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -291,7 +287,6 @@ func (s *Server) decodeActionsReviewPendingDeploymentsForRunRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -358,7 +353,6 @@ func (s *Server) decodeActionsSetAllowedActionsOrganizationRequest(r *http.Reque if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -418,7 +412,6 @@ func (s *Server) decodeActionsSetAllowedActionsRepositoryRequest(r *http.Request if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -475,7 +468,6 @@ func (s *Server) decodeActionsSetGithubActionsPermissionsOrganizationRequest(r * rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -539,7 +531,6 @@ func (s *Server) decodeActionsSetGithubActionsPermissionsRepositoryRequest(r *ht rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -603,7 +594,6 @@ func (s *Server) decodeActionsSetRepoAccessToSelfHostedRunnerGroupInOrgRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -667,7 +657,6 @@ func (s *Server) decodeActionsSetSelectedReposForOrgSecretRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -731,7 +720,6 @@ func (s *Server) decodeActionsSetSelectedRepositoriesEnabledGithubActionsOrganiz rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -795,7 +783,6 @@ func (s *Server) decodeActionsSetSelfHostedRunnersInGroupForOrgRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -859,7 +846,6 @@ func (s *Server) decodeActionsUpdateSelfHostedRunnerGroupForOrgRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -926,7 +912,6 @@ func (s *Server) decodeActivityMarkNotificationsAsReadRequest(r *http.Request, s if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -986,7 +971,6 @@ func (s *Server) decodeActivityMarkRepoNotificationsAsReadRequest(r *http.Reques if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1046,7 +1030,6 @@ func (s *Server) decodeActivitySetRepoSubscriptionRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1106,7 +1089,6 @@ func (s *Server) decodeActivitySetThreadSubscriptionRequest(r *http.Request, spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1163,7 +1145,6 @@ func (s *Server) decodeAppsCheckTokenRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1219,7 +1200,6 @@ func (s *Server) decodeAppsCreateContentAttachmentRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1286,7 +1266,6 @@ func (s *Server) decodeAppsCreateFromManifestRequest(r *http.Request, span trace if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1348,7 +1327,6 @@ func (s *Server) decodeAppsCreateInstallationAccessTokenRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1420,7 +1398,6 @@ func (s *Server) decodeAppsDeleteAuthorizationRequest(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1476,7 +1453,6 @@ func (s *Server) decodeAppsDeleteTokenRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1532,7 +1508,6 @@ func (s *Server) decodeAppsResetTokenRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1588,7 +1563,6 @@ func (s *Server) decodeAppsScopeTokenRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1655,7 +1629,6 @@ func (s *Server) decodeAppsUpdateWebhookConfigForAppRequest(r *http.Request, spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1727,7 +1700,6 @@ func (s *Server) decodeChecksCreateSuiteRequest(r *http.Request, span trace.Span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1783,7 +1755,6 @@ func (s *Server) decodeChecksSetSuitesPreferencesRequest(r *http.Request, span t rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1839,7 +1810,6 @@ func (s *Server) decodeCodeScanningUpdateAlertRequest(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1903,7 +1873,6 @@ func (s *Server) decodeCodeScanningUploadSarifRequest(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1967,7 +1936,6 @@ func (s *Server) decodeEnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseRe rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2031,7 +1999,6 @@ func (s *Server) decodeEnterpriseAdminProvisionAndInviteEnterpriseGroupRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2095,7 +2062,6 @@ func (s *Server) decodeEnterpriseAdminProvisionAndInviteEnterpriseUserRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2159,7 +2125,6 @@ func (s *Server) decodeEnterpriseAdminSetAllowedActionsEnterpriseRequest(r *http rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2215,7 +2180,6 @@ func (s *Server) decodeEnterpriseAdminSetGithubActionsPermissionsEnterpriseReque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2279,7 +2243,6 @@ func (s *Server) decodeEnterpriseAdminSetInformationForProvisionedEnterpriseGrou rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2343,7 +2306,6 @@ func (s *Server) decodeEnterpriseAdminSetInformationForProvisionedEnterpriseUser rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2407,7 +2369,6 @@ func (s *Server) decodeEnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnter rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2471,7 +2432,6 @@ func (s *Server) decodeEnterpriseAdminSetSelectedOrganizationsEnabledGithubActio rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2535,7 +2495,6 @@ func (s *Server) decodeEnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseRe rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2599,7 +2558,6 @@ func (s *Server) decodeEnterpriseAdminUpdateAttributeForEnterpriseGroupRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2663,7 +2621,6 @@ func (s *Server) decodeEnterpriseAdminUpdateAttributeForEnterpriseUserRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2730,7 +2687,6 @@ func (s *Server) decodeEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseRe if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2802,7 +2758,6 @@ func (s *Server) decodeGistsCreateRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2866,7 +2821,6 @@ func (s *Server) decodeGistsCreateCommentRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2930,7 +2884,6 @@ func (s *Server) decodeGistsUpdateCommentRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2994,7 +2947,6 @@ func (s *Server) decodeGitCreateBlobRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3050,7 +3002,6 @@ func (s *Server) decodeGitCreateCommitRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3106,7 +3057,6 @@ func (s *Server) decodeGitCreateRefRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3162,7 +3112,6 @@ func (s *Server) decodeGitCreateTagRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3226,7 +3175,6 @@ func (s *Server) decodeGitCreateTreeRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3290,7 +3238,6 @@ func (s *Server) decodeGitUpdateRefRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3346,7 +3293,6 @@ func (s *Server) decodeInteractionsSetRestrictionsForAuthenticatedUserRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3410,7 +3356,6 @@ func (s *Server) decodeInteractionsSetRestrictionsForOrgRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3474,7 +3419,6 @@ func (s *Server) decodeInteractionsSetRestrictionsForRepoRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3541,7 +3485,6 @@ func (s *Server) decodeIssuesAddAssigneesRequest(r *http.Request, span trace.Spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3598,7 +3541,6 @@ func (s *Server) decodeIssuesCreateRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3654,7 +3596,6 @@ func (s *Server) decodeIssuesCreateCommentRequest(r *http.Request, span trace.Sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3710,7 +3651,6 @@ func (s *Server) decodeIssuesCreateLabelRequest(r *http.Request, span trace.Span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3766,7 +3706,6 @@ func (s *Server) decodeIssuesCreateMilestoneRequest(r *http.Request, span trace. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3833,7 +3772,6 @@ func (s *Server) decodeIssuesLockRequest(r *http.Request, span trace.Span) ( if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3908,7 +3846,6 @@ func (s *Server) decodeIssuesRemoveAssigneesRequest(r *http.Request, span trace. if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3968,7 +3905,6 @@ func (s *Server) decodeIssuesUpdateRequest(r *http.Request, span trace.Span) ( if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4040,7 +3976,6 @@ func (s *Server) decodeIssuesUpdateCommentRequest(r *http.Request, span trace.Sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4099,7 +4034,6 @@ func (s *Server) decodeIssuesUpdateLabelRequest(r *http.Request, span trace.Span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4159,7 +4093,6 @@ func (s *Server) decodeIssuesUpdateMilestoneRequest(r *http.Request, span trace. if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4234,7 +4167,6 @@ func (s *Server) decodeMigrationsMapCommitAuthorRequest(r *http.Request, span tr if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4291,7 +4223,6 @@ func (s *Server) decodeMigrationsSetLfsPreferenceRequest(r *http.Request, span t rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4355,7 +4286,6 @@ func (s *Server) decodeMigrationsStartForAuthenticatedUserRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4419,7 +4349,6 @@ func (s *Server) decodeMigrationsStartForOrgRequest(r *http.Request, span trace. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4483,7 +4412,6 @@ func (s *Server) decodeMigrationsStartImportRequest(r *http.Request, span trace. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4550,7 +4478,6 @@ func (s *Server) decodeMigrationsUpdateImportRequest(r *http.Request, span trace if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4610,7 +4537,6 @@ func (s *Server) decodeOAuthAuthorizationsCreateAuthorizationRequest(r *http.Req if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4682,7 +4608,6 @@ func (s *Server) decodeOAuthAuthorizationsGetOrCreateAuthorizationForAppRequest( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4746,7 +4671,6 @@ func (s *Server) decodeOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFinge rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4813,7 +4737,6 @@ func (s *Server) decodeOAuthAuthorizationsUpdateAuthorizationRequest(r *http.Req if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4888,7 +4811,6 @@ func (s *Server) decodeOrgsCreateInvitationRequest(r *http.Request, span trace.S if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4960,7 +4882,6 @@ func (s *Server) decodeOrgsCreateWebhookRequest(r *http.Request, span trace.Span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5027,7 +4948,6 @@ func (s *Server) decodeOrgsSetMembershipForUserRequest(r *http.Request, span tra if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5099,7 +5019,6 @@ func (s *Server) decodeOrgsUpdateMembershipForAuthenticatedUserRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5166,7 +5085,6 @@ func (s *Server) decodeOrgsUpdateWebhookRequest(r *http.Request, span trace.Span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5241,7 +5159,6 @@ func (s *Server) decodeOrgsUpdateWebhookConfigForOrgRequest(r *http.Request, spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5316,7 +5233,6 @@ func (s *Server) decodeProjectsAddCollaboratorRequest(r *http.Request, span trac if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5388,7 +5304,6 @@ func (s *Server) decodeProjectsCreateColumnRequest(r *http.Request, span trace.S rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5444,7 +5359,6 @@ func (s *Server) decodeProjectsCreateForAuthenticatedUserRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5500,7 +5414,6 @@ func (s *Server) decodeProjectsCreateForOrgRequest(r *http.Request, span trace.S rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5556,7 +5469,6 @@ func (s *Server) decodeProjectsCreateForRepoRequest(r *http.Request, span trace. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5612,7 +5524,6 @@ func (s *Server) decodeProjectsMoveCardRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5676,7 +5587,6 @@ func (s *Server) decodeProjectsMoveColumnRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5743,7 +5653,6 @@ func (s *Server) decodeProjectsUpdateRequest(r *http.Request, span trace.Span) ( if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5818,7 +5727,6 @@ func (s *Server) decodeProjectsUpdateCardRequest(r *http.Request, span trace.Spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5875,7 +5783,6 @@ func (s *Server) decodeProjectsUpdateColumnRequest(r *http.Request, span trace.S rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5931,7 +5838,6 @@ func (s *Server) decodePullsCreateRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5987,7 +5893,6 @@ func (s *Server) decodePullsCreateReplyForReviewCommentRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6046,7 +5951,6 @@ func (s *Server) decodePullsCreateReviewRequest(r *http.Request, span trace.Span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6118,7 +6022,6 @@ func (s *Server) decodePullsCreateReviewCommentRequest(r *http.Request, span tra rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6182,7 +6085,6 @@ func (s *Server) decodePullsDismissReviewRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6241,7 +6143,6 @@ func (s *Server) decodePullsMergeRequest(r *http.Request, span trace.Span) ( if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6313,7 +6214,6 @@ func (s *Server) decodePullsRemoveRequestedReviewersRequest(r *http.Request, spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6377,7 +6277,6 @@ func (s *Server) decodePullsSubmitReviewRequest(r *http.Request, span trace.Span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6444,7 +6343,6 @@ func (s *Server) decodePullsUpdateRequest(r *http.Request, span trace.Span) ( if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6519,7 +6417,6 @@ func (s *Server) decodePullsUpdateBranchRequest(r *http.Request, span trace.Span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6576,7 +6473,6 @@ func (s *Server) decodePullsUpdateReviewRequest(r *http.Request, span trace.Span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6632,7 +6528,6 @@ func (s *Server) decodePullsUpdateReviewCommentRequest(r *http.Request, span tra rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6688,7 +6583,6 @@ func (s *Server) decodeReactionsCreateForCommitCommentRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6752,7 +6646,6 @@ func (s *Server) decodeReactionsCreateForIssueRequest(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6816,7 +6709,6 @@ func (s *Server) decodeReactionsCreateForIssueCommentRequest(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6880,7 +6772,6 @@ func (s *Server) decodeReactionsCreateForPullRequestReviewCommentRequest(r *http rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6944,7 +6835,6 @@ func (s *Server) decodeReactionsCreateForReleaseRequest(r *http.Request, span tr rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7008,7 +6898,6 @@ func (s *Server) decodeReactionsCreateForTeamDiscussionCommentInOrgRequest(r *ht rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7072,7 +6961,6 @@ func (s *Server) decodeReactionsCreateForTeamDiscussionCommentLegacyRequest(r *h rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7136,7 +7024,6 @@ func (s *Server) decodeReactionsCreateForTeamDiscussionInOrgRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7200,7 +7087,6 @@ func (s *Server) decodeReactionsCreateForTeamDiscussionLegacyRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7267,7 +7153,6 @@ func (s *Server) decodeReposAddAppAccessRestrictionsRequest(r *http.Request, spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7342,7 +7227,6 @@ func (s *Server) decodeReposAddCollaboratorRequest(r *http.Request, span trace.S if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7417,7 +7301,6 @@ func (s *Server) decodeReposAddStatusCheckContextsRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7492,7 +7375,6 @@ func (s *Server) decodeReposAddTeamAccessRestrictionsRequest(r *http.Request, sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7567,7 +7449,6 @@ func (s *Server) decodeReposAddUserAccessRestrictionsRequest(r *http.Request, sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7639,7 +7520,6 @@ func (s *Server) decodeReposCreateAutolinkRequest(r *http.Request, span trace.Sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7695,7 +7575,6 @@ func (s *Server) decodeReposCreateCommitCommentRequest(r *http.Request, span tra rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7751,7 +7630,6 @@ func (s *Server) decodeReposCreateCommitStatusRequest(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7815,7 +7693,6 @@ func (s *Server) decodeReposCreateDeployKeyRequest(r *http.Request, span trace.S rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7871,7 +7748,6 @@ func (s *Server) decodeReposCreateDeploymentRequest(r *http.Request, span trace. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7927,7 +7803,6 @@ func (s *Server) decodeReposCreateDeploymentStatusRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7991,7 +7866,6 @@ func (s *Server) decodeReposCreateDispatchEventRequest(r *http.Request, span tra rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8055,7 +7929,6 @@ func (s *Server) decodeReposCreateForAuthenticatedUserRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8114,7 +7987,6 @@ func (s *Server) decodeReposCreateForkRequest(r *http.Request, span trace.Span) if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8171,7 +8043,6 @@ func (s *Server) decodeReposCreateInOrgRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8235,7 +8106,6 @@ func (s *Server) decodeReposCreateOrUpdateFileContentsRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8291,7 +8161,6 @@ func (s *Server) decodeReposCreatePagesSiteRequest(r *http.Request, span trace.S rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8355,7 +8224,6 @@ func (s *Server) decodeReposCreateReleaseRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8411,7 +8279,6 @@ func (s *Server) decodeReposCreateUsingTemplateRequest(r *http.Request, span tra rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8470,7 +8337,6 @@ func (s *Server) decodeReposCreateWebhookRequest(r *http.Request, span trace.Spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8542,7 +8408,6 @@ func (s *Server) decodeReposDeleteFileRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8598,7 +8463,6 @@ func (s *Server) decodeReposMergeRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8654,7 +8518,6 @@ func (s *Server) decodeReposMergeUpstreamRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8713,7 +8576,6 @@ func (s *Server) decodeReposRemoveAppAccessRestrictionsRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8788,7 +8650,6 @@ func (s *Server) decodeReposRemoveStatusCheckContextsRequest(r *http.Request, sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8863,7 +8724,6 @@ func (s *Server) decodeReposRemoveTeamAccessRestrictionsRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8938,7 +8798,6 @@ func (s *Server) decodeReposRemoveUserAccessRestrictionsRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9013,7 +8872,6 @@ func (s *Server) decodeReposRenameBranchRequest(r *http.Request, span trace.Span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9070,7 +8928,6 @@ func (s *Server) decodeReposReplaceAllTopicsRequest(r *http.Request, span trace. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9137,7 +8994,6 @@ func (s *Server) decodeReposSetAppAccessRestrictionsRequest(r *http.Request, spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9212,7 +9068,6 @@ func (s *Server) decodeReposSetStatusCheckContextsRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9287,7 +9142,6 @@ func (s *Server) decodeReposSetTeamAccessRestrictionsRequest(r *http.Request, sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9362,7 +9216,6 @@ func (s *Server) decodeReposSetUserAccessRestrictionsRequest(r *http.Request, sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9434,7 +9287,6 @@ func (s *Server) decodeReposTransferRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9493,7 +9345,6 @@ func (s *Server) decodeReposUpdateRequest(r *http.Request, span trace.Span) ( if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9565,7 +9416,6 @@ func (s *Server) decodeReposUpdateBranchProtectionRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9629,7 +9479,6 @@ func (s *Server) decodeReposUpdateCommitCommentRequest(r *http.Request, span tra rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9688,7 +9537,6 @@ func (s *Server) decodeReposUpdateInvitationRequest(r *http.Request, span trace. if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9763,7 +9611,6 @@ func (s *Server) decodeReposUpdatePullRequestReviewProtectionRequest(r *http.Req if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9823,7 +9670,6 @@ func (s *Server) decodeReposUpdateReleaseRequest(r *http.Request, span trace.Spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9883,7 +9729,6 @@ func (s *Server) decodeReposUpdateReleaseAssetRequest(r *http.Request, span trac if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9943,7 +9788,6 @@ func (s *Server) decodeReposUpdateStatusCheckProtectionRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10003,7 +9847,6 @@ func (s *Server) decodeReposUpdateWebhookRequest(r *http.Request, span trace.Spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10078,7 +9921,6 @@ func (s *Server) decodeReposUpdateWebhookConfigForRepoRequest(r *http.Request, s if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10150,7 +9992,6 @@ func (s *Server) decodeSecretScanningUpdateAlertRequest(r *http.Request, span tr rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10217,7 +10058,6 @@ func (s *Server) decodeTeamsAddOrUpdateMembershipForUserInOrgRequest(r *http.Req if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10292,7 +10132,6 @@ func (s *Server) decodeTeamsAddOrUpdateMembershipForUserLegacyRequest(r *http.Re if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10367,7 +10206,6 @@ func (s *Server) decodeTeamsAddOrUpdateProjectPermissionsInOrgRequest(r *http.Re if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10442,7 +10280,6 @@ func (s *Server) decodeTeamsAddOrUpdateProjectPermissionsLegacyRequest(r *http.R if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10517,7 +10354,6 @@ func (s *Server) decodeTeamsAddOrUpdateRepoPermissionsInOrgRequest(r *http.Reque if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10592,7 +10428,6 @@ func (s *Server) decodeTeamsAddOrUpdateRepoPermissionsLegacyRequest(r *http.Requ if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10664,7 +10499,6 @@ func (s *Server) decodeTeamsCreateRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10728,7 +10562,6 @@ func (s *Server) decodeTeamsCreateDiscussionCommentInOrgRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10784,7 +10617,6 @@ func (s *Server) decodeTeamsCreateDiscussionCommentLegacyRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10840,7 +10672,6 @@ func (s *Server) decodeTeamsCreateDiscussionInOrgRequest(r *http.Request, span t rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10896,7 +10727,6 @@ func (s *Server) decodeTeamsCreateDiscussionLegacyRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10952,7 +10782,6 @@ func (s *Server) decodeTeamsCreateOrUpdateIdpGroupConnectionsInOrgRequest(r *htt rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11008,7 +10837,6 @@ func (s *Server) decodeTeamsCreateOrUpdateIdpGroupConnectionsLegacyRequest(r *ht rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11072,7 +10900,6 @@ func (s *Server) decodeTeamsUpdateDiscussionCommentInOrgRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11128,7 +10955,6 @@ func (s *Server) decodeTeamsUpdateDiscussionCommentLegacyRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11187,7 +11013,6 @@ func (s *Server) decodeTeamsUpdateDiscussionInOrgRequest(r *http.Request, span t if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11247,7 +11072,6 @@ func (s *Server) decodeTeamsUpdateDiscussionLegacyRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11307,7 +11131,6 @@ func (s *Server) decodeTeamsUpdateInOrgRequest(r *http.Request, span trace.Span) if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11379,7 +11202,6 @@ func (s *Server) decodeTeamsUpdateLegacyRequest(r *http.Request, span trace.Span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11446,7 +11268,6 @@ func (s *Server) decodeUsersAddEmailForAuthenticatedRequest(r *http.Request, spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11518,7 +11339,6 @@ func (s *Server) decodeUsersCreateGpgKeyForAuthenticatedRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11574,7 +11394,6 @@ func (s *Server) decodeUsersCreatePublicSSHKeyForAuthenticatedRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11641,7 +11460,6 @@ func (s *Server) decodeUsersDeleteEmailForAuthenticatedRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11713,7 +11531,6 @@ func (s *Server) decodeUsersSetPrimaryEmailVisibilityForAuthenticatedRequest(r * rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11780,7 +11597,6 @@ func (s *Server) decodeUsersUpdateAuthenticatedRequest(r *http.Request, span tra if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") diff --git a/examples/ex_gotd/oas_request_decoders_gen.go b/examples/ex_gotd/oas_request_decoders_gen.go index e433baf4b..ebb427983 100644 --- a/examples/ex_gotd/oas_request_decoders_gen.go +++ b/examples/ex_gotd/oas_request_decoders_gen.go @@ -35,7 +35,6 @@ func (s *Server) decodeAddStickerToSetRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -99,7 +98,6 @@ func (s *Server) decodeAnswerCallbackQueryRequest(r *http.Request, span trace.Sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -163,7 +161,6 @@ func (s *Server) decodeAnswerInlineQueryRequest(r *http.Request, span trace.Span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -227,7 +224,6 @@ func (s *Server) decodeAnswerPreCheckoutQueryRequest(r *http.Request, span trace rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -283,7 +279,6 @@ func (s *Server) decodeAnswerShippingQueryRequest(r *http.Request, span trace.Sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -347,7 +342,6 @@ func (s *Server) decodeAnswerWebAppQueryRequest(r *http.Request, span trace.Span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -411,7 +405,6 @@ func (s *Server) decodeApproveChatJoinRequestRequest(r *http.Request, span trace rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -467,7 +460,6 @@ func (s *Server) decodeBanChatMemberRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -523,7 +515,6 @@ func (s *Server) decodeBanChatSenderChatRequest(r *http.Request, span trace.Span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -579,7 +570,6 @@ func (s *Server) decodeCopyMessageRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -643,7 +633,6 @@ func (s *Server) decodeCreateChatInviteLinkRequest(r *http.Request, span trace.S rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -707,7 +696,6 @@ func (s *Server) decodeCreateNewStickerSetRequest(r *http.Request, span trace.Sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -771,7 +759,6 @@ func (s *Server) decodeDeclineChatJoinRequestRequest(r *http.Request, span trace rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -827,7 +814,6 @@ func (s *Server) decodeDeleteChatPhotoRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -883,7 +869,6 @@ func (s *Server) decodeDeleteChatStickerSetRequest(r *http.Request, span trace.S rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -939,7 +924,6 @@ func (s *Server) decodeDeleteMessageRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -998,7 +982,6 @@ func (s *Server) decodeDeleteMyCommandsRequest(r *http.Request, span trace.Span) if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1055,7 +1038,6 @@ func (s *Server) decodeDeleteStickerFromSetRequest(r *http.Request, span trace.S rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1114,7 +1096,6 @@ func (s *Server) decodeDeleteWebhookRequest(r *http.Request, span trace.Span) ( if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1171,7 +1152,6 @@ func (s *Server) decodeEditChatInviteLinkRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1235,7 +1215,6 @@ func (s *Server) decodeEditMessageCaptionRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1299,7 +1278,6 @@ func (s *Server) decodeEditMessageLiveLocationRequest(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1363,7 +1341,6 @@ func (s *Server) decodeEditMessageMediaRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1427,7 +1404,6 @@ func (s *Server) decodeEditMessageReplyMarkupRequest(r *http.Request, span trace rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1491,7 +1467,6 @@ func (s *Server) decodeEditMessageTextRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1555,7 +1530,6 @@ func (s *Server) decodeExportChatInviteLinkRequest(r *http.Request, span trace.S rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1611,7 +1585,6 @@ func (s *Server) decodeForwardMessageRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1667,7 +1640,6 @@ func (s *Server) decodeGetChatRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1723,7 +1695,6 @@ func (s *Server) decodeGetChatAdministratorsRequest(r *http.Request, span trace. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1779,7 +1750,6 @@ func (s *Server) decodeGetChatMemberRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1835,7 +1805,6 @@ func (s *Server) decodeGetChatMemberCountRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1894,7 +1863,6 @@ func (s *Server) decodeGetChatMenuButtonRequest(r *http.Request, span trace.Span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1951,7 +1919,6 @@ func (s *Server) decodeGetFileRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2007,7 +1974,6 @@ func (s *Server) decodeGetGameHighScoresRequest(r *http.Request, span trace.Span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2066,7 +2032,6 @@ func (s *Server) decodeGetMyCommandsRequest(r *http.Request, span trace.Span) ( if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2126,7 +2091,6 @@ func (s *Server) decodeGetMyDefaultAdministratorRightsRequest(r *http.Request, s if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2183,7 +2147,6 @@ func (s *Server) decodeGetStickerSetRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2242,7 +2205,6 @@ func (s *Server) decodeGetUpdatesRequest(r *http.Request, span trace.Span) ( if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2314,7 +2276,6 @@ func (s *Server) decodeGetUserProfilePhotosRequest(r *http.Request, span trace.S rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2378,7 +2339,6 @@ func (s *Server) decodeLeaveChatRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2434,7 +2394,6 @@ func (s *Server) decodePinChatMessageRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2490,7 +2449,6 @@ func (s *Server) decodePromoteChatMemberRequest(r *http.Request, span trace.Span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2546,7 +2504,6 @@ func (s *Server) decodeRestrictChatMemberRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2602,7 +2559,6 @@ func (s *Server) decodeRevokeChatInviteLinkRequest(r *http.Request, span trace.S rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2658,7 +2614,6 @@ func (s *Server) decodeSendAnimationRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2722,7 +2677,6 @@ func (s *Server) decodeSendAudioRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2786,7 +2740,6 @@ func (s *Server) decodeSendChatActionRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2842,7 +2795,6 @@ func (s *Server) decodeSendContactRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2906,7 +2858,6 @@ func (s *Server) decodeSendDiceRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2970,7 +2921,6 @@ func (s *Server) decodeSendDocumentRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3034,7 +2984,6 @@ func (s *Server) decodeSendGameRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3098,7 +3047,6 @@ func (s *Server) decodeSendInvoiceRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3162,7 +3110,6 @@ func (s *Server) decodeSendLocationRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3226,7 +3173,6 @@ func (s *Server) decodeSendMediaGroupRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3290,7 +3236,6 @@ func (s *Server) decodeSendMessageRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3354,7 +3299,6 @@ func (s *Server) decodeSendPhotoRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3418,7 +3362,6 @@ func (s *Server) decodeSendPollRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3482,7 +3425,6 @@ func (s *Server) decodeSendStickerRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3546,7 +3488,6 @@ func (s *Server) decodeSendVenueRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3610,7 +3551,6 @@ func (s *Server) decodeSendVideoRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3674,7 +3614,6 @@ func (s *Server) decodeSendVideoNoteRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3738,7 +3677,6 @@ func (s *Server) decodeSendVoiceRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3802,7 +3740,6 @@ func (s *Server) decodeSetChatAdministratorCustomTitleRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3866,7 +3803,6 @@ func (s *Server) decodeSetChatDescriptionRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3933,7 +3869,6 @@ func (s *Server) decodeSetChatMenuButtonRequest(r *http.Request, span trace.Span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3990,7 +3925,6 @@ func (s *Server) decodeSetChatPermissionsRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4046,7 +3980,6 @@ func (s *Server) decodeSetChatPhotoRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4102,7 +4035,6 @@ func (s *Server) decodeSetChatStickerSetRequest(r *http.Request, span trace.Span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4158,7 +4090,6 @@ func (s *Server) decodeSetChatTitleRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4222,7 +4153,6 @@ func (s *Server) decodeSetGameScoreRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4278,7 +4208,6 @@ func (s *Server) decodeSetMyCommandsRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4345,7 +4274,6 @@ func (s *Server) decodeSetMyDefaultAdministratorRightsRequest(r *http.Request, s if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4402,7 +4330,6 @@ func (s *Server) decodeSetPassportDataErrorsRequest(r *http.Request, span trace. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4466,7 +4393,6 @@ func (s *Server) decodeSetStickerPositionInSetRequest(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4522,7 +4448,6 @@ func (s *Server) decodeSetStickerSetThumbRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4578,7 +4503,6 @@ func (s *Server) decodeSetWebhookRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4634,7 +4558,6 @@ func (s *Server) decodeStopMessageLiveLocationRequest(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4698,7 +4621,6 @@ func (s *Server) decodeStopPollRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4762,7 +4684,6 @@ func (s *Server) decodeUnbanChatMemberRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4818,7 +4739,6 @@ func (s *Server) decodeUnbanChatSenderChatRequest(r *http.Request, span trace.Sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4874,7 +4794,6 @@ func (s *Server) decodeUnpinAllChatMessagesRequest(r *http.Request, span trace.S rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4930,7 +4849,6 @@ func (s *Server) decodeUnpinChatMessageRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4986,7 +4904,6 @@ func (s *Server) decodeUploadStickerFileRequest(r *http.Request, span trace.Span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") diff --git a/examples/ex_petstore_expanded/oas_request_decoders_gen.go b/examples/ex_petstore_expanded/oas_request_decoders_gen.go index ddaf38695..3b45d344d 100644 --- a/examples/ex_petstore_expanded/oas_request_decoders_gen.go +++ b/examples/ex_petstore_expanded/oas_request_decoders_gen.go @@ -35,7 +35,6 @@ func (s *Server) decodeAddPetRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") diff --git a/examples/ex_telegram/oas_request_decoders_gen.go b/examples/ex_telegram/oas_request_decoders_gen.go index a9f51c7eb..52cbcb933 100644 --- a/examples/ex_telegram/oas_request_decoders_gen.go +++ b/examples/ex_telegram/oas_request_decoders_gen.go @@ -35,7 +35,6 @@ func (s *Server) decodeAddStickerToSetRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -99,7 +98,6 @@ func (s *Server) decodeAnswerCallbackQueryRequest(r *http.Request, span trace.Sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -163,7 +161,6 @@ func (s *Server) decodeAnswerInlineQueryRequest(r *http.Request, span trace.Span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -227,7 +224,6 @@ func (s *Server) decodeAnswerPreCheckoutQueryRequest(r *http.Request, span trace rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -283,7 +279,6 @@ func (s *Server) decodeAnswerShippingQueryRequest(r *http.Request, span trace.Sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -347,7 +342,6 @@ func (s *Server) decodeApproveChatJoinRequestRequest(r *http.Request, span trace rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -403,7 +397,6 @@ func (s *Server) decodeBanChatMemberRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -459,7 +452,6 @@ func (s *Server) decodeBanChatSenderChatRequest(r *http.Request, span trace.Span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -515,7 +507,6 @@ func (s *Server) decodeCopyMessageRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -579,7 +570,6 @@ func (s *Server) decodeCreateChatInviteLinkRequest(r *http.Request, span trace.S rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -643,7 +633,6 @@ func (s *Server) decodeCreateNewStickerSetRequest(r *http.Request, span trace.Sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -707,7 +696,6 @@ func (s *Server) decodeDeclineChatJoinRequestRequest(r *http.Request, span trace rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -763,7 +751,6 @@ func (s *Server) decodeDeleteChatPhotoRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -819,7 +806,6 @@ func (s *Server) decodeDeleteChatStickerSetRequest(r *http.Request, span trace.S rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -875,7 +861,6 @@ func (s *Server) decodeDeleteMessageRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -934,7 +919,6 @@ func (s *Server) decodeDeleteMyCommandsRequest(r *http.Request, span trace.Span) if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -991,7 +975,6 @@ func (s *Server) decodeDeleteStickerFromSetRequest(r *http.Request, span trace.S rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1050,7 +1033,6 @@ func (s *Server) decodeDeleteWebhookRequest(r *http.Request, span trace.Span) ( if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1107,7 +1089,6 @@ func (s *Server) decodeEditChatInviteLinkRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1171,7 +1152,6 @@ func (s *Server) decodeEditMessageCaptionRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1235,7 +1215,6 @@ func (s *Server) decodeEditMessageLiveLocationRequest(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1299,7 +1278,6 @@ func (s *Server) decodeEditMessageMediaRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1363,7 +1341,6 @@ func (s *Server) decodeEditMessageReplyMarkupRequest(r *http.Request, span trace rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1427,7 +1404,6 @@ func (s *Server) decodeEditMessageTextRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1491,7 +1467,6 @@ func (s *Server) decodeExportChatInviteLinkRequest(r *http.Request, span trace.S rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1547,7 +1522,6 @@ func (s *Server) decodeForwardMessageRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1603,7 +1577,6 @@ func (s *Server) decodeGetChatRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1659,7 +1632,6 @@ func (s *Server) decodeGetChatAdministratorsRequest(r *http.Request, span trace. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1715,7 +1687,6 @@ func (s *Server) decodeGetChatMemberRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1771,7 +1742,6 @@ func (s *Server) decodeGetChatMemberCountRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1827,7 +1797,6 @@ func (s *Server) decodeGetFileRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1883,7 +1852,6 @@ func (s *Server) decodeGetGameHighScoresRequest(r *http.Request, span trace.Span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1942,7 +1910,6 @@ func (s *Server) decodeGetMyCommandsRequest(r *http.Request, span trace.Span) ( if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1999,7 +1966,6 @@ func (s *Server) decodeGetStickerSetRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2058,7 +2024,6 @@ func (s *Server) decodeGetUpdatesRequest(r *http.Request, span trace.Span) ( if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2130,7 +2095,6 @@ func (s *Server) decodeGetUserProfilePhotosRequest(r *http.Request, span trace.S rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2194,7 +2158,6 @@ func (s *Server) decodeLeaveChatRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2250,7 +2213,6 @@ func (s *Server) decodePinChatMessageRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2306,7 +2268,6 @@ func (s *Server) decodePromoteChatMemberRequest(r *http.Request, span trace.Span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2362,7 +2323,6 @@ func (s *Server) decodeRestrictChatMemberRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2418,7 +2378,6 @@ func (s *Server) decodeRevokeChatInviteLinkRequest(r *http.Request, span trace.S rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2474,7 +2433,6 @@ func (s *Server) decodeSendAnimationRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2538,7 +2496,6 @@ func (s *Server) decodeSendAudioRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2602,7 +2559,6 @@ func (s *Server) decodeSendChatActionRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2658,7 +2614,6 @@ func (s *Server) decodeSendContactRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2722,7 +2677,6 @@ func (s *Server) decodeSendDiceRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2786,7 +2740,6 @@ func (s *Server) decodeSendDocumentRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2850,7 +2803,6 @@ func (s *Server) decodeSendGameRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2914,7 +2866,6 @@ func (s *Server) decodeSendInvoiceRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2978,7 +2929,6 @@ func (s *Server) decodeSendLocationRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3042,7 +2992,6 @@ func (s *Server) decodeSendMediaGroupRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3106,7 +3055,6 @@ func (s *Server) decodeSendMessageRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3170,7 +3118,6 @@ func (s *Server) decodeSendPhotoRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3234,7 +3181,6 @@ func (s *Server) decodeSendPollRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3298,7 +3244,6 @@ func (s *Server) decodeSendStickerRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3362,7 +3307,6 @@ func (s *Server) decodeSendVenueRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3426,7 +3370,6 @@ func (s *Server) decodeSendVideoRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3490,7 +3433,6 @@ func (s *Server) decodeSendVideoNoteRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3554,7 +3496,6 @@ func (s *Server) decodeSendVoiceRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3618,7 +3559,6 @@ func (s *Server) decodeSetChatAdministratorCustomTitleRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3682,7 +3622,6 @@ func (s *Server) decodeSetChatDescriptionRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3746,7 +3685,6 @@ func (s *Server) decodeSetChatPermissionsRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3802,7 +3740,6 @@ func (s *Server) decodeSetChatPhotoRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3858,7 +3795,6 @@ func (s *Server) decodeSetChatStickerSetRequest(r *http.Request, span trace.Span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3914,7 +3850,6 @@ func (s *Server) decodeSetChatTitleRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3978,7 +3913,6 @@ func (s *Server) decodeSetGameScoreRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4034,7 +3968,6 @@ func (s *Server) decodeSetMyCommandsRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4098,7 +4031,6 @@ func (s *Server) decodeSetPassportDataErrorsRequest(r *http.Request, span trace. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4162,7 +4094,6 @@ func (s *Server) decodeSetStickerPositionInSetRequest(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4218,7 +4149,6 @@ func (s *Server) decodeSetStickerSetThumbRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4274,7 +4204,6 @@ func (s *Server) decodeSetWebhookRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4330,7 +4259,6 @@ func (s *Server) decodeStopMessageLiveLocationRequest(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4394,7 +4322,6 @@ func (s *Server) decodeStopPollRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4458,7 +4385,6 @@ func (s *Server) decodeUnbanChatMemberRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4514,7 +4440,6 @@ func (s *Server) decodeUnbanChatSenderChatRequest(r *http.Request, span trace.Sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4570,7 +4495,6 @@ func (s *Server) decodeUnpinAllChatMessagesRequest(r *http.Request, span trace.S rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4626,7 +4550,6 @@ func (s *Server) decodeUnpinChatMessageRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4682,7 +4605,6 @@ func (s *Server) decodeUploadStickerFileRequest(r *http.Request, span trace.Span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") diff --git a/examples/ex_test_format/oas_request_decoders_gen.go b/examples/ex_test_format/oas_request_decoders_gen.go index c50cfd964..4e2c56712 100644 --- a/examples/ex_test_format/oas_request_decoders_gen.go +++ b/examples/ex_test_format/oas_request_decoders_gen.go @@ -41,7 +41,6 @@ func (s *Server) decodeTestQueryParameterRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -102,7 +101,6 @@ func (s *Server) decodeTestRequestAnyRequest(r *http.Request, span trace.Span) ( if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -163,7 +161,6 @@ func (s *Server) decodeTestRequestBooleanRequest(r *http.Request, span trace.Spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -223,7 +220,6 @@ func (s *Server) decodeTestRequestBooleanArrayRequest(r *http.Request, span trac if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -292,7 +288,6 @@ func (s *Server) decodeTestRequestBooleanArrayArrayRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -391,7 +386,6 @@ func (s *Server) decodeTestRequestBooleanNullableRequest(r *http.Request, span t if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -451,7 +445,6 @@ func (s *Server) decodeTestRequestBooleanNullableArrayRequest(r *http.Request, s if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -518,7 +511,6 @@ func (s *Server) decodeTestRequestBooleanNullableArrayArrayRequest(r *http.Reque if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -615,7 +607,6 @@ func (s *Server) decodeTestRequestEmptyStructRequest(r *http.Request, span trace if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -677,7 +668,6 @@ func (s *Server) decodeTestRequestFormatTestRequest(r *http.Request, span trace. if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -752,7 +742,6 @@ func (s *Server) decodeTestRequestIntegerRequest(r *http.Request, span trace.Spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -812,7 +801,6 @@ func (s *Server) decodeTestRequestIntegerArrayRequest(r *http.Request, span trac if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -881,7 +869,6 @@ func (s *Server) decodeTestRequestIntegerArrayArrayRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -980,7 +967,6 @@ func (s *Server) decodeTestRequestIntegerInt32Request(r *http.Request, span trac if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1040,7 +1026,6 @@ func (s *Server) decodeTestRequestIntegerInt32ArrayRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1109,7 +1094,6 @@ func (s *Server) decodeTestRequestIntegerInt32ArrayArrayRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1208,7 +1192,6 @@ func (s *Server) decodeTestRequestIntegerInt32NullableRequest(r *http.Request, s if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1268,7 +1251,6 @@ func (s *Server) decodeTestRequestIntegerInt32NullableArrayRequest(r *http.Reque if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1335,7 +1317,6 @@ func (s *Server) decodeTestRequestIntegerInt32NullableArrayArrayRequest(r *http. if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1432,7 +1413,6 @@ func (s *Server) decodeTestRequestIntegerInt64Request(r *http.Request, span trac if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1492,7 +1472,6 @@ func (s *Server) decodeTestRequestIntegerInt64ArrayRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1561,7 +1540,6 @@ func (s *Server) decodeTestRequestIntegerInt64ArrayArrayRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1660,7 +1638,6 @@ func (s *Server) decodeTestRequestIntegerInt64NullableRequest(r *http.Request, s if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1720,7 +1697,6 @@ func (s *Server) decodeTestRequestIntegerInt64NullableArrayRequest(r *http.Reque if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1787,7 +1763,6 @@ func (s *Server) decodeTestRequestIntegerInt64NullableArrayArrayRequest(r *http. if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1884,7 +1859,6 @@ func (s *Server) decodeTestRequestIntegerNullableRequest(r *http.Request, span t if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -1944,7 +1918,6 @@ func (s *Server) decodeTestRequestIntegerNullableArrayRequest(r *http.Request, s if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2011,7 +1984,6 @@ func (s *Server) decodeTestRequestIntegerNullableArrayArrayRequest(r *http.Reque if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2108,7 +2080,6 @@ func (s *Server) decodeTestRequestIntegerUintRequest(r *http.Request, span trace if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2168,7 +2139,6 @@ func (s *Server) decodeTestRequestIntegerUint32Request(r *http.Request, span tra if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2228,7 +2198,6 @@ func (s *Server) decodeTestRequestIntegerUint32ArrayRequest(r *http.Request, spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2297,7 +2266,6 @@ func (s *Server) decodeTestRequestIntegerUint32ArrayArrayRequest(r *http.Request if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2396,7 +2364,6 @@ func (s *Server) decodeTestRequestIntegerUint32NullableRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2456,7 +2423,6 @@ func (s *Server) decodeTestRequestIntegerUint32NullableArrayRequest(r *http.Requ if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2523,7 +2489,6 @@ func (s *Server) decodeTestRequestIntegerUint32NullableArrayArrayRequest(r *http if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2620,7 +2585,6 @@ func (s *Server) decodeTestRequestIntegerUint64Request(r *http.Request, span tra if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2680,7 +2644,6 @@ func (s *Server) decodeTestRequestIntegerUint64ArrayRequest(r *http.Request, spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2749,7 +2712,6 @@ func (s *Server) decodeTestRequestIntegerUint64ArrayArrayRequest(r *http.Request if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2848,7 +2810,6 @@ func (s *Server) decodeTestRequestIntegerUint64NullableRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2908,7 +2869,6 @@ func (s *Server) decodeTestRequestIntegerUint64NullableArrayRequest(r *http.Requ if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -2975,7 +2935,6 @@ func (s *Server) decodeTestRequestIntegerUint64NullableArrayArrayRequest(r *http if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3072,7 +3031,6 @@ func (s *Server) decodeTestRequestIntegerUintArrayRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3141,7 +3099,6 @@ func (s *Server) decodeTestRequestIntegerUintArrayArrayRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3240,7 +3197,6 @@ func (s *Server) decodeTestRequestIntegerUintNullableRequest(r *http.Request, sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3300,7 +3256,6 @@ func (s *Server) decodeTestRequestIntegerUintNullableArrayRequest(r *http.Reques if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3367,7 +3322,6 @@ func (s *Server) decodeTestRequestIntegerUintNullableArrayArrayRequest(r *http.R if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3464,7 +3418,6 @@ func (s *Server) decodeTestRequestIntegerUnixRequest(r *http.Request, span trace if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3524,7 +3477,6 @@ func (s *Server) decodeTestRequestIntegerUnixArrayRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3593,7 +3545,6 @@ func (s *Server) decodeTestRequestIntegerUnixArrayArrayRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3692,7 +3643,6 @@ func (s *Server) decodeTestRequestIntegerUnixMicroRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3752,7 +3702,6 @@ func (s *Server) decodeTestRequestIntegerUnixMicroArrayRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3821,7 +3770,6 @@ func (s *Server) decodeTestRequestIntegerUnixMicroArrayArrayRequest(r *http.Requ if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3920,7 +3868,6 @@ func (s *Server) decodeTestRequestIntegerUnixMicroNullableRequest(r *http.Reques if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -3980,7 +3927,6 @@ func (s *Server) decodeTestRequestIntegerUnixMicroNullableArrayRequest(r *http.R if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4047,7 +3993,6 @@ func (s *Server) decodeTestRequestIntegerUnixMicroNullableArrayArrayRequest(r *h if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4144,7 +4089,6 @@ func (s *Server) decodeTestRequestIntegerUnixMilliRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4204,7 +4148,6 @@ func (s *Server) decodeTestRequestIntegerUnixMilliArrayRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4273,7 +4216,6 @@ func (s *Server) decodeTestRequestIntegerUnixMilliArrayArrayRequest(r *http.Requ if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4372,7 +4314,6 @@ func (s *Server) decodeTestRequestIntegerUnixMilliNullableRequest(r *http.Reques if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4432,7 +4373,6 @@ func (s *Server) decodeTestRequestIntegerUnixMilliNullableArrayRequest(r *http.R if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4499,7 +4439,6 @@ func (s *Server) decodeTestRequestIntegerUnixMilliNullableArrayArrayRequest(r *h if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4596,7 +4535,6 @@ func (s *Server) decodeTestRequestIntegerUnixNanoRequest(r *http.Request, span t if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4656,7 +4594,6 @@ func (s *Server) decodeTestRequestIntegerUnixNanoArrayRequest(r *http.Request, s if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4725,7 +4662,6 @@ func (s *Server) decodeTestRequestIntegerUnixNanoArrayArrayRequest(r *http.Reque if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4824,7 +4760,6 @@ func (s *Server) decodeTestRequestIntegerUnixNanoNullableRequest(r *http.Request if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4884,7 +4819,6 @@ func (s *Server) decodeTestRequestIntegerUnixNanoNullableArrayRequest(r *http.Re if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -4951,7 +4885,6 @@ func (s *Server) decodeTestRequestIntegerUnixNanoNullableArrayArrayRequest(r *ht if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5048,7 +4981,6 @@ func (s *Server) decodeTestRequestIntegerUnixNullableRequest(r *http.Request, sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5108,7 +5040,6 @@ func (s *Server) decodeTestRequestIntegerUnixNullableArrayRequest(r *http.Reques if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5175,7 +5106,6 @@ func (s *Server) decodeTestRequestIntegerUnixNullableArrayArrayRequest(r *http.R if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5272,7 +5202,6 @@ func (s *Server) decodeTestRequestIntegerUnixSecondsRequest(r *http.Request, spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5332,7 +5261,6 @@ func (s *Server) decodeTestRequestIntegerUnixSecondsArrayRequest(r *http.Request if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5401,7 +5329,6 @@ func (s *Server) decodeTestRequestIntegerUnixSecondsArrayArrayRequest(r *http.Re if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5500,7 +5427,6 @@ func (s *Server) decodeTestRequestIntegerUnixSecondsNullableRequest(r *http.Requ if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5560,7 +5486,6 @@ func (s *Server) decodeTestRequestIntegerUnixSecondsNullableArrayRequest(r *http if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5627,7 +5552,6 @@ func (s *Server) decodeTestRequestIntegerUnixSecondsNullableArrayArrayRequest(r if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5724,7 +5648,6 @@ func (s *Server) decodeTestRequestNullRequest(r *http.Request, span trace.Span) if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5784,7 +5707,6 @@ func (s *Server) decodeTestRequestNullArrayRequest(r *http.Request, span trace.S if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5851,7 +5773,6 @@ func (s *Server) decodeTestRequestNullArrayArrayRequest(r *http.Request, span tr if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -5948,7 +5869,6 @@ func (s *Server) decodeTestRequestNullNullableRequest(r *http.Request, span trac if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6008,7 +5928,6 @@ func (s *Server) decodeTestRequestNullNullableArrayRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6075,7 +5994,6 @@ func (s *Server) decodeTestRequestNullNullableArrayArrayRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6172,7 +6090,6 @@ func (s *Server) decodeTestRequestNumberRequest(r *http.Request, span trace.Span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6247,7 +6164,6 @@ func (s *Server) decodeTestRequestNumberArrayRequest(r *http.Request, span trace if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6338,7 +6254,6 @@ func (s *Server) decodeTestRequestNumberArrayArrayRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6454,7 +6369,6 @@ func (s *Server) decodeTestRequestNumberDoubleRequest(r *http.Request, span trac if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6529,7 +6443,6 @@ func (s *Server) decodeTestRequestNumberDoubleArrayRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6620,7 +6533,6 @@ func (s *Server) decodeTestRequestNumberDoubleArrayArrayRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6736,7 +6648,6 @@ func (s *Server) decodeTestRequestNumberDoubleNullableRequest(r *http.Request, s if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6811,7 +6722,6 @@ func (s *Server) decodeTestRequestNumberDoubleNullableArrayRequest(r *http.Reque if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -6900,7 +6810,6 @@ func (s *Server) decodeTestRequestNumberDoubleNullableArrayArrayRequest(r *http. if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7014,7 +6923,6 @@ func (s *Server) decodeTestRequestNumberFloatRequest(r *http.Request, span trace if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7089,7 +6997,6 @@ func (s *Server) decodeTestRequestNumberFloatArrayRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7180,7 +7087,6 @@ func (s *Server) decodeTestRequestNumberFloatArrayArrayRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7296,7 +7202,6 @@ func (s *Server) decodeTestRequestNumberFloatNullableRequest(r *http.Request, sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7371,7 +7276,6 @@ func (s *Server) decodeTestRequestNumberFloatNullableArrayRequest(r *http.Reques if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7460,7 +7364,6 @@ func (s *Server) decodeTestRequestNumberFloatNullableArrayArrayRequest(r *http.R if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7574,7 +7477,6 @@ func (s *Server) decodeTestRequestNumberInt32Request(r *http.Request, span trace if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7634,7 +7536,6 @@ func (s *Server) decodeTestRequestNumberInt32ArrayRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7703,7 +7604,6 @@ func (s *Server) decodeTestRequestNumberInt32ArrayArrayRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7802,7 +7702,6 @@ func (s *Server) decodeTestRequestNumberInt32NullableRequest(r *http.Request, sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7862,7 +7761,6 @@ func (s *Server) decodeTestRequestNumberInt32NullableArrayRequest(r *http.Reques if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -7929,7 +7827,6 @@ func (s *Server) decodeTestRequestNumberInt32NullableArrayArrayRequest(r *http.R if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8026,7 +7923,6 @@ func (s *Server) decodeTestRequestNumberInt64Request(r *http.Request, span trace if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8086,7 +7982,6 @@ func (s *Server) decodeTestRequestNumberInt64ArrayRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8155,7 +8050,6 @@ func (s *Server) decodeTestRequestNumberInt64ArrayArrayRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8254,7 +8148,6 @@ func (s *Server) decodeTestRequestNumberInt64NullableRequest(r *http.Request, sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8314,7 +8207,6 @@ func (s *Server) decodeTestRequestNumberInt64NullableArrayRequest(r *http.Reques if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8381,7 +8273,6 @@ func (s *Server) decodeTestRequestNumberInt64NullableArrayArrayRequest(r *http.R if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8478,7 +8369,6 @@ func (s *Server) decodeTestRequestNumberNullableRequest(r *http.Request, span tr if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8553,7 +8443,6 @@ func (s *Server) decodeTestRequestNumberNullableArrayRequest(r *http.Request, sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8642,7 +8531,6 @@ func (s *Server) decodeTestRequestNumberNullableArrayArrayRequest(r *http.Reques if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8753,7 +8641,6 @@ func (s *Server) decodeTestRequestRequiredAnyRequest(r *http.Request, span trace rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8811,7 +8698,6 @@ func (s *Server) decodeTestRequestRequiredBooleanRequest(r *http.Request, span t rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8869,7 +8755,6 @@ func (s *Server) decodeTestRequestRequiredBooleanArrayRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -8943,7 +8828,6 @@ func (s *Server) decodeTestRequestRequiredBooleanArrayArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9042,7 +8926,6 @@ func (s *Server) decodeTestRequestRequiredBooleanNullableRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9098,7 +8981,6 @@ func (s *Server) decodeTestRequestRequiredBooleanNullableArrayRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9170,7 +9052,6 @@ func (s *Server) decodeTestRequestRequiredBooleanNullableArrayArrayRequest(r *ht rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9267,7 +9148,6 @@ func (s *Server) decodeTestRequestRequiredEmptyStructRequest(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9323,7 +9203,6 @@ func (s *Server) decodeTestRequestRequiredFormatTestRequest(r *http.Request, spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9387,7 +9266,6 @@ func (s *Server) decodeTestRequestRequiredIntegerRequest(r *http.Request, span t rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9445,7 +9323,6 @@ func (s *Server) decodeTestRequestRequiredIntegerArrayRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9519,7 +9396,6 @@ func (s *Server) decodeTestRequestRequiredIntegerArrayArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9618,7 +9494,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt32Request(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9676,7 +9551,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt32ArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9750,7 +9624,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt32ArrayArrayRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9849,7 +9722,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt32NullableRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9905,7 +9777,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt32NullableArrayRequest(r *ht rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -9977,7 +9848,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt32NullableArrayArrayRequest( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10074,7 +9944,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt64Request(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10132,7 +10001,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt64ArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10206,7 +10074,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt64ArrayArrayRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10305,7 +10172,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt64NullableRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10361,7 +10227,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt64NullableArrayRequest(r *ht rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10433,7 +10298,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt64NullableArrayArrayRequest( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10530,7 +10394,6 @@ func (s *Server) decodeTestRequestRequiredIntegerNullableRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10586,7 +10449,6 @@ func (s *Server) decodeTestRequestRequiredIntegerNullableArrayRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10658,7 +10520,6 @@ func (s *Server) decodeTestRequestRequiredIntegerNullableArrayArrayRequest(r *ht rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10755,7 +10616,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUintRequest(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10813,7 +10673,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint32Request(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10871,7 +10730,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint32ArrayRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -10945,7 +10803,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint32ArrayArrayRequest(r *http rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11044,7 +10901,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint32NullableRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11100,7 +10956,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint32NullableArrayRequest(r *h rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11172,7 +11027,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint32NullableArrayArrayRequest rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11269,7 +11123,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint64Request(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11327,7 +11180,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint64ArrayRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11401,7 +11253,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint64ArrayArrayRequest(r *http rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11500,7 +11351,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint64NullableRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11556,7 +11406,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint64NullableArrayRequest(r *h rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11628,7 +11477,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint64NullableArrayArrayRequest rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11725,7 +11573,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUintArrayRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11799,7 +11646,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUintArrayArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11898,7 +11744,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUintNullableRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -11954,7 +11799,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUintNullableArrayRequest(r *htt rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -12026,7 +11870,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUintNullableArrayArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -12123,7 +11966,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixRequest(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -12181,7 +12023,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixArrayRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -12255,7 +12096,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixArrayArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -12354,7 +12194,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMicroRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -12412,7 +12251,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMicroArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -12486,7 +12324,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMicroArrayArrayRequest(r *h rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -12585,7 +12422,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMicroNullableRequest(r *htt rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -12641,7 +12477,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMicroNullableArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -12713,7 +12548,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMicroNullableArrayArrayRequ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -12810,7 +12644,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMilliRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -12868,7 +12701,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMilliArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -12942,7 +12774,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMilliArrayArrayRequest(r *h rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -13041,7 +12872,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMilliNullableRequest(r *htt rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -13097,7 +12927,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMilliNullableArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -13169,7 +12998,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMilliNullableArrayArrayRequ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -13266,7 +13094,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNanoRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -13324,7 +13151,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNanoArrayRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -13398,7 +13224,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNanoArrayArrayRequest(r *ht rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -13497,7 +13322,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNanoNullableRequest(r *http rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -13553,7 +13377,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNanoNullableArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -13625,7 +13448,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNanoNullableArrayArrayReque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -13722,7 +13544,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNullableRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -13778,7 +13599,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNullableArrayRequest(r *htt rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -13850,7 +13670,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNullableArrayArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -13947,7 +13766,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixSecondsRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -14005,7 +13823,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixSecondsArrayRequest(r *http rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -14079,7 +13896,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixSecondsArrayArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -14178,7 +13994,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixSecondsNullableRequest(r *h rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -14234,7 +14049,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixSecondsNullableArrayRequest rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -14306,7 +14120,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixSecondsNullableArrayArrayRe rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -14403,7 +14216,6 @@ func (s *Server) decodeTestRequestRequiredNullRequest(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -14459,7 +14271,6 @@ func (s *Server) decodeTestRequestRequiredNullArrayRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -14531,7 +14342,6 @@ func (s *Server) decodeTestRequestRequiredNullArrayArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -14628,7 +14438,6 @@ func (s *Server) decodeTestRequestRequiredNullNullableRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -14684,7 +14493,6 @@ func (s *Server) decodeTestRequestRequiredNullNullableArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -14756,7 +14564,6 @@ func (s *Server) decodeTestRequestRequiredNullNullableArrayArrayRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -14853,7 +14660,6 @@ func (s *Server) decodeTestRequestRequiredNumberRequest(r *http.Request, span tr rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -14919,7 +14725,6 @@ func (s *Server) decodeTestRequestRequiredNumberArrayRequest(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -15010,7 +14815,6 @@ func (s *Server) decodeTestRequestRequiredNumberArrayArrayRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -15126,7 +14930,6 @@ func (s *Server) decodeTestRequestRequiredNumberDoubleRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -15192,7 +14995,6 @@ func (s *Server) decodeTestRequestRequiredNumberDoubleArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -15283,7 +15085,6 @@ func (s *Server) decodeTestRequestRequiredNumberDoubleArrayArrayRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -15399,7 +15200,6 @@ func (s *Server) decodeTestRequestRequiredNumberDoubleNullableRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -15463,7 +15263,6 @@ func (s *Server) decodeTestRequestRequiredNumberDoubleNullableArrayRequest(r *ht rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -15552,7 +15351,6 @@ func (s *Server) decodeTestRequestRequiredNumberDoubleNullableArrayArrayRequest( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -15666,7 +15464,6 @@ func (s *Server) decodeTestRequestRequiredNumberFloatRequest(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -15732,7 +15529,6 @@ func (s *Server) decodeTestRequestRequiredNumberFloatArrayRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -15823,7 +15619,6 @@ func (s *Server) decodeTestRequestRequiredNumberFloatArrayArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -15939,7 +15734,6 @@ func (s *Server) decodeTestRequestRequiredNumberFloatNullableRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -16003,7 +15797,6 @@ func (s *Server) decodeTestRequestRequiredNumberFloatNullableArrayRequest(r *htt rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -16092,7 +15885,6 @@ func (s *Server) decodeTestRequestRequiredNumberFloatNullableArrayArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -16206,7 +15998,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt32Request(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -16264,7 +16055,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt32ArrayRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -16338,7 +16128,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt32ArrayArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -16437,7 +16226,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt32NullableRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -16493,7 +16281,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt32NullableArrayRequest(r *htt rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -16565,7 +16352,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt32NullableArrayArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -16662,7 +16448,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt64Request(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -16720,7 +16505,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt64ArrayRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -16794,7 +16578,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt64ArrayArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -16893,7 +16676,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt64NullableRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -16949,7 +16731,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt64NullableArrayRequest(r *htt rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -17021,7 +16802,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt64NullableArrayArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -17118,7 +16898,6 @@ func (s *Server) decodeTestRequestRequiredNumberNullableRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -17182,7 +16961,6 @@ func (s *Server) decodeTestRequestRequiredNumberNullableArrayRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -17271,7 +17049,6 @@ func (s *Server) decodeTestRequestRequiredNumberNullableArrayArrayRequest(r *htt rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -17385,7 +17162,6 @@ func (s *Server) decodeTestRequestRequiredStringRequest(r *http.Request, span tr rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -17443,7 +17219,6 @@ func (s *Server) decodeTestRequestRequiredStringArrayRequest(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -17517,7 +17292,6 @@ func (s *Server) decodeTestRequestRequiredStringArrayArrayRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -17616,7 +17390,6 @@ func (s *Server) decodeTestRequestRequiredStringBinaryRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -17674,7 +17447,6 @@ func (s *Server) decodeTestRequestRequiredStringBinaryArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -17748,7 +17520,6 @@ func (s *Server) decodeTestRequestRequiredStringBinaryArrayArrayRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -17847,7 +17618,6 @@ func (s *Server) decodeTestRequestRequiredStringBinaryNullableRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -17903,7 +17673,6 @@ func (s *Server) decodeTestRequestRequiredStringBinaryNullableArrayRequest(r *ht rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -17975,7 +17744,6 @@ func (s *Server) decodeTestRequestRequiredStringBinaryNullableArrayArrayRequest( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -18072,7 +17840,6 @@ func (s *Server) decodeTestRequestRequiredStringByteRequest(r *http.Request, spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -18130,7 +17897,6 @@ func (s *Server) decodeTestRequestRequiredStringByteArrayRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -18204,7 +17970,6 @@ func (s *Server) decodeTestRequestRequiredStringByteArrayArrayRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -18303,7 +18068,6 @@ func (s *Server) decodeTestRequestRequiredStringByteNullableRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -18361,7 +18125,6 @@ func (s *Server) decodeTestRequestRequiredStringByteNullableArrayRequest(r *http rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -18435,7 +18198,6 @@ func (s *Server) decodeTestRequestRequiredStringByteNullableArrayArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -18534,7 +18296,6 @@ func (s *Server) decodeTestRequestRequiredStringDateRequest(r *http.Request, spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -18592,7 +18353,6 @@ func (s *Server) decodeTestRequestRequiredStringDateArrayRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -18666,7 +18426,6 @@ func (s *Server) decodeTestRequestRequiredStringDateArrayArrayRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -18765,7 +18524,6 @@ func (s *Server) decodeTestRequestRequiredStringDateNullableRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -18821,7 +18579,6 @@ func (s *Server) decodeTestRequestRequiredStringDateNullableArrayRequest(r *http rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -18893,7 +18650,6 @@ func (s *Server) decodeTestRequestRequiredStringDateNullableArrayArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -18990,7 +18746,6 @@ func (s *Server) decodeTestRequestRequiredStringDateTimeRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -19048,7 +18803,6 @@ func (s *Server) decodeTestRequestRequiredStringDateTimeArrayRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -19122,7 +18876,6 @@ func (s *Server) decodeTestRequestRequiredStringDateTimeArrayArrayRequest(r *htt rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -19221,7 +18974,6 @@ func (s *Server) decodeTestRequestRequiredStringDateTimeNullableRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -19277,7 +19029,6 @@ func (s *Server) decodeTestRequestRequiredStringDateTimeNullableArrayRequest(r * rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -19349,7 +19100,6 @@ func (s *Server) decodeTestRequestRequiredStringDateTimeNullableArrayArrayReques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -19446,7 +19196,6 @@ func (s *Server) decodeTestRequestRequiredStringDurationRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -19504,7 +19253,6 @@ func (s *Server) decodeTestRequestRequiredStringDurationArrayRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -19578,7 +19326,6 @@ func (s *Server) decodeTestRequestRequiredStringDurationArrayArrayRequest(r *htt rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -19677,7 +19424,6 @@ func (s *Server) decodeTestRequestRequiredStringDurationNullableRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -19733,7 +19479,6 @@ func (s *Server) decodeTestRequestRequiredStringDurationNullableArrayRequest(r * rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -19805,7 +19550,6 @@ func (s *Server) decodeTestRequestRequiredStringDurationNullableArrayArrayReques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -19902,7 +19646,6 @@ func (s *Server) decodeTestRequestRequiredStringEmailRequest(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -19976,7 +19719,6 @@ func (s *Server) decodeTestRequestRequiredStringEmailArrayRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -20075,7 +19817,6 @@ func (s *Server) decodeTestRequestRequiredStringEmailArrayArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -20199,7 +19940,6 @@ func (s *Server) decodeTestRequestRequiredStringEmailNullableRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -20271,7 +20011,6 @@ func (s *Server) decodeTestRequestRequiredStringEmailNullableArrayRequest(r *htt rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -20368,7 +20107,6 @@ func (s *Server) decodeTestRequestRequiredStringEmailNullableArrayArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -20490,7 +20228,6 @@ func (s *Server) decodeTestRequestRequiredStringHostnameRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -20564,7 +20301,6 @@ func (s *Server) decodeTestRequestRequiredStringHostnameArrayRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -20663,7 +20399,6 @@ func (s *Server) decodeTestRequestRequiredStringHostnameArrayArrayRequest(r *htt rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -20787,7 +20522,6 @@ func (s *Server) decodeTestRequestRequiredStringHostnameNullableRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -20859,7 +20593,6 @@ func (s *Server) decodeTestRequestRequiredStringHostnameNullableArrayRequest(r * rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -20956,7 +20689,6 @@ func (s *Server) decodeTestRequestRequiredStringHostnameNullableArrayArrayReques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -21078,7 +20810,6 @@ func (s *Server) decodeTestRequestRequiredStringIPRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -21136,7 +20867,6 @@ func (s *Server) decodeTestRequestRequiredStringIPArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -21210,7 +20940,6 @@ func (s *Server) decodeTestRequestRequiredStringIPArrayArrayRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -21309,7 +21038,6 @@ func (s *Server) decodeTestRequestRequiredStringIPNullableRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -21365,7 +21093,6 @@ func (s *Server) decodeTestRequestRequiredStringIPNullableArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -21437,7 +21164,6 @@ func (s *Server) decodeTestRequestRequiredStringIPNullableArrayArrayRequest(r *h rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -21534,7 +21260,6 @@ func (s *Server) decodeTestRequestRequiredStringInt32Request(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -21592,7 +21317,6 @@ func (s *Server) decodeTestRequestRequiredStringInt32ArrayRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -21666,7 +21390,6 @@ func (s *Server) decodeTestRequestRequiredStringInt32ArrayArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -21765,7 +21488,6 @@ func (s *Server) decodeTestRequestRequiredStringInt32NullableRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -21821,7 +21543,6 @@ func (s *Server) decodeTestRequestRequiredStringInt32NullableArrayRequest(r *htt rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -21893,7 +21614,6 @@ func (s *Server) decodeTestRequestRequiredStringInt32NullableArrayArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -21990,7 +21710,6 @@ func (s *Server) decodeTestRequestRequiredStringInt64Request(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -22048,7 +21767,6 @@ func (s *Server) decodeTestRequestRequiredStringInt64ArrayRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -22122,7 +21840,6 @@ func (s *Server) decodeTestRequestRequiredStringInt64ArrayArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -22221,7 +21938,6 @@ func (s *Server) decodeTestRequestRequiredStringInt64NullableRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -22277,7 +21993,6 @@ func (s *Server) decodeTestRequestRequiredStringInt64NullableArrayRequest(r *htt rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -22349,7 +22064,6 @@ func (s *Server) decodeTestRequestRequiredStringInt64NullableArrayArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -22446,7 +22160,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv4Request(r *http.Request, spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -22504,7 +22217,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv4ArrayRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -22578,7 +22290,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv4ArrayArrayRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -22677,7 +22388,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv4NullableRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -22733,7 +22443,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv4NullableArrayRequest(r *http rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -22805,7 +22514,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv4NullableArrayArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -22902,7 +22610,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv6Request(r *http.Request, spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -22960,7 +22667,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv6ArrayRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -23034,7 +22740,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv6ArrayArrayRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -23133,7 +22838,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv6NullableRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -23189,7 +22893,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv6NullableArrayRequest(r *http rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -23261,7 +22964,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv6NullableArrayArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -23358,7 +23060,6 @@ func (s *Server) decodeTestRequestRequiredStringNullableRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -23414,7 +23115,6 @@ func (s *Server) decodeTestRequestRequiredStringNullableArrayRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -23486,7 +23186,6 @@ func (s *Server) decodeTestRequestRequiredStringNullableArrayArrayRequest(r *htt rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -23583,7 +23282,6 @@ func (s *Server) decodeTestRequestRequiredStringPasswordRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -23641,7 +23339,6 @@ func (s *Server) decodeTestRequestRequiredStringPasswordArrayRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -23715,7 +23412,6 @@ func (s *Server) decodeTestRequestRequiredStringPasswordArrayArrayRequest(r *htt rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -23814,7 +23510,6 @@ func (s *Server) decodeTestRequestRequiredStringPasswordNullableRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -23870,7 +23565,6 @@ func (s *Server) decodeTestRequestRequiredStringPasswordNullableArrayRequest(r * rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -23942,7 +23636,6 @@ func (s *Server) decodeTestRequestRequiredStringPasswordNullableArrayArrayReques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -24039,7 +23732,6 @@ func (s *Server) decodeTestRequestRequiredStringTimeRequest(r *http.Request, spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -24097,7 +23789,6 @@ func (s *Server) decodeTestRequestRequiredStringTimeArrayRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -24171,7 +23862,6 @@ func (s *Server) decodeTestRequestRequiredStringTimeArrayArrayRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -24270,7 +23960,6 @@ func (s *Server) decodeTestRequestRequiredStringTimeNullableRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -24326,7 +24015,6 @@ func (s *Server) decodeTestRequestRequiredStringTimeNullableArrayRequest(r *http rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -24398,7 +24086,6 @@ func (s *Server) decodeTestRequestRequiredStringTimeNullableArrayArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -24495,7 +24182,6 @@ func (s *Server) decodeTestRequestRequiredStringURIRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -24553,7 +24239,6 @@ func (s *Server) decodeTestRequestRequiredStringURIArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -24627,7 +24312,6 @@ func (s *Server) decodeTestRequestRequiredStringURIArrayArrayRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -24726,7 +24410,6 @@ func (s *Server) decodeTestRequestRequiredStringURINullableRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -24782,7 +24465,6 @@ func (s *Server) decodeTestRequestRequiredStringURINullableArrayRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -24854,7 +24536,6 @@ func (s *Server) decodeTestRequestRequiredStringURINullableArrayArrayRequest(r * rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -24951,7 +24632,6 @@ func (s *Server) decodeTestRequestRequiredStringUUIDRequest(r *http.Request, spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -25009,7 +24689,6 @@ func (s *Server) decodeTestRequestRequiredStringUUIDArrayRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -25083,7 +24762,6 @@ func (s *Server) decodeTestRequestRequiredStringUUIDArrayArrayRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -25182,7 +24860,6 @@ func (s *Server) decodeTestRequestRequiredStringUUIDNullableRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -25238,7 +24915,6 @@ func (s *Server) decodeTestRequestRequiredStringUUIDNullableArrayRequest(r *http rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -25310,7 +24986,6 @@ func (s *Server) decodeTestRequestRequiredStringUUIDNullableArrayArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -25407,7 +25082,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixRequest(r *http.Request, spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -25465,7 +25139,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixArrayRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -25539,7 +25212,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixArrayArrayRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -25638,7 +25310,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMicroRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -25696,7 +25367,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMicroArrayRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -25770,7 +25440,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMicroArrayArrayRequest(r *ht rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -25869,7 +25538,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMicroNullableRequest(r *http rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -25925,7 +25593,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMicroNullableArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -25997,7 +25664,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMicroNullableArrayArrayReque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -26094,7 +25760,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMilliRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -26152,7 +25817,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMilliArrayRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -26226,7 +25890,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMilliArrayArrayRequest(r *ht rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -26325,7 +25988,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMilliNullableRequest(r *http rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -26381,7 +26043,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMilliNullableArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -26453,7 +26114,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMilliNullableArrayArrayReque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -26550,7 +26210,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixNanoRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -26608,7 +26267,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixNanoArrayRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -26682,7 +26340,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixNanoArrayArrayRequest(r *htt rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -26781,7 +26438,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixNanoNullableRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -26837,7 +26493,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixNanoNullableArrayRequest(r * rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -26909,7 +26564,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixNanoNullableArrayArrayReques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -27006,7 +26660,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixNullableRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -27062,7 +26715,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixNullableArrayRequest(r *http rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -27134,7 +26786,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixNullableArrayArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -27231,7 +26882,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixSecondsRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -27289,7 +26939,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixSecondsArrayRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -27363,7 +27012,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixSecondsArrayArrayRequest(r * rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -27462,7 +27110,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixSecondsNullableRequest(r *ht rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -27518,7 +27165,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixSecondsNullableArrayRequest( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -27590,7 +27236,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixSecondsNullableArrayArrayReq rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -27690,7 +27335,6 @@ func (s *Server) decodeTestRequestStringRequest(r *http.Request, span trace.Span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -27750,7 +27394,6 @@ func (s *Server) decodeTestRequestStringArrayRequest(r *http.Request, span trace if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -27819,7 +27462,6 @@ func (s *Server) decodeTestRequestStringArrayArrayRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -27918,7 +27560,6 @@ func (s *Server) decodeTestRequestStringBinaryRequest(r *http.Request, span trac if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -27978,7 +27619,6 @@ func (s *Server) decodeTestRequestStringBinaryArrayRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -28047,7 +27687,6 @@ func (s *Server) decodeTestRequestStringBinaryArrayArrayRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -28146,7 +27785,6 @@ func (s *Server) decodeTestRequestStringBinaryNullableRequest(r *http.Request, s if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -28206,7 +27844,6 @@ func (s *Server) decodeTestRequestStringBinaryNullableArrayRequest(r *http.Reque if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -28273,7 +27910,6 @@ func (s *Server) decodeTestRequestStringBinaryNullableArrayArrayRequest(r *http. if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -28370,7 +28006,6 @@ func (s *Server) decodeTestRequestStringByteRequest(r *http.Request, span trace. if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -28431,7 +28066,6 @@ func (s *Server) decodeTestRequestStringByteArrayRequest(r *http.Request, span t if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -28500,7 +28134,6 @@ func (s *Server) decodeTestRequestStringByteArrayArrayRequest(r *http.Request, s if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -28599,7 +28232,6 @@ func (s *Server) decodeTestRequestStringByteNullableRequest(r *http.Request, spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -28659,7 +28291,6 @@ func (s *Server) decodeTestRequestStringByteNullableArrayRequest(r *http.Request if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -28728,7 +28359,6 @@ func (s *Server) decodeTestRequestStringByteNullableArrayArrayRequest(r *http.Re if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -28827,7 +28457,6 @@ func (s *Server) decodeTestRequestStringDateRequest(r *http.Request, span trace. if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -28887,7 +28516,6 @@ func (s *Server) decodeTestRequestStringDateArrayRequest(r *http.Request, span t if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -28956,7 +28584,6 @@ func (s *Server) decodeTestRequestStringDateArrayArrayRequest(r *http.Request, s if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -29055,7 +28682,6 @@ func (s *Server) decodeTestRequestStringDateNullableRequest(r *http.Request, spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -29115,7 +28741,6 @@ func (s *Server) decodeTestRequestStringDateNullableArrayRequest(r *http.Request if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -29182,7 +28807,6 @@ func (s *Server) decodeTestRequestStringDateNullableArrayArrayRequest(r *http.Re if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -29279,7 +28903,6 @@ func (s *Server) decodeTestRequestStringDateTimeRequest(r *http.Request, span tr if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -29339,7 +28962,6 @@ func (s *Server) decodeTestRequestStringDateTimeArrayRequest(r *http.Request, sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -29408,7 +29030,6 @@ func (s *Server) decodeTestRequestStringDateTimeArrayArrayRequest(r *http.Reques if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -29507,7 +29128,6 @@ func (s *Server) decodeTestRequestStringDateTimeNullableRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -29567,7 +29187,6 @@ func (s *Server) decodeTestRequestStringDateTimeNullableArrayRequest(r *http.Req if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -29634,7 +29253,6 @@ func (s *Server) decodeTestRequestStringDateTimeNullableArrayArrayRequest(r *htt if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -29731,7 +29349,6 @@ func (s *Server) decodeTestRequestStringDurationRequest(r *http.Request, span tr if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -29791,7 +29408,6 @@ func (s *Server) decodeTestRequestStringDurationArrayRequest(r *http.Request, sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -29860,7 +29476,6 @@ func (s *Server) decodeTestRequestStringDurationArrayArrayRequest(r *http.Reques if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -29959,7 +29574,6 @@ func (s *Server) decodeTestRequestStringDurationNullableRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -30019,7 +29633,6 @@ func (s *Server) decodeTestRequestStringDurationNullableArrayRequest(r *http.Req if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -30086,7 +29699,6 @@ func (s *Server) decodeTestRequestStringDurationNullableArrayArrayRequest(r *htt if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -30183,7 +29795,6 @@ func (s *Server) decodeTestRequestStringEmailRequest(r *http.Request, span trace if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -30266,7 +29877,6 @@ func (s *Server) decodeTestRequestStringEmailArrayRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -30365,7 +29975,6 @@ func (s *Server) decodeTestRequestStringEmailArrayArrayRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -30489,7 +30098,6 @@ func (s *Server) decodeTestRequestStringEmailNullableRequest(r *http.Request, sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -30572,7 +30180,6 @@ func (s *Server) decodeTestRequestStringEmailNullableArrayRequest(r *http.Reques if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -30669,7 +30276,6 @@ func (s *Server) decodeTestRequestStringEmailNullableArrayArrayRequest(r *http.R if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -30791,7 +30397,6 @@ func (s *Server) decodeTestRequestStringHostnameRequest(r *http.Request, span tr if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -30874,7 +30479,6 @@ func (s *Server) decodeTestRequestStringHostnameArrayRequest(r *http.Request, sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -30973,7 +30577,6 @@ func (s *Server) decodeTestRequestStringHostnameArrayArrayRequest(r *http.Reques if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -31097,7 +30700,6 @@ func (s *Server) decodeTestRequestStringHostnameNullableRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -31180,7 +30782,6 @@ func (s *Server) decodeTestRequestStringHostnameNullableArrayRequest(r *http.Req if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -31277,7 +30878,6 @@ func (s *Server) decodeTestRequestStringHostnameNullableArrayArrayRequest(r *htt if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -31399,7 +30999,6 @@ func (s *Server) decodeTestRequestStringIPRequest(r *http.Request, span trace.Sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -31459,7 +31058,6 @@ func (s *Server) decodeTestRequestStringIPArrayRequest(r *http.Request, span tra if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -31528,7 +31126,6 @@ func (s *Server) decodeTestRequestStringIPArrayArrayRequest(r *http.Request, spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -31627,7 +31224,6 @@ func (s *Server) decodeTestRequestStringIPNullableRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -31687,7 +31283,6 @@ func (s *Server) decodeTestRequestStringIPNullableArrayRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -31754,7 +31349,6 @@ func (s *Server) decodeTestRequestStringIPNullableArrayArrayRequest(r *http.Requ if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -31851,7 +31445,6 @@ func (s *Server) decodeTestRequestStringInt32Request(r *http.Request, span trace if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -31911,7 +31504,6 @@ func (s *Server) decodeTestRequestStringInt32ArrayRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -31980,7 +31572,6 @@ func (s *Server) decodeTestRequestStringInt32ArrayArrayRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -32079,7 +31670,6 @@ func (s *Server) decodeTestRequestStringInt32NullableRequest(r *http.Request, sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -32139,7 +31729,6 @@ func (s *Server) decodeTestRequestStringInt32NullableArrayRequest(r *http.Reques if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -32206,7 +31795,6 @@ func (s *Server) decodeTestRequestStringInt32NullableArrayArrayRequest(r *http.R if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -32303,7 +31891,6 @@ func (s *Server) decodeTestRequestStringInt64Request(r *http.Request, span trace if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -32363,7 +31950,6 @@ func (s *Server) decodeTestRequestStringInt64ArrayRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -32432,7 +32018,6 @@ func (s *Server) decodeTestRequestStringInt64ArrayArrayRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -32531,7 +32116,6 @@ func (s *Server) decodeTestRequestStringInt64NullableRequest(r *http.Request, sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -32591,7 +32175,6 @@ func (s *Server) decodeTestRequestStringInt64NullableArrayRequest(r *http.Reques if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -32658,7 +32241,6 @@ func (s *Server) decodeTestRequestStringInt64NullableArrayArrayRequest(r *http.R if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -32755,7 +32337,6 @@ func (s *Server) decodeTestRequestStringIpv4Request(r *http.Request, span trace. if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -32815,7 +32396,6 @@ func (s *Server) decodeTestRequestStringIpv4ArrayRequest(r *http.Request, span t if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -32884,7 +32464,6 @@ func (s *Server) decodeTestRequestStringIpv4ArrayArrayRequest(r *http.Request, s if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -32983,7 +32562,6 @@ func (s *Server) decodeTestRequestStringIpv4NullableRequest(r *http.Request, spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -33043,7 +32621,6 @@ func (s *Server) decodeTestRequestStringIpv4NullableArrayRequest(r *http.Request if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -33110,7 +32687,6 @@ func (s *Server) decodeTestRequestStringIpv4NullableArrayArrayRequest(r *http.Re if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -33207,7 +32783,6 @@ func (s *Server) decodeTestRequestStringIpv6Request(r *http.Request, span trace. if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -33267,7 +32842,6 @@ func (s *Server) decodeTestRequestStringIpv6ArrayRequest(r *http.Request, span t if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -33336,7 +32910,6 @@ func (s *Server) decodeTestRequestStringIpv6ArrayArrayRequest(r *http.Request, s if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -33435,7 +33008,6 @@ func (s *Server) decodeTestRequestStringIpv6NullableRequest(r *http.Request, spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -33495,7 +33067,6 @@ func (s *Server) decodeTestRequestStringIpv6NullableArrayRequest(r *http.Request if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -33562,7 +33133,6 @@ func (s *Server) decodeTestRequestStringIpv6NullableArrayArrayRequest(r *http.Re if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -33659,7 +33229,6 @@ func (s *Server) decodeTestRequestStringNullableRequest(r *http.Request, span tr if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -33719,7 +33288,6 @@ func (s *Server) decodeTestRequestStringNullableArrayRequest(r *http.Request, sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -33786,7 +33354,6 @@ func (s *Server) decodeTestRequestStringNullableArrayArrayRequest(r *http.Reques if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -33883,7 +33450,6 @@ func (s *Server) decodeTestRequestStringPasswordRequest(r *http.Request, span tr if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -33943,7 +33509,6 @@ func (s *Server) decodeTestRequestStringPasswordArrayRequest(r *http.Request, sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -34012,7 +33577,6 @@ func (s *Server) decodeTestRequestStringPasswordArrayArrayRequest(r *http.Reques if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -34111,7 +33675,6 @@ func (s *Server) decodeTestRequestStringPasswordNullableRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -34171,7 +33734,6 @@ func (s *Server) decodeTestRequestStringPasswordNullableArrayRequest(r *http.Req if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -34238,7 +33800,6 @@ func (s *Server) decodeTestRequestStringPasswordNullableArrayArrayRequest(r *htt if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -34335,7 +33896,6 @@ func (s *Server) decodeTestRequestStringTimeRequest(r *http.Request, span trace. if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -34395,7 +33955,6 @@ func (s *Server) decodeTestRequestStringTimeArrayRequest(r *http.Request, span t if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -34464,7 +34023,6 @@ func (s *Server) decodeTestRequestStringTimeArrayArrayRequest(r *http.Request, s if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -34563,7 +34121,6 @@ func (s *Server) decodeTestRequestStringTimeNullableRequest(r *http.Request, spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -34623,7 +34180,6 @@ func (s *Server) decodeTestRequestStringTimeNullableArrayRequest(r *http.Request if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -34690,7 +34246,6 @@ func (s *Server) decodeTestRequestStringTimeNullableArrayArrayRequest(r *http.Re if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -34787,7 +34342,6 @@ func (s *Server) decodeTestRequestStringURIRequest(r *http.Request, span trace.S if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -34847,7 +34401,6 @@ func (s *Server) decodeTestRequestStringURIArrayRequest(r *http.Request, span tr if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -34916,7 +34469,6 @@ func (s *Server) decodeTestRequestStringURIArrayArrayRequest(r *http.Request, sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -35015,7 +34567,6 @@ func (s *Server) decodeTestRequestStringURINullableRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -35075,7 +34626,6 @@ func (s *Server) decodeTestRequestStringURINullableArrayRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -35142,7 +34692,6 @@ func (s *Server) decodeTestRequestStringURINullableArrayArrayRequest(r *http.Req if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -35239,7 +34788,6 @@ func (s *Server) decodeTestRequestStringUUIDRequest(r *http.Request, span trace. if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -35299,7 +34847,6 @@ func (s *Server) decodeTestRequestStringUUIDArrayRequest(r *http.Request, span t if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -35368,7 +34915,6 @@ func (s *Server) decodeTestRequestStringUUIDArrayArrayRequest(r *http.Request, s if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -35467,7 +35013,6 @@ func (s *Server) decodeTestRequestStringUUIDNullableRequest(r *http.Request, spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -35527,7 +35072,6 @@ func (s *Server) decodeTestRequestStringUUIDNullableArrayRequest(r *http.Request if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -35594,7 +35138,6 @@ func (s *Server) decodeTestRequestStringUUIDNullableArrayArrayRequest(r *http.Re if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -35691,7 +35234,6 @@ func (s *Server) decodeTestRequestStringUnixRequest(r *http.Request, span trace. if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -35751,7 +35293,6 @@ func (s *Server) decodeTestRequestStringUnixArrayRequest(r *http.Request, span t if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -35820,7 +35361,6 @@ func (s *Server) decodeTestRequestStringUnixArrayArrayRequest(r *http.Request, s if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -35919,7 +35459,6 @@ func (s *Server) decodeTestRequestStringUnixMicroRequest(r *http.Request, span t if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -35979,7 +35518,6 @@ func (s *Server) decodeTestRequestStringUnixMicroArrayRequest(r *http.Request, s if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -36048,7 +35586,6 @@ func (s *Server) decodeTestRequestStringUnixMicroArrayArrayRequest(r *http.Reque if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -36147,7 +35684,6 @@ func (s *Server) decodeTestRequestStringUnixMicroNullableRequest(r *http.Request if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -36207,7 +35743,6 @@ func (s *Server) decodeTestRequestStringUnixMicroNullableArrayRequest(r *http.Re if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -36274,7 +35809,6 @@ func (s *Server) decodeTestRequestStringUnixMicroNullableArrayArrayRequest(r *ht if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -36371,7 +35905,6 @@ func (s *Server) decodeTestRequestStringUnixMilliRequest(r *http.Request, span t if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -36431,7 +35964,6 @@ func (s *Server) decodeTestRequestStringUnixMilliArrayRequest(r *http.Request, s if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -36500,7 +36032,6 @@ func (s *Server) decodeTestRequestStringUnixMilliArrayArrayRequest(r *http.Reque if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -36599,7 +36130,6 @@ func (s *Server) decodeTestRequestStringUnixMilliNullableRequest(r *http.Request if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -36659,7 +36189,6 @@ func (s *Server) decodeTestRequestStringUnixMilliNullableArrayRequest(r *http.Re if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -36726,7 +36255,6 @@ func (s *Server) decodeTestRequestStringUnixMilliNullableArrayArrayRequest(r *ht if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -36823,7 +36351,6 @@ func (s *Server) decodeTestRequestStringUnixNanoRequest(r *http.Request, span tr if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -36883,7 +36410,6 @@ func (s *Server) decodeTestRequestStringUnixNanoArrayRequest(r *http.Request, sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -36952,7 +36478,6 @@ func (s *Server) decodeTestRequestStringUnixNanoArrayArrayRequest(r *http.Reques if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -37051,7 +36576,6 @@ func (s *Server) decodeTestRequestStringUnixNanoNullableRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -37111,7 +36635,6 @@ func (s *Server) decodeTestRequestStringUnixNanoNullableArrayRequest(r *http.Req if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -37178,7 +36701,6 @@ func (s *Server) decodeTestRequestStringUnixNanoNullableArrayArrayRequest(r *htt if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -37275,7 +36797,6 @@ func (s *Server) decodeTestRequestStringUnixNullableRequest(r *http.Request, spa if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -37335,7 +36856,6 @@ func (s *Server) decodeTestRequestStringUnixNullableArrayRequest(r *http.Request if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -37402,7 +36922,6 @@ func (s *Server) decodeTestRequestStringUnixNullableArrayArrayRequest(r *http.Re if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -37499,7 +37018,6 @@ func (s *Server) decodeTestRequestStringUnixSecondsRequest(r *http.Request, span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -37559,7 +37077,6 @@ func (s *Server) decodeTestRequestStringUnixSecondsArrayRequest(r *http.Request, if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -37628,7 +37145,6 @@ func (s *Server) decodeTestRequestStringUnixSecondsArrayArrayRequest(r *http.Req if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -37727,7 +37243,6 @@ func (s *Server) decodeTestRequestStringUnixSecondsNullableRequest(r *http.Reque if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -37787,7 +37302,6 @@ func (s *Server) decodeTestRequestStringUnixSecondsNullableArrayRequest(r *http. if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -37854,7 +37368,6 @@ func (s *Server) decodeTestRequestStringUnixSecondsNullableArrayArrayRequest(r * if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -37948,7 +37461,6 @@ func (s *Server) decodeTestResponseAnyRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -38006,7 +37518,6 @@ func (s *Server) decodeTestResponseBooleanRequest(r *http.Request, span trace.Sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -38064,7 +37575,6 @@ func (s *Server) decodeTestResponseBooleanArrayRequest(r *http.Request, span tra rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -38122,7 +37632,6 @@ func (s *Server) decodeTestResponseBooleanArrayArrayRequest(r *http.Request, spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -38180,7 +37689,6 @@ func (s *Server) decodeTestResponseBooleanNullableRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -38238,7 +37746,6 @@ func (s *Server) decodeTestResponseBooleanNullableArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -38296,7 +37803,6 @@ func (s *Server) decodeTestResponseBooleanNullableArrayArrayRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -38354,7 +37860,6 @@ func (s *Server) decodeTestResponseEmptyStructRequest(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -38412,7 +37917,6 @@ func (s *Server) decodeTestResponseFormatTestRequest(r *http.Request, span trace rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -38470,7 +37974,6 @@ func (s *Server) decodeTestResponseIntegerRequest(r *http.Request, span trace.Sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -38528,7 +38031,6 @@ func (s *Server) decodeTestResponseIntegerArrayRequest(r *http.Request, span tra rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -38586,7 +38088,6 @@ func (s *Server) decodeTestResponseIntegerArrayArrayRequest(r *http.Request, spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -38644,7 +38145,6 @@ func (s *Server) decodeTestResponseIntegerInt32Request(r *http.Request, span tra rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -38702,7 +38202,6 @@ func (s *Server) decodeTestResponseIntegerInt32ArrayRequest(r *http.Request, spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -38760,7 +38259,6 @@ func (s *Server) decodeTestResponseIntegerInt32ArrayArrayRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -38818,7 +38316,6 @@ func (s *Server) decodeTestResponseIntegerInt32NullableRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -38876,7 +38373,6 @@ func (s *Server) decodeTestResponseIntegerInt32NullableArrayRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -38934,7 +38430,6 @@ func (s *Server) decodeTestResponseIntegerInt32NullableArrayArrayRequest(r *http rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -38992,7 +38487,6 @@ func (s *Server) decodeTestResponseIntegerInt64Request(r *http.Request, span tra rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -39050,7 +38544,6 @@ func (s *Server) decodeTestResponseIntegerInt64ArrayRequest(r *http.Request, spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -39108,7 +38601,6 @@ func (s *Server) decodeTestResponseIntegerInt64ArrayArrayRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -39166,7 +38658,6 @@ func (s *Server) decodeTestResponseIntegerInt64NullableRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -39224,7 +38715,6 @@ func (s *Server) decodeTestResponseIntegerInt64NullableArrayRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -39282,7 +38772,6 @@ func (s *Server) decodeTestResponseIntegerInt64NullableArrayArrayRequest(r *http rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -39340,7 +38829,6 @@ func (s *Server) decodeTestResponseIntegerNullableRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -39398,7 +38886,6 @@ func (s *Server) decodeTestResponseIntegerNullableArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -39456,7 +38943,6 @@ func (s *Server) decodeTestResponseIntegerNullableArrayArrayRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -39514,7 +39000,6 @@ func (s *Server) decodeTestResponseIntegerUintRequest(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -39572,7 +39057,6 @@ func (s *Server) decodeTestResponseIntegerUint32Request(r *http.Request, span tr rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -39630,7 +39114,6 @@ func (s *Server) decodeTestResponseIntegerUint32ArrayRequest(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -39688,7 +39171,6 @@ func (s *Server) decodeTestResponseIntegerUint32ArrayArrayRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -39746,7 +39228,6 @@ func (s *Server) decodeTestResponseIntegerUint32NullableRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -39804,7 +39285,6 @@ func (s *Server) decodeTestResponseIntegerUint32NullableArrayRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -39862,7 +39342,6 @@ func (s *Server) decodeTestResponseIntegerUint32NullableArrayArrayRequest(r *htt rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -39920,7 +39399,6 @@ func (s *Server) decodeTestResponseIntegerUint64Request(r *http.Request, span tr rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -39978,7 +39456,6 @@ func (s *Server) decodeTestResponseIntegerUint64ArrayRequest(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -40036,7 +39513,6 @@ func (s *Server) decodeTestResponseIntegerUint64ArrayArrayRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -40094,7 +39570,6 @@ func (s *Server) decodeTestResponseIntegerUint64NullableRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -40152,7 +39627,6 @@ func (s *Server) decodeTestResponseIntegerUint64NullableArrayRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -40210,7 +39684,6 @@ func (s *Server) decodeTestResponseIntegerUint64NullableArrayArrayRequest(r *htt rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -40268,7 +39741,6 @@ func (s *Server) decodeTestResponseIntegerUintArrayRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -40326,7 +39798,6 @@ func (s *Server) decodeTestResponseIntegerUintArrayArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -40384,7 +39855,6 @@ func (s *Server) decodeTestResponseIntegerUintNullableRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -40442,7 +39912,6 @@ func (s *Server) decodeTestResponseIntegerUintNullableArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -40500,7 +39969,6 @@ func (s *Server) decodeTestResponseIntegerUintNullableArrayArrayRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -40558,7 +40026,6 @@ func (s *Server) decodeTestResponseIntegerUnixRequest(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -40616,7 +40083,6 @@ func (s *Server) decodeTestResponseIntegerUnixArrayRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -40674,7 +40140,6 @@ func (s *Server) decodeTestResponseIntegerUnixArrayArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -40732,7 +40197,6 @@ func (s *Server) decodeTestResponseIntegerUnixMicroRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -40790,7 +40254,6 @@ func (s *Server) decodeTestResponseIntegerUnixMicroArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -40848,7 +40311,6 @@ func (s *Server) decodeTestResponseIntegerUnixMicroArrayArrayRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -40906,7 +40368,6 @@ func (s *Server) decodeTestResponseIntegerUnixMicroNullableRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -40964,7 +40425,6 @@ func (s *Server) decodeTestResponseIntegerUnixMicroNullableArrayRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -41022,7 +40482,6 @@ func (s *Server) decodeTestResponseIntegerUnixMicroNullableArrayArrayRequest(r * rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -41080,7 +40539,6 @@ func (s *Server) decodeTestResponseIntegerUnixMilliRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -41138,7 +40596,6 @@ func (s *Server) decodeTestResponseIntegerUnixMilliArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -41196,7 +40653,6 @@ func (s *Server) decodeTestResponseIntegerUnixMilliArrayArrayRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -41254,7 +40710,6 @@ func (s *Server) decodeTestResponseIntegerUnixMilliNullableRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -41312,7 +40767,6 @@ func (s *Server) decodeTestResponseIntegerUnixMilliNullableArrayRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -41370,7 +40824,6 @@ func (s *Server) decodeTestResponseIntegerUnixMilliNullableArrayArrayRequest(r * rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -41428,7 +40881,6 @@ func (s *Server) decodeTestResponseIntegerUnixNanoRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -41486,7 +40938,6 @@ func (s *Server) decodeTestResponseIntegerUnixNanoArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -41544,7 +40995,6 @@ func (s *Server) decodeTestResponseIntegerUnixNanoArrayArrayRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -41602,7 +41052,6 @@ func (s *Server) decodeTestResponseIntegerUnixNanoNullableRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -41660,7 +41109,6 @@ func (s *Server) decodeTestResponseIntegerUnixNanoNullableArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -41718,7 +41166,6 @@ func (s *Server) decodeTestResponseIntegerUnixNanoNullableArrayArrayRequest(r *h rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -41776,7 +41223,6 @@ func (s *Server) decodeTestResponseIntegerUnixNullableRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -41834,7 +41280,6 @@ func (s *Server) decodeTestResponseIntegerUnixNullableArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -41892,7 +41337,6 @@ func (s *Server) decodeTestResponseIntegerUnixNullableArrayArrayRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -41950,7 +41394,6 @@ func (s *Server) decodeTestResponseIntegerUnixSecondsRequest(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -42008,7 +41451,6 @@ func (s *Server) decodeTestResponseIntegerUnixSecondsArrayRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -42066,7 +41508,6 @@ func (s *Server) decodeTestResponseIntegerUnixSecondsArrayArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -42124,7 +41565,6 @@ func (s *Server) decodeTestResponseIntegerUnixSecondsNullableRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -42182,7 +41622,6 @@ func (s *Server) decodeTestResponseIntegerUnixSecondsNullableArrayRequest(r *htt rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -42240,7 +41679,6 @@ func (s *Server) decodeTestResponseIntegerUnixSecondsNullableArrayArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -42298,7 +41736,6 @@ func (s *Server) decodeTestResponseNullRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -42356,7 +41793,6 @@ func (s *Server) decodeTestResponseNullArrayRequest(r *http.Request, span trace. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -42414,7 +41850,6 @@ func (s *Server) decodeTestResponseNullArrayArrayRequest(r *http.Request, span t rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -42472,7 +41907,6 @@ func (s *Server) decodeTestResponseNullNullableRequest(r *http.Request, span tra rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -42530,7 +41964,6 @@ func (s *Server) decodeTestResponseNullNullableArrayRequest(r *http.Request, spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -42588,7 +42021,6 @@ func (s *Server) decodeTestResponseNullNullableArrayArrayRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -42646,7 +42078,6 @@ func (s *Server) decodeTestResponseNumberRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -42704,7 +42135,6 @@ func (s *Server) decodeTestResponseNumberArrayRequest(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -42762,7 +42192,6 @@ func (s *Server) decodeTestResponseNumberArrayArrayRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -42820,7 +42249,6 @@ func (s *Server) decodeTestResponseNumberDoubleRequest(r *http.Request, span tra rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -42878,7 +42306,6 @@ func (s *Server) decodeTestResponseNumberDoubleArrayRequest(r *http.Request, spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -42936,7 +42363,6 @@ func (s *Server) decodeTestResponseNumberDoubleArrayArrayRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -42994,7 +42420,6 @@ func (s *Server) decodeTestResponseNumberDoubleNullableRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -43052,7 +42477,6 @@ func (s *Server) decodeTestResponseNumberDoubleNullableArrayRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -43110,7 +42534,6 @@ func (s *Server) decodeTestResponseNumberDoubleNullableArrayArrayRequest(r *http rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -43168,7 +42591,6 @@ func (s *Server) decodeTestResponseNumberFloatRequest(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -43226,7 +42648,6 @@ func (s *Server) decodeTestResponseNumberFloatArrayRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -43284,7 +42705,6 @@ func (s *Server) decodeTestResponseNumberFloatArrayArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -43342,7 +42762,6 @@ func (s *Server) decodeTestResponseNumberFloatNullableRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -43400,7 +42819,6 @@ func (s *Server) decodeTestResponseNumberFloatNullableArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -43458,7 +42876,6 @@ func (s *Server) decodeTestResponseNumberFloatNullableArrayArrayRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -43516,7 +42933,6 @@ func (s *Server) decodeTestResponseNumberInt32Request(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -43574,7 +42990,6 @@ func (s *Server) decodeTestResponseNumberInt32ArrayRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -43632,7 +43047,6 @@ func (s *Server) decodeTestResponseNumberInt32ArrayArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -43690,7 +43104,6 @@ func (s *Server) decodeTestResponseNumberInt32NullableRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -43748,7 +43161,6 @@ func (s *Server) decodeTestResponseNumberInt32NullableArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -43806,7 +43218,6 @@ func (s *Server) decodeTestResponseNumberInt32NullableArrayArrayRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -43864,7 +43275,6 @@ func (s *Server) decodeTestResponseNumberInt64Request(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -43922,7 +43332,6 @@ func (s *Server) decodeTestResponseNumberInt64ArrayRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -43980,7 +43389,6 @@ func (s *Server) decodeTestResponseNumberInt64ArrayArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -44038,7 +43446,6 @@ func (s *Server) decodeTestResponseNumberInt64NullableRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -44096,7 +43503,6 @@ func (s *Server) decodeTestResponseNumberInt64NullableArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -44154,7 +43560,6 @@ func (s *Server) decodeTestResponseNumberInt64NullableArrayArrayRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -44212,7 +43617,6 @@ func (s *Server) decodeTestResponseNumberNullableRequest(r *http.Request, span t rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -44270,7 +43674,6 @@ func (s *Server) decodeTestResponseNumberNullableArrayRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -44328,7 +43731,6 @@ func (s *Server) decodeTestResponseNumberNullableArrayArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -44386,7 +43788,6 @@ func (s *Server) decodeTestResponseStringRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -44444,7 +43845,6 @@ func (s *Server) decodeTestResponseStringArrayRequest(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -44502,7 +43902,6 @@ func (s *Server) decodeTestResponseStringArrayArrayRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -44560,7 +43959,6 @@ func (s *Server) decodeTestResponseStringBinaryRequest(r *http.Request, span tra rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -44618,7 +44016,6 @@ func (s *Server) decodeTestResponseStringBinaryArrayRequest(r *http.Request, spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -44676,7 +44073,6 @@ func (s *Server) decodeTestResponseStringBinaryArrayArrayRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -44734,7 +44130,6 @@ func (s *Server) decodeTestResponseStringBinaryNullableRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -44792,7 +44187,6 @@ func (s *Server) decodeTestResponseStringBinaryNullableArrayRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -44850,7 +44244,6 @@ func (s *Server) decodeTestResponseStringBinaryNullableArrayArrayRequest(r *http rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -44908,7 +44301,6 @@ func (s *Server) decodeTestResponseStringByteRequest(r *http.Request, span trace rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -44966,7 +44358,6 @@ func (s *Server) decodeTestResponseStringByteArrayRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -45024,7 +44415,6 @@ func (s *Server) decodeTestResponseStringByteArrayArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -45082,7 +44472,6 @@ func (s *Server) decodeTestResponseStringByteNullableRequest(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -45140,7 +44529,6 @@ func (s *Server) decodeTestResponseStringByteNullableArrayRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -45198,7 +44586,6 @@ func (s *Server) decodeTestResponseStringByteNullableArrayArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -45256,7 +44643,6 @@ func (s *Server) decodeTestResponseStringDateRequest(r *http.Request, span trace rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -45314,7 +44700,6 @@ func (s *Server) decodeTestResponseStringDateArrayRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -45372,7 +44757,6 @@ func (s *Server) decodeTestResponseStringDateArrayArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -45430,7 +44814,6 @@ func (s *Server) decodeTestResponseStringDateNullableRequest(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -45488,7 +44871,6 @@ func (s *Server) decodeTestResponseStringDateNullableArrayRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -45546,7 +44928,6 @@ func (s *Server) decodeTestResponseStringDateNullableArrayArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -45604,7 +44985,6 @@ func (s *Server) decodeTestResponseStringDateTimeRequest(r *http.Request, span t rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -45662,7 +45042,6 @@ func (s *Server) decodeTestResponseStringDateTimeArrayRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -45720,7 +45099,6 @@ func (s *Server) decodeTestResponseStringDateTimeArrayArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -45778,7 +45156,6 @@ func (s *Server) decodeTestResponseStringDateTimeNullableRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -45836,7 +45213,6 @@ func (s *Server) decodeTestResponseStringDateTimeNullableArrayRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -45894,7 +45270,6 @@ func (s *Server) decodeTestResponseStringDateTimeNullableArrayArrayRequest(r *ht rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -45952,7 +45327,6 @@ func (s *Server) decodeTestResponseStringDurationRequest(r *http.Request, span t rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -46010,7 +45384,6 @@ func (s *Server) decodeTestResponseStringDurationArrayRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -46068,7 +45441,6 @@ func (s *Server) decodeTestResponseStringDurationArrayArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -46126,7 +45498,6 @@ func (s *Server) decodeTestResponseStringDurationNullableRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -46184,7 +45555,6 @@ func (s *Server) decodeTestResponseStringDurationNullableArrayRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -46242,7 +45612,6 @@ func (s *Server) decodeTestResponseStringDurationNullableArrayArrayRequest(r *ht rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -46300,7 +45669,6 @@ func (s *Server) decodeTestResponseStringEmailRequest(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -46358,7 +45726,6 @@ func (s *Server) decodeTestResponseStringEmailArrayRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -46416,7 +45783,6 @@ func (s *Server) decodeTestResponseStringEmailArrayArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -46474,7 +45840,6 @@ func (s *Server) decodeTestResponseStringEmailNullableRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -46532,7 +45897,6 @@ func (s *Server) decodeTestResponseStringEmailNullableArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -46590,7 +45954,6 @@ func (s *Server) decodeTestResponseStringEmailNullableArrayArrayRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -46648,7 +46011,6 @@ func (s *Server) decodeTestResponseStringHostnameRequest(r *http.Request, span t rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -46706,7 +46068,6 @@ func (s *Server) decodeTestResponseStringHostnameArrayRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -46764,7 +46125,6 @@ func (s *Server) decodeTestResponseStringHostnameArrayArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -46822,7 +46182,6 @@ func (s *Server) decodeTestResponseStringHostnameNullableRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -46880,7 +46239,6 @@ func (s *Server) decodeTestResponseStringHostnameNullableArrayRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -46938,7 +46296,6 @@ func (s *Server) decodeTestResponseStringHostnameNullableArrayArrayRequest(r *ht rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -46996,7 +46353,6 @@ func (s *Server) decodeTestResponseStringIPRequest(r *http.Request, span trace.S rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -47054,7 +46410,6 @@ func (s *Server) decodeTestResponseStringIPArrayRequest(r *http.Request, span tr rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -47112,7 +46467,6 @@ func (s *Server) decodeTestResponseStringIPArrayArrayRequest(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -47170,7 +46524,6 @@ func (s *Server) decodeTestResponseStringIPNullableRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -47228,7 +46581,6 @@ func (s *Server) decodeTestResponseStringIPNullableArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -47286,7 +46638,6 @@ func (s *Server) decodeTestResponseStringIPNullableArrayArrayRequest(r *http.Req rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -47344,7 +46695,6 @@ func (s *Server) decodeTestResponseStringInt32Request(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -47402,7 +46752,6 @@ func (s *Server) decodeTestResponseStringInt32ArrayRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -47460,7 +46809,6 @@ func (s *Server) decodeTestResponseStringInt32ArrayArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -47518,7 +46866,6 @@ func (s *Server) decodeTestResponseStringInt32NullableRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -47576,7 +46923,6 @@ func (s *Server) decodeTestResponseStringInt32NullableArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -47634,7 +46980,6 @@ func (s *Server) decodeTestResponseStringInt32NullableArrayArrayRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -47692,7 +47037,6 @@ func (s *Server) decodeTestResponseStringInt64Request(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -47750,7 +47094,6 @@ func (s *Server) decodeTestResponseStringInt64ArrayRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -47808,7 +47151,6 @@ func (s *Server) decodeTestResponseStringInt64ArrayArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -47866,7 +47208,6 @@ func (s *Server) decodeTestResponseStringInt64NullableRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -47924,7 +47265,6 @@ func (s *Server) decodeTestResponseStringInt64NullableArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -47982,7 +47322,6 @@ func (s *Server) decodeTestResponseStringInt64NullableArrayArrayRequest(r *http. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -48040,7 +47379,6 @@ func (s *Server) decodeTestResponseStringIpv4Request(r *http.Request, span trace rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -48098,7 +47436,6 @@ func (s *Server) decodeTestResponseStringIpv4ArrayRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -48156,7 +47493,6 @@ func (s *Server) decodeTestResponseStringIpv4ArrayArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -48214,7 +47550,6 @@ func (s *Server) decodeTestResponseStringIpv4NullableRequest(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -48272,7 +47607,6 @@ func (s *Server) decodeTestResponseStringIpv4NullableArrayRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -48330,7 +47664,6 @@ func (s *Server) decodeTestResponseStringIpv4NullableArrayArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -48388,7 +47721,6 @@ func (s *Server) decodeTestResponseStringIpv6Request(r *http.Request, span trace rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -48446,7 +47778,6 @@ func (s *Server) decodeTestResponseStringIpv6ArrayRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -48504,7 +47835,6 @@ func (s *Server) decodeTestResponseStringIpv6ArrayArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -48562,7 +47892,6 @@ func (s *Server) decodeTestResponseStringIpv6NullableRequest(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -48620,7 +47949,6 @@ func (s *Server) decodeTestResponseStringIpv6NullableArrayRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -48678,7 +48006,6 @@ func (s *Server) decodeTestResponseStringIpv6NullableArrayArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -48736,7 +48063,6 @@ func (s *Server) decodeTestResponseStringNullableRequest(r *http.Request, span t rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -48794,7 +48120,6 @@ func (s *Server) decodeTestResponseStringNullableArrayRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -48852,7 +48177,6 @@ func (s *Server) decodeTestResponseStringNullableArrayArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -48910,7 +48234,6 @@ func (s *Server) decodeTestResponseStringPasswordRequest(r *http.Request, span t rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -48968,7 +48291,6 @@ func (s *Server) decodeTestResponseStringPasswordArrayRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -49026,7 +48348,6 @@ func (s *Server) decodeTestResponseStringPasswordArrayArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -49084,7 +48405,6 @@ func (s *Server) decodeTestResponseStringPasswordNullableRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -49142,7 +48462,6 @@ func (s *Server) decodeTestResponseStringPasswordNullableArrayRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -49200,7 +48519,6 @@ func (s *Server) decodeTestResponseStringPasswordNullableArrayArrayRequest(r *ht rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -49258,7 +48576,6 @@ func (s *Server) decodeTestResponseStringTimeRequest(r *http.Request, span trace rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -49316,7 +48633,6 @@ func (s *Server) decodeTestResponseStringTimeArrayRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -49374,7 +48690,6 @@ func (s *Server) decodeTestResponseStringTimeArrayArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -49432,7 +48747,6 @@ func (s *Server) decodeTestResponseStringTimeNullableRequest(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -49490,7 +48804,6 @@ func (s *Server) decodeTestResponseStringTimeNullableArrayRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -49548,7 +48861,6 @@ func (s *Server) decodeTestResponseStringTimeNullableArrayArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -49606,7 +48918,6 @@ func (s *Server) decodeTestResponseStringURIRequest(r *http.Request, span trace. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -49664,7 +48975,6 @@ func (s *Server) decodeTestResponseStringURIArrayRequest(r *http.Request, span t rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -49722,7 +49032,6 @@ func (s *Server) decodeTestResponseStringURIArrayArrayRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -49780,7 +49089,6 @@ func (s *Server) decodeTestResponseStringURINullableRequest(r *http.Request, spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -49838,7 +49146,6 @@ func (s *Server) decodeTestResponseStringURINullableArrayRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -49896,7 +49203,6 @@ func (s *Server) decodeTestResponseStringURINullableArrayArrayRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -49954,7 +49260,6 @@ func (s *Server) decodeTestResponseStringUUIDRequest(r *http.Request, span trace rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -50012,7 +49317,6 @@ func (s *Server) decodeTestResponseStringUUIDArrayRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -50070,7 +49374,6 @@ func (s *Server) decodeTestResponseStringUUIDArrayArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -50128,7 +49431,6 @@ func (s *Server) decodeTestResponseStringUUIDNullableRequest(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -50186,7 +49488,6 @@ func (s *Server) decodeTestResponseStringUUIDNullableArrayRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -50244,7 +49545,6 @@ func (s *Server) decodeTestResponseStringUUIDNullableArrayArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -50302,7 +49602,6 @@ func (s *Server) decodeTestResponseStringUnixRequest(r *http.Request, span trace rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -50360,7 +49659,6 @@ func (s *Server) decodeTestResponseStringUnixArrayRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -50418,7 +49716,6 @@ func (s *Server) decodeTestResponseStringUnixArrayArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -50476,7 +49773,6 @@ func (s *Server) decodeTestResponseStringUnixMicroRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -50534,7 +49830,6 @@ func (s *Server) decodeTestResponseStringUnixMicroArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -50592,7 +49887,6 @@ func (s *Server) decodeTestResponseStringUnixMicroArrayArrayRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -50650,7 +49944,6 @@ func (s *Server) decodeTestResponseStringUnixMicroNullableRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -50708,7 +50001,6 @@ func (s *Server) decodeTestResponseStringUnixMicroNullableArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -50766,7 +50058,6 @@ func (s *Server) decodeTestResponseStringUnixMicroNullableArrayArrayRequest(r *h rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -50824,7 +50115,6 @@ func (s *Server) decodeTestResponseStringUnixMilliRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -50882,7 +50172,6 @@ func (s *Server) decodeTestResponseStringUnixMilliArrayRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -50940,7 +50229,6 @@ func (s *Server) decodeTestResponseStringUnixMilliArrayArrayRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -50998,7 +50286,6 @@ func (s *Server) decodeTestResponseStringUnixMilliNullableRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -51056,7 +50343,6 @@ func (s *Server) decodeTestResponseStringUnixMilliNullableArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -51114,7 +50400,6 @@ func (s *Server) decodeTestResponseStringUnixMilliNullableArrayArrayRequest(r *h rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -51172,7 +50457,6 @@ func (s *Server) decodeTestResponseStringUnixNanoRequest(r *http.Request, span t rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -51230,7 +50514,6 @@ func (s *Server) decodeTestResponseStringUnixNanoArrayRequest(r *http.Request, s rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -51288,7 +50571,6 @@ func (s *Server) decodeTestResponseStringUnixNanoArrayArrayRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -51346,7 +50628,6 @@ func (s *Server) decodeTestResponseStringUnixNanoNullableRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -51404,7 +50685,6 @@ func (s *Server) decodeTestResponseStringUnixNanoNullableArrayRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -51462,7 +50742,6 @@ func (s *Server) decodeTestResponseStringUnixNanoNullableArrayArrayRequest(r *ht rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -51520,7 +50799,6 @@ func (s *Server) decodeTestResponseStringUnixNullableRequest(r *http.Request, sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -51578,7 +50856,6 @@ func (s *Server) decodeTestResponseStringUnixNullableArrayRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -51636,7 +50913,6 @@ func (s *Server) decodeTestResponseStringUnixNullableArrayArrayRequest(r *http.R rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -51694,7 +50970,6 @@ func (s *Server) decodeTestResponseStringUnixSecondsRequest(r *http.Request, spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -51752,7 +51027,6 @@ func (s *Server) decodeTestResponseStringUnixSecondsArrayRequest(r *http.Request rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -51810,7 +51084,6 @@ func (s *Server) decodeTestResponseStringUnixSecondsArrayArrayRequest(r *http.Re rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -51868,7 +51141,6 @@ func (s *Server) decodeTestResponseStringUnixSecondsNullableRequest(r *http.Requ rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -51926,7 +51198,6 @@ func (s *Server) decodeTestResponseStringUnixSecondsNullableArrayRequest(r *http rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -51984,7 +51255,6 @@ func (s *Server) decodeTestResponseStringUnixSecondsNullableArrayArrayRequest(r rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") diff --git a/examples/ex_tinkoff/oas_request_decoders_gen.go b/examples/ex_tinkoff/oas_request_decoders_gen.go index 19303c16e..869c24d77 100644 --- a/examples/ex_tinkoff/oas_request_decoders_gen.go +++ b/examples/ex_tinkoff/oas_request_decoders_gen.go @@ -35,7 +35,6 @@ func (s *Server) decodeOrdersLimitOrderPostRequest(r *http.Request, span trace.S rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -99,7 +98,6 @@ func (s *Server) decodeOrdersMarketOrderPostRequest(r *http.Request, span trace. rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -163,7 +161,6 @@ func (s *Server) decodeSandboxCurrenciesBalancePostRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -227,7 +224,6 @@ func (s *Server) decodeSandboxPositionsBalancePostRequest(r *http.Request, span rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -294,7 +290,6 @@ func (s *Server) decodeSandboxRegisterPostRequest(r *http.Request, span trace.Sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") diff --git a/internal/requests_test.go b/internal/requests_test.go index 9bdbcb49c..b793e61e6 100644 --- a/internal/requests_test.go +++ b/internal/requests_test.go @@ -81,24 +81,15 @@ func (t testHTTPRequests) MaskContentType(ctx context.Context, req api.MaskConte }, nil } -func (t testHTTPRequests) MaskContentTypeOptional(ctx context.Context, req api.MaskContentTypeOptionalReq) (api.MaskResponse, error) { - switch req := req.(type) { - case *api.MaskContentTypeOptionalReqEmptyBody: - return api.MaskResponse{ - Content: "", - }, nil - case *api.MaskContentTypeOptionalReqApplicationWithContentType: - var s strings.Builder - if _, err := io.Copy(&s, req.Content); err != nil { - return api.MaskResponse{}, err - } - return api.MaskResponse{ - ContentType: req.ContentType, - Content: s.String(), - }, nil - default: - panic(fmt.Sprintf("unknown request type: %T", req)) +func (t testHTTPRequests) MaskContentTypeOptional(ctx context.Context, req api.MaskContentTypeOptionalReqWithContentType) (api.MaskResponse, error) { + var s strings.Builder + if _, err := io.Copy(&s, req.Content); err != nil { + return api.MaskResponse{}, err } + return api.MaskResponse{ + ContentType: req.ContentType, + Content: s.String(), + }, nil } func TestRequests(t *testing.T) { @@ -205,22 +196,17 @@ func TestRequests(t *testing.T) { t.Run("MaskContentTypeOptional", func(t *testing.T) { a := require.New(t) - _, err := client.MaskContentTypeOptional(ctx, &api.MaskContentTypeOptionalReqApplicationWithContentType{ + _, err := client.MaskContentTypeOptional(ctx, api.MaskContentTypeOptionalReqWithContentType{ ContentType: "invalidCT", - Content: api.MaskContentTypeOptionalReqApplication{ + Content: api.MaskContentTypeOptionalReq{ Data: strings.NewReader(testData), }, }) a.EqualError(err, `encode request: "invalidCT" does not match mask "application/*"`) - resp, err := client.MaskContentTypeOptional(ctx, &api.MaskContentTypeOptionalReqEmptyBody{}) - a.NoError(err) - a.Empty(resp.ContentType) - a.Equal("", resp.Content) - - resp, err = client.MaskContentTypeOptional(ctx, &api.MaskContentTypeOptionalReqApplicationWithContentType{ + resp, err := client.MaskContentTypeOptional(ctx, api.MaskContentTypeOptionalReqWithContentType{ ContentType: "application/json", - Content: api.MaskContentTypeOptionalReqApplication{ + Content: api.MaskContentTypeOptionalReq{ Data: strings.NewReader(testData), }, }) diff --git a/internal/sample_api/oas_request_decoders_gen.go b/internal/sample_api/oas_request_decoders_gen.go index 7cb55bc7a..05d5be197 100644 --- a/internal/sample_api/oas_request_decoders_gen.go +++ b/internal/sample_api/oas_request_decoders_gen.go @@ -35,7 +35,6 @@ func (s *Server) decodeDefaultTestRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -102,7 +101,6 @@ func (s *Server) decodeFoobarPostRequest(r *http.Request, span trace.Span) ( if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -174,7 +172,6 @@ func (s *Server) decodeOneofBugRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -241,7 +238,6 @@ func (s *Server) decodePetCreateRequest(r *http.Request, span trace.Span) ( if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -316,7 +312,6 @@ func (s *Server) decodePetUpdateNameAliasPostRequest(r *http.Request, span trace if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -391,7 +386,6 @@ func (s *Server) decodePetUpdateNamePostRequest(r *http.Request, span trace.Span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -474,7 +468,6 @@ func (s *Server) decodePetUploadAvatarByIDRequest(r *http.Request, span trace.Sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -508,7 +501,6 @@ func (s *Server) decodeTestFloatValidationRequest(r *http.Request, span trace.Sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") diff --git a/internal/sample_api_nc/oas_request_decoders_gen.go b/internal/sample_api_nc/oas_request_decoders_gen.go index 7cb55bc7a..05d5be197 100644 --- a/internal/sample_api_nc/oas_request_decoders_gen.go +++ b/internal/sample_api_nc/oas_request_decoders_gen.go @@ -35,7 +35,6 @@ func (s *Server) decodeDefaultTestRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -102,7 +101,6 @@ func (s *Server) decodeFoobarPostRequest(r *http.Request, span trace.Span) ( if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -174,7 +172,6 @@ func (s *Server) decodeOneofBugRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -241,7 +238,6 @@ func (s *Server) decodePetCreateRequest(r *http.Request, span trace.Span) ( if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -316,7 +312,6 @@ func (s *Server) decodePetUpdateNameAliasPostRequest(r *http.Request, span trace if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -391,7 +386,6 @@ func (s *Server) decodePetUpdateNamePostRequest(r *http.Request, span trace.Span if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -474,7 +468,6 @@ func (s *Server) decodePetUploadAvatarByIDRequest(r *http.Request, span trace.Sp if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -508,7 +501,6 @@ func (s *Server) decodeTestFloatValidationRequest(r *http.Request, span trace.Sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") diff --git a/internal/sample_err/oas_request_decoders_gen.go b/internal/sample_err/oas_request_decoders_gen.go index cf714f631..586f45502 100644 --- a/internal/sample_err/oas_request_decoders_gen.go +++ b/internal/sample_err/oas_request_decoders_gen.go @@ -38,7 +38,6 @@ func (s *Server) decodeDataCreateRequest(r *http.Request, span trace.Span) ( if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") diff --git a/internal/test_allof/oas_client_gen.go b/internal/test_allof/oas_client_gen.go index b351a315e..06d631e20 100644 --- a/internal/test_allof/oas_client_gen.go +++ b/internal/test_allof/oas_client_gen.go @@ -379,6 +379,8 @@ func (c *Client) ReferencedAllofOptional(ctx context.Context, request Referenced } // Validate request before sending. switch request := request.(type) { + case *ReferencedAllofOptionalReqEmptyBody: + // Validation is not needed for the empty body type. case *ReferencedAllofOptionalApplicationJSON: if err := func() error { if err := request.Validate(); err != nil { diff --git a/internal/test_allof/oas_faker_gen.go b/internal/test_allof/oas_faker_gen.go index 21e5f7088..0590f29a2 100644 --- a/internal/test_allof/oas_faker_gen.go +++ b/internal/test_allof/oas_faker_gen.go @@ -73,15 +73,6 @@ func (s *OptInt) SetFake() { s.SetTo(elem) } -// SetFake set fake values. -func (s *OptRobot) SetFake() { - var elem Robot - { - elem.SetFake() - } - s.SetTo(elem) -} - // SetFake set fake values. func (s *OptString) SetFake() { var elem string @@ -111,7 +102,7 @@ func (s *ReferencedAllofMultipartFormData) SetFake() { // SetFake set fake values. func (s *ReferencedAllofOptionalApplicationJSON) SetFake() { - var unwrapped OptRobot + var unwrapped Robot { unwrapped.SetFake() } @@ -120,7 +111,7 @@ func (s *ReferencedAllofOptionalApplicationJSON) SetFake() { // SetFake set fake values. func (s *ReferencedAllofOptionalMultipartFormData) SetFake() { - var unwrapped OptRobot + var unwrapped Robot { unwrapped.SetFake() } diff --git a/internal/test_allof/oas_json_gen.go b/internal/test_allof/oas_json_gen.go index 19f4f4c46..afa733e13 100644 --- a/internal/test_allof/oas_json_gen.go +++ b/internal/test_allof/oas_json_gen.go @@ -439,39 +439,6 @@ func (s *OptInt) UnmarshalJSON(data []byte) error { return s.Decode(d) } -// Encode encodes Robot as json. -func (o OptRobot) Encode(e *jx.Encoder) { - if !o.Set { - return - } - o.Value.Encode(e) -} - -// Decode decodes Robot from json. -func (o *OptRobot) Decode(d *jx.Decoder) error { - if o == nil { - return errors.New("invalid: unable to decode OptRobot to nil") - } - o.Set = true - if err := o.Value.Decode(d); err != nil { - return err - } - return nil -} - -// MarshalJSON implements stdjson.Marshaler. -func (s OptRobot) MarshalJSON() ([]byte, error) { - e := jx.Encoder{} - s.Encode(&e) - return e.Bytes(), nil -} - -// UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptRobot) UnmarshalJSON(data []byte) error { - d := jx.DecodeBytes(data) - return s.Decode(d) -} - // Encode encodes string as json. func (o OptString) Encode(e *jx.Encoder) { if !o.Set { @@ -585,10 +552,9 @@ func (s *ReferencedAllofMultipartFormData) UnmarshalJSON(data []byte) error { // Encode encodes ReferencedAllofOptionalApplicationJSON as json. func (s ReferencedAllofOptionalApplicationJSON) Encode(e *jx.Encoder) { - unwrapped := OptRobot(s) - if unwrapped.Set { - unwrapped.Encode(e) - } + unwrapped := Robot(s) + + unwrapped.Encode(e) } // Decode decodes ReferencedAllofOptionalApplicationJSON from json. @@ -596,9 +562,8 @@ func (s *ReferencedAllofOptionalApplicationJSON) Decode(d *jx.Decoder) error { if s == nil { return errors.New("invalid: unable to decode ReferencedAllofOptionalApplicationJSON to nil") } - var unwrapped OptRobot + var unwrapped Robot if err := func() error { - unwrapped.Reset() if err := unwrapped.Decode(d); err != nil { return err } @@ -625,10 +590,9 @@ func (s *ReferencedAllofOptionalApplicationJSON) UnmarshalJSON(data []byte) erro // Encode encodes ReferencedAllofOptionalMultipartFormData as json. func (s ReferencedAllofOptionalMultipartFormData) Encode(e *jx.Encoder) { - unwrapped := OptRobot(s) - if unwrapped.Set { - unwrapped.Encode(e) - } + unwrapped := Robot(s) + + unwrapped.Encode(e) } // Decode decodes ReferencedAllofOptionalMultipartFormData from json. @@ -636,9 +600,8 @@ func (s *ReferencedAllofOptionalMultipartFormData) Decode(d *jx.Decoder) error { if s == nil { return errors.New("invalid: unable to decode ReferencedAllofOptionalMultipartFormData to nil") } - var unwrapped OptRobot + var unwrapped Robot if err := func() error { - unwrapped.Reset() if err := unwrapped.Decode(d); err != nil { return err } diff --git a/internal/test_allof/oas_request_decoders_gen.go b/internal/test_allof/oas_request_decoders_gen.go index 0797c8798..e23763822 100644 --- a/internal/test_allof/oas_request_decoders_gen.go +++ b/internal/test_allof/oas_request_decoders_gen.go @@ -38,7 +38,6 @@ func (s *Server) decodeNullableStringsRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -112,7 +111,6 @@ func (s *Server) decodeObjectsWithConflictingArrayPropertyRequest(r *http.Reques rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -176,7 +174,6 @@ func (s *Server) decodeObjectsWithConflictingPropertiesRequest(r *http.Request, rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -240,7 +237,6 @@ func (s *Server) decodeReferencedAllofRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -412,10 +408,10 @@ func (s *Server) decodeReferencedAllofOptionalRequest(r *http.Request, span trac rerr = multierr.Append(rerr, close()) } }() + req = &ReferencedAllofOptionalReqEmptyBody{} if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -470,100 +466,93 @@ func (s *Server) decodeReferencedAllofOptionalRequest(r *http.Request, span trac var request ReferencedAllofOptionalMultipartFormData { - var unwrapped OptRobot + var unwrapped Robot + q := uri.NewQueryDecoder(form) { - var optForm Robot - q := uri.NewQueryDecoder(form) - { - cfg := uri.QueryParameterDecodingConfig{ - Name: "state", - Style: uri.QueryStyleForm, - Explode: true, - } - if err := q.HasParam(cfg); err == nil { - if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - val, err := d.DecodeValue() - if err != nil { - return err - } - - c, err := conv.ToString(val) - if err != nil { - return err - } - - optForm.State = RobotState(c) - return nil - }); err != nil { - return req, close, errors.Wrap(err, "decode \"state\"") + cfg := uri.QueryParameterDecodingConfig{ + Name: "state", + Style: uri.QueryStyleForm, + Explode: true, + } + if err := q.HasParam(cfg); err == nil { + if err := q.DecodeParam(cfg, func(d uri.Decoder) error { + val, err := d.DecodeValue() + if err != nil { + return err } - if err := func() error { - if err := optForm.State.Validate(); err != nil { - return err - } - return nil - }(); err != nil { - return req, close, errors.Wrap(err, "validate") + + c, err := conv.ToString(val) + if err != nil { + return err } - } else { - return req, close, errors.Wrap(err, "query") - } - } - { - cfg := uri.QueryParameterDecodingConfig{ - Name: "id", - Style: uri.QueryStyleForm, - Explode: true, + + unwrapped.State = RobotState(c) + return nil + }); err != nil { + return req, close, errors.Wrap(err, "decode \"state\"") } - if err := q.HasParam(cfg); err == nil { - if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - val, err := d.DecodeValue() - if err != nil { - return err - } - - c, err := conv.ToUUID(val) - if err != nil { - return err - } - - optForm.ID = c - return nil - }); err != nil { - return req, close, errors.Wrap(err, "decode \"id\"") + if err := func() error { + if err := unwrapped.State.Validate(); err != nil { + return err } - } else { - return req, close, errors.Wrap(err, "query") + return nil + }(); err != nil { + return req, close, errors.Wrap(err, "validate") } + } else { + return req, close, errors.Wrap(err, "query") } - { - cfg := uri.QueryParameterDecodingConfig{ - Name: "location", - Style: uri.QueryStyleForm, - Explode: true, - Fields: []uri.QueryParameterObjectField{{"lat", true}, {"lon", true}}, - } - if err := q.HasParam(cfg); err == nil { - if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - return optForm.Location.DecodeURI(d) - }); err != nil { - return req, close, errors.Wrap(err, "decode \"location\"") + } + { + cfg := uri.QueryParameterDecodingConfig{ + Name: "id", + Style: uri.QueryStyleForm, + Explode: true, + } + if err := q.HasParam(cfg); err == nil { + if err := q.DecodeParam(cfg, func(d uri.Decoder) error { + val, err := d.DecodeValue() + if err != nil { + return err } - if err := func() error { - if err := optForm.Location.Validate(); err != nil { - return err - } - return nil - }(); err != nil { - return req, close, errors.Wrap(err, "validate") + + c, err := conv.ToUUID(val) + if err != nil { + return err } - } else { - return req, close, errors.Wrap(err, "query") + + unwrapped.ID = c + return nil + }); err != nil { + return req, close, errors.Wrap(err, "decode \"id\"") } + } else { + return req, close, errors.Wrap(err, "query") } - unwrapped = OptRobot{ - Value: optForm, - Set: true, + } + { + cfg := uri.QueryParameterDecodingConfig{ + Name: "location", + Style: uri.QueryStyleForm, + Explode: true, + Fields: []uri.QueryParameterObjectField{{"lat", true}, {"lon", true}}, + } + if err := q.HasParam(cfg); err == nil { + if err := q.DecodeParam(cfg, func(d uri.Decoder) error { + return unwrapped.Location.DecodeURI(d) + }); err != nil { + return req, close, errors.Wrap(err, "decode \"location\"") + } + if err := func() error { + if err := unwrapped.Location.Validate(); err != nil { + return err + } + return nil + }(); err != nil { + return req, close, errors.Wrap(err, "validate") + } + } else { + return req, close, errors.Wrap(err, "query") } } request = ReferencedAllofOptionalMultipartFormData(unwrapped) @@ -594,7 +583,6 @@ func (s *Server) decodeSimpleIntegerRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -669,7 +657,6 @@ func (s *Server) decodeSimpleObjectsRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") diff --git a/internal/test_allof/oas_request_encoders_gen.go b/internal/test_allof/oas_request_encoders_gen.go index 4dbb8ec9d..a8d954495 100644 --- a/internal/test_allof/oas_request_encoders_gen.go +++ b/internal/test_allof/oas_request_encoders_gen.go @@ -130,12 +130,11 @@ func encodeReferencedAllofOptionalRequest( r *http.Request, ) error { switch req := req.(type) { + case *ReferencedAllofOptionalReqEmptyBody: + // Empty body case. + return nil case *ReferencedAllofOptionalApplicationJSON: const contentType = "application/json" - if !req.Set { - // Keep request with empty body if value is not set. - return nil - } e := jx.GetEncoder() { req.Encode(e) @@ -145,11 +144,7 @@ func encodeReferencedAllofOptionalRequest( return nil case *ReferencedAllofOptionalMultipartFormData: const contentType = "multipart/form-data" - if !req.Set { - // Keep request with empty body if value is not set. - return nil - } - request := req.Value + request := req q := uri.NewQueryEncoder() { diff --git a/internal/test_allof/oas_schemas_gen.go b/internal/test_allof/oas_schemas_gen.go index c636e3c41..0d6fa20bd 100644 --- a/internal/test_allof/oas_schemas_gen.go +++ b/internal/test_allof/oas_schemas_gen.go @@ -127,52 +127,6 @@ func (o OptInt) Or(d int) int { return d } -// NewOptRobot returns new OptRobot with value set to v. -func NewOptRobot(v Robot) OptRobot { - return OptRobot{ - Value: v, - Set: true, - } -} - -// OptRobot is optional Robot. -type OptRobot struct { - Value Robot - Set bool -} - -// IsSet returns true if OptRobot was set. -func (o OptRobot) IsSet() bool { return o.Set } - -// Reset unsets value. -func (o *OptRobot) Reset() { - var v Robot - o.Value = v - o.Set = false -} - -// SetTo sets value to v. -func (o *OptRobot) SetTo(v Robot) { - o.Set = true - o.Value = v -} - -// Get returns value and boolean that denotes whether value was set. -func (o OptRobot) Get() (v Robot, ok bool) { - if !o.Set { - return v, false - } - return o.Value, true -} - -// Or returns value if set, or given parameter if does not. -func (o OptRobot) Or(d Robot) Robot { - if v, ok := o.Get(); ok { - return v - } - return d -} - // NewOptString returns new OptString with value set to v. func NewOptString(v string) OptString { return OptString{ @@ -230,17 +184,21 @@ func (*ReferencedAllofMultipartFormData) referencedAllofReq() {} // ReferencedAllofOK is response for ReferencedAllof operation. type ReferencedAllofOK struct{} -type ReferencedAllofOptionalApplicationJSON OptRobot +type ReferencedAllofOptionalApplicationJSON Robot func (*ReferencedAllofOptionalApplicationJSON) referencedAllofOptionalReq() {} -type ReferencedAllofOptionalMultipartFormData OptRobot +type ReferencedAllofOptionalMultipartFormData Robot func (*ReferencedAllofOptionalMultipartFormData) referencedAllofOptionalReq() {} // ReferencedAllofOptionalOK is response for ReferencedAllofOptional operation. type ReferencedAllofOptionalOK struct{} +type ReferencedAllofOptionalReqEmptyBody struct{} + +func (*ReferencedAllofOptionalReqEmptyBody) referencedAllofOptionalReq() {} + // Merged schema. // Ref: #/components/schemas/Robot type Robot struct { diff --git a/internal/test_allof/oas_validators_gen.go b/internal/test_allof/oas_validators_gen.go index fd184bd00..9945a2e86 100644 --- a/internal/test_allof/oas_validators_gen.go +++ b/internal/test_allof/oas_validators_gen.go @@ -150,28 +150,14 @@ func (s ReferencedAllofMultipartFormData) Validate() error { return nil } func (s ReferencedAllofOptionalApplicationJSON) Validate() error { - if s.Set { - if err := func() error { - if err := s.Value.Validate(); err != nil { - return err - } - return nil - }(); err != nil { - return err - } + if err := s.Validate(); err != nil { + return err } return nil } func (s ReferencedAllofOptionalMultipartFormData) Validate() error { - if s.Set { - if err := func() error { - if err := s.Value.Validate(); err != nil { - return err - } - return nil - }(); err != nil { - return err - } + if err := s.Validate(); err != nil { + return err } return nil } diff --git a/internal/test_form/oas_request_decoders_gen.go b/internal/test_form/oas_request_decoders_gen.go index 2e7162edf..60580d8ba 100644 --- a/internal/test_form/oas_request_decoders_gen.go +++ b/internal/test_form/oas_request_decoders_gen.go @@ -40,7 +40,6 @@ func (s *Server) decodeTestFormURLEncodedRequest(r *http.Request, span trace.Spa rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -252,7 +251,6 @@ func (s *Server) decodeTestMultipartRequest(r *http.Request, span trace.Span) ( rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -469,7 +467,6 @@ func (s *Server) decodeTestMultipartUploadRequest(r *http.Request, span trace.Sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -663,7 +660,6 @@ func (s *Server) decodeTestShareFormSchemaRequest(r *http.Request, span trace.Sp rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") diff --git a/internal/test_http_requests/oas_client_gen.go b/internal/test_http_requests/oas_client_gen.go index 13bf9b623..9464088fc 100644 --- a/internal/test_http_requests/oas_client_gen.go +++ b/internal/test_http_requests/oas_client_gen.go @@ -136,6 +136,8 @@ func (c *Client) AllRequestBodiesOptional(ctx context.Context, request AllReques } // Validate request before sending. switch request := request.(type) { + case *AllRequestBodiesOptionalReqEmptyBody: + // Validation is not needed for the empty body type. case *AllRequestBodiesOptionalApplicationJSON: // Validation is not required for this type. case *AllRequestBodiesOptionalReqApplicationOctetStream: diff --git a/internal/test_http_requests/oas_json_gen.go b/internal/test_http_requests/oas_json_gen.go index 8b390ed83..e2fea4c28 100644 --- a/internal/test_http_requests/oas_json_gen.go +++ b/internal/test_http_requests/oas_json_gen.go @@ -128,10 +128,9 @@ func (s *AllRequestBodiesMultipartFormData) UnmarshalJSON(data []byte) error { // Encode encodes AllRequestBodiesOptionalApplicationJSON as json. func (s AllRequestBodiesOptionalApplicationJSON) Encode(e *jx.Encoder) { - unwrapped := OptSimpleObject(s) - if unwrapped.Set { - unwrapped.Encode(e) - } + unwrapped := SimpleObject(s) + + unwrapped.Encode(e) } // Decode decodes AllRequestBodiesOptionalApplicationJSON from json. @@ -139,9 +138,8 @@ func (s *AllRequestBodiesOptionalApplicationJSON) Decode(d *jx.Decoder) error { if s == nil { return errors.New("invalid: unable to decode AllRequestBodiesOptionalApplicationJSON to nil") } - var unwrapped OptSimpleObject + var unwrapped SimpleObject if err := func() error { - unwrapped.Reset() if err := unwrapped.Decode(d); err != nil { return err } @@ -168,10 +166,9 @@ func (s *AllRequestBodiesOptionalApplicationJSON) UnmarshalJSON(data []byte) err // Encode encodes AllRequestBodiesOptionalApplicationXWwwFormUrlencoded as json. func (s AllRequestBodiesOptionalApplicationXWwwFormUrlencoded) Encode(e *jx.Encoder) { - unwrapped := OptSimpleObject(s) - if unwrapped.Set { - unwrapped.Encode(e) - } + unwrapped := SimpleObject(s) + + unwrapped.Encode(e) } // Decode decodes AllRequestBodiesOptionalApplicationXWwwFormUrlencoded from json. @@ -179,9 +176,8 @@ func (s *AllRequestBodiesOptionalApplicationXWwwFormUrlencoded) Decode(d *jx.Dec if s == nil { return errors.New("invalid: unable to decode AllRequestBodiesOptionalApplicationXWwwFormUrlencoded to nil") } - var unwrapped OptSimpleObject + var unwrapped SimpleObject if err := func() error { - unwrapped.Reset() if err := unwrapped.Decode(d); err != nil { return err } @@ -208,10 +204,9 @@ func (s *AllRequestBodiesOptionalApplicationXWwwFormUrlencoded) UnmarshalJSON(da // Encode encodes AllRequestBodiesOptionalMultipartFormData as json. func (s AllRequestBodiesOptionalMultipartFormData) Encode(e *jx.Encoder) { - unwrapped := OptSimpleObject(s) - if unwrapped.Set { - unwrapped.Encode(e) - } + unwrapped := SimpleObject(s) + + unwrapped.Encode(e) } // Decode decodes AllRequestBodiesOptionalMultipartFormData from json. @@ -219,9 +214,8 @@ func (s *AllRequestBodiesOptionalMultipartFormData) Decode(d *jx.Decoder) error if s == nil { return errors.New("invalid: unable to decode AllRequestBodiesOptionalMultipartFormData to nil") } - var unwrapped OptSimpleObject + var unwrapped SimpleObject if err := func() error { - unwrapped.Reset() if err := unwrapped.Decode(d); err != nil { return err } @@ -396,39 +390,6 @@ func (s *OptInt) UnmarshalJSON(data []byte) error { return s.Decode(d) } -// Encode encodes SimpleObject as json. -func (o OptSimpleObject) Encode(e *jx.Encoder) { - if !o.Set { - return - } - o.Value.Encode(e) -} - -// Decode decodes SimpleObject from json. -func (o *OptSimpleObject) Decode(d *jx.Decoder) error { - if o == nil { - return errors.New("invalid: unable to decode OptSimpleObject to nil") - } - o.Set = true - if err := o.Value.Decode(d); err != nil { - return err - } - return nil -} - -// MarshalJSON implements stdjson.Marshaler. -func (s OptSimpleObject) MarshalJSON() ([]byte, error) { - e := jx.Encoder{} - s.Encode(&e) - return e.Bytes(), nil -} - -// UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptSimpleObject) UnmarshalJSON(data []byte) error { - d := jx.DecodeBytes(data) - return s.Decode(d) -} - // Encode implements json.Marshaler. func (s SimpleObject) Encode(e *jx.Encoder) { e.ObjStart() diff --git a/internal/test_http_requests/oas_request_decoders_gen.go b/internal/test_http_requests/oas_request_decoders_gen.go index 7a76427f3..aaf924962 100644 --- a/internal/test_http_requests/oas_request_decoders_gen.go +++ b/internal/test_http_requests/oas_request_decoders_gen.go @@ -39,7 +39,6 @@ func (s *Server) decodeAllRequestBodiesRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -256,10 +255,10 @@ func (s *Server) decodeAllRequestBodiesOptionalRequest(r *http.Request, span tra rerr = multierr.Append(rerr, close()) } }() + req = &AllRequestBodiesOptionalReqEmptyBody{} if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -304,73 +303,66 @@ func (s *Server) decodeAllRequestBodiesOptionalRequest(r *http.Request, span tra var request AllRequestBodiesOptionalApplicationXWwwFormUrlencoded { - var unwrapped OptSimpleObject + var unwrapped SimpleObject + q := uri.NewQueryDecoder(form) { - var optForm SimpleObject - q := uri.NewQueryDecoder(form) - { - cfg := uri.QueryParameterDecodingConfig{ - Name: "name", - Style: uri.QueryStyleForm, - Explode: true, + cfg := uri.QueryParameterDecodingConfig{ + Name: "name", + Style: uri.QueryStyleForm, + Explode: true, + } + if err := q.HasParam(cfg); err == nil { + if err := q.DecodeParam(cfg, func(d uri.Decoder) error { + val, err := d.DecodeValue() + if err != nil { + return err + } + + c, err := conv.ToString(val) + if err != nil { + return err + } + + unwrapped.Name = c + return nil + }); err != nil { + return req, close, errors.Wrap(err, "decode \"name\"") } - if err := q.HasParam(cfg); err == nil { - if err := q.DecodeParam(cfg, func(d uri.Decoder) error { + } else { + return req, close, errors.Wrap(err, "query") + } + } + { + cfg := uri.QueryParameterDecodingConfig{ + Name: "age", + Style: uri.QueryStyleForm, + Explode: true, + } + if err := q.HasParam(cfg); err == nil { + if err := q.DecodeParam(cfg, func(d uri.Decoder) error { + var unwrappedDotAgeVal int + if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToString(val) + c, err := conv.ToInt(val) if err != nil { return err } - optForm.Name = c - return nil - }); err != nil { - return req, close, errors.Wrap(err, "decode \"name\"") - } - } else { - return req, close, errors.Wrap(err, "query") - } - } - { - cfg := uri.QueryParameterDecodingConfig{ - Name: "age", - Style: uri.QueryStyleForm, - Explode: true, - } - if err := q.HasParam(cfg); err == nil { - if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - var optFormDotAgeVal int - if err := func() error { - val, err := d.DecodeValue() - if err != nil { - return err - } - - c, err := conv.ToInt(val) - if err != nil { - return err - } - - optFormDotAgeVal = c - return nil - }(); err != nil { - return err - } - optForm.Age.SetTo(optFormDotAgeVal) + unwrappedDotAgeVal = c return nil - }); err != nil { - return req, close, errors.Wrap(err, "decode \"age\"") + }(); err != nil { + return err } + unwrapped.Age.SetTo(unwrappedDotAgeVal) + return nil + }); err != nil { + return req, close, errors.Wrap(err, "decode \"age\"") } } - unwrapped = OptSimpleObject{ - Value: optForm, - Set: true, - } } request = AllRequestBodiesOptionalApplicationXWwwFormUrlencoded(unwrapped) } @@ -391,73 +383,66 @@ func (s *Server) decodeAllRequestBodiesOptionalRequest(r *http.Request, span tra var request AllRequestBodiesOptionalMultipartFormData { - var unwrapped OptSimpleObject + var unwrapped SimpleObject + q := uri.NewQueryDecoder(form) { - var optForm SimpleObject - q := uri.NewQueryDecoder(form) - { - cfg := uri.QueryParameterDecodingConfig{ - Name: "name", - Style: uri.QueryStyleForm, - Explode: true, + cfg := uri.QueryParameterDecodingConfig{ + Name: "name", + Style: uri.QueryStyleForm, + Explode: true, + } + if err := q.HasParam(cfg); err == nil { + if err := q.DecodeParam(cfg, func(d uri.Decoder) error { + val, err := d.DecodeValue() + if err != nil { + return err + } + + c, err := conv.ToString(val) + if err != nil { + return err + } + + unwrapped.Name = c + return nil + }); err != nil { + return req, close, errors.Wrap(err, "decode \"name\"") } - if err := q.HasParam(cfg); err == nil { - if err := q.DecodeParam(cfg, func(d uri.Decoder) error { + } else { + return req, close, errors.Wrap(err, "query") + } + } + { + cfg := uri.QueryParameterDecodingConfig{ + Name: "age", + Style: uri.QueryStyleForm, + Explode: true, + } + if err := q.HasParam(cfg); err == nil { + if err := q.DecodeParam(cfg, func(d uri.Decoder) error { + var unwrappedDotAgeVal int + if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToString(val) + c, err := conv.ToInt(val) if err != nil { return err } - optForm.Name = c - return nil - }); err != nil { - return req, close, errors.Wrap(err, "decode \"name\"") - } - } else { - return req, close, errors.Wrap(err, "query") - } - } - { - cfg := uri.QueryParameterDecodingConfig{ - Name: "age", - Style: uri.QueryStyleForm, - Explode: true, - } - if err := q.HasParam(cfg); err == nil { - if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - var optFormDotAgeVal int - if err := func() error { - val, err := d.DecodeValue() - if err != nil { - return err - } - - c, err := conv.ToInt(val) - if err != nil { - return err - } - - optFormDotAgeVal = c - return nil - }(); err != nil { - return err - } - optForm.Age.SetTo(optFormDotAgeVal) + unwrappedDotAgeVal = c return nil - }); err != nil { - return req, close, errors.Wrap(err, "decode \"age\"") + }(); err != nil { + return err } + unwrapped.Age.SetTo(unwrappedDotAgeVal) + return nil + }); err != nil { + return req, close, errors.Wrap(err, "decode \"age\"") } } - unwrapped = OptSimpleObject{ - Value: optForm, - Set: true, - } } request = AllRequestBodiesOptionalMultipartFormData(unwrapped) } @@ -490,13 +475,12 @@ func (s *Server) decodeMaskContentTypeRequest(r *http.Request, span trace.Span) rerr = multierr.Append(rerr, close()) } }() - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") } switch { - case ht.MatchContentType("*/*", ct): + case ht.MatchContentType("application/*", ct): request := MaskContentTypeReq{Data: r.Body} wrapped := MaskContentTypeReqWithContentType{ ContentType: ct, @@ -531,13 +515,12 @@ func (s *Server) decodeMaskContentTypeOptionalRequest(r *http.Request, span trac if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { return req, close, nil } - ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") } switch { - case ht.MatchContentType("*/*", ct): + case ht.MatchContentType("application/*", ct): request := MaskContentTypeOptionalReq{Data: r.Body} wrapped := MaskContentTypeOptionalReqWithContentType{ ContentType: ct, diff --git a/internal/test_http_requests/oas_request_encoders_gen.go b/internal/test_http_requests/oas_request_encoders_gen.go index f6d617e72..d5ebfba6a 100644 --- a/internal/test_http_requests/oas_request_encoders_gen.go +++ b/internal/test_http_requests/oas_request_encoders_gen.go @@ -127,12 +127,11 @@ func encodeAllRequestBodiesOptionalRequest( r *http.Request, ) error { switch req := req.(type) { + case *AllRequestBodiesOptionalReqEmptyBody: + // Empty body case. + return nil case *AllRequestBodiesOptionalApplicationJSON: const contentType = "application/json" - if !req.Set { - // Keep request with empty body if value is not set. - return nil - } e := jx.GetEncoder() { req.Encode(e) @@ -146,11 +145,7 @@ func encodeAllRequestBodiesOptionalRequest( return nil case *AllRequestBodiesOptionalApplicationXWwwFormUrlencoded: const contentType = "application/x-www-form-urlencoded" - if !req.Set { - // Keep request with empty body if value is not set. - return nil - } - request := req.Value + request := req q := uri.NewQueryEncoder() { @@ -187,11 +182,7 @@ func encodeAllRequestBodiesOptionalRequest( return nil case *AllRequestBodiesOptionalMultipartFormData: const contentType = "multipart/form-data" - if !req.Set { - // Keep request with empty body if value is not set. - return nil - } - request := req.Value + request := req q := uri.NewQueryEncoder() { @@ -244,8 +235,8 @@ func encodeMaskContentTypeRequest( r *http.Request, ) error { contentType := req.ContentType - if contentType != "" && !ht.MatchContentType("*/*", contentType) { - return errors.Errorf("%q does not match mask %q", contentType, "*/*") + if contentType != "" && !ht.MatchContentType("application/*", contentType) { + return errors.Errorf("%q does not match mask %q", contentType, "application/*") } { req := req.Content @@ -258,8 +249,8 @@ func encodeMaskContentTypeOptionalRequest( r *http.Request, ) error { contentType := req.ContentType - if contentType != "" && !ht.MatchContentType("*/*", contentType) { - return errors.Errorf("%q does not match mask %q", contentType, "*/*") + if contentType != "" && !ht.MatchContentType("application/*", contentType) { + return errors.Errorf("%q does not match mask %q", contentType, "application/*") } { req := req.Content diff --git a/internal/test_http_requests/oas_schemas_gen.go b/internal/test_http_requests/oas_schemas_gen.go index 0ebc133a4..5504f7942 100644 --- a/internal/test_http_requests/oas_schemas_gen.go +++ b/internal/test_http_requests/oas_schemas_gen.go @@ -26,15 +26,15 @@ func (s AllRequestBodiesOK) Read(p []byte) (n int, err error) { return s.Data.Read(p) } -type AllRequestBodiesOptionalApplicationJSON OptSimpleObject +type AllRequestBodiesOptionalApplicationJSON SimpleObject func (*AllRequestBodiesOptionalApplicationJSON) allRequestBodiesOptionalReq() {} -type AllRequestBodiesOptionalApplicationXWwwFormUrlencoded OptSimpleObject +type AllRequestBodiesOptionalApplicationXWwwFormUrlencoded SimpleObject func (*AllRequestBodiesOptionalApplicationXWwwFormUrlencoded) allRequestBodiesOptionalReq() {} -type AllRequestBodiesOptionalMultipartFormData OptSimpleObject +type AllRequestBodiesOptionalMultipartFormData SimpleObject func (*AllRequestBodiesOptionalMultipartFormData) allRequestBodiesOptionalReq() {} @@ -56,6 +56,10 @@ func (s AllRequestBodiesOptionalReqApplicationOctetStream) Read(p []byte) (n int func (*AllRequestBodiesOptionalReqApplicationOctetStream) allRequestBodiesOptionalReq() {} +type AllRequestBodiesOptionalReqEmptyBody struct{} + +func (*AllRequestBodiesOptionalReqEmptyBody) allRequestBodiesOptionalReq() {} + type AllRequestBodiesOptionalReqTextPlain struct { Data io.Reader } @@ -166,52 +170,6 @@ func (o OptInt) Or(d int) int { return d } -// NewOptSimpleObject returns new OptSimpleObject with value set to v. -func NewOptSimpleObject(v SimpleObject) OptSimpleObject { - return OptSimpleObject{ - Value: v, - Set: true, - } -} - -// OptSimpleObject is optional SimpleObject. -type OptSimpleObject struct { - Value SimpleObject - Set bool -} - -// IsSet returns true if OptSimpleObject was set. -func (o OptSimpleObject) IsSet() bool { return o.Set } - -// Reset unsets value. -func (o *OptSimpleObject) Reset() { - var v SimpleObject - o.Value = v - o.Set = false -} - -// SetTo sets value to v. -func (o *OptSimpleObject) SetTo(v SimpleObject) { - o.Set = true - o.Value = v -} - -// Get returns value and boolean that denotes whether value was set. -func (o OptSimpleObject) Get() (v SimpleObject, ok bool) { - if !o.Set { - return v, false - } - return o.Value, true -} - -// Or returns value if set, or given parameter if does not. -func (o OptSimpleObject) Or(d SimpleObject) SimpleObject { - if v, ok := o.Get(); ok { - return v - } - return d -} - // Ref: #/components/schemas/SimpleObject type SimpleObject struct { Name string "json:\"name\""