From 916b9e28a2c3bbaaa749e6259b256668b5d6334f Mon Sep 17 00:00:00 2001 From: tdakkota Date: Wed, 1 Feb 2023 20:24:59 +0300 Subject: [PATCH] chore: commit generated files --- examples/ex_2ch/oas_response_decoders_gen.go | 26 +- examples/ex_ent/oas_request_decoders_gen.go | 20 +- examples/ex_ent/oas_response_decoders_gen.go | 92 +- .../oas_request_decoders_gen.go | 80 +- .../oas_response_decoders_gen.go | 110 +- .../ex_github/oas_request_decoders_gen.go | 740 +- .../ex_github/oas_response_decoders_gen.go | 2772 ++++---- examples/ex_gotd/oas_request_decoders_gen.go | 332 +- examples/ex_gotd/oas_response_decoders_gen.go | 348 +- examples/ex_k8s/oas_response_decoders_gen.go | 822 +-- .../ex_manga/oas_response_decoders_gen.go | 6 +- .../ex_petstore/oas_response_decoders_gen.go | 10 +- .../oas_request_decoders_gen.go | 4 +- .../oas_response_decoders_gen.go | 14 +- .../oas_response_decoders_gen.go | 6 +- .../ex_telegram/oas_request_decoders_gen.go | 312 +- .../ex_telegram/oas_response_decoders_gen.go | 328 +- .../oas_request_decoders_gen.go | 6326 ++++++++--------- .../oas_response_decoders_gen.go | 1652 ++--- .../ex_tinkoff/oas_request_decoders_gen.go | 20 +- .../ex_tinkoff/oas_response_decoders_gen.go | 84 +- .../oas_response_decoders_gen.go | 2 +- .../sample_api/oas_request_decoders_gen.go | 28 +- .../sample_api/oas_response_decoders_gen.go | 50 +- .../sample_api_nc/oas_request_decoders_gen.go | 28 +- .../oas_response_decoders_gen.go | 50 +- .../sample_err/oas_request_decoders_gen.go | 4 +- .../sample_err/oas_response_decoders_gen.go | 8 +- .../techempower/oas_response_decoders_gen.go | 10 +- .../test_allof/oas_request_decoders_gen.go | 32 +- .../test_anyof/oas_response_decoders_gen.go | 6 +- .../oas_request_decoders_gen.go | 8 +- .../oas_response_decoders_gen.go | 4 +- .../oas_response_decoders_gen.go | 2 +- .../test_form/oas_request_decoders_gen.go | 4 +- .../test_form/oas_response_decoders_gen.go | 2 +- .../test_http_requests/oas_client_gen.go | 97 + .../test_http_requests/oas_handlers_gen.go | 98 + .../oas_request_decoders_gen.go | 93 +- .../oas_request_encoders_gen.go | 33 +- .../oas_response_decoders_gen.go | 47 +- .../oas_response_encoders_gen.go | 13 + .../test_http_requests/oas_router_gen.go | 39 + .../test_http_requests/oas_server_gen.go | 4 + .../oas_unimplemented_gen.go | 7 + .../test_http_responses/oas_client_gen.go | 84 + .../test_http_responses/oas_handlers_gen.go | 98 + .../test_http_responses/oas_interfaces_gen.go | 4 + .../test_http_responses/oas_json_gen.go | 149 + .../test_http_responses/oas_parameters_gen.go | 57 + .../oas_response_decoders_gen.go | 88 +- .../oas_response_encoders_gen.go | 31 + .../test_http_responses/oas_router_gen.go | 39 + .../test_http_responses/oas_schemas_gen.go | 21 + .../test_http_responses/oas_server_gen.go | 4 + .../oas_unimplemented_gen.go | 7 + .../test_http_responses/oas_validators_gen.go | 23 + .../oas_response_decoders_gen.go | 8 +- .../test_servers/oas_response_decoders_gen.go | 4 +- .../oas_response_decoders_gen.go | 4 +- .../test_webhooks/oas_request_decoders_gen.go | 8 +- .../oas_response_decoders_gen.go | 12 +- 62 files changed, 8209 insertions(+), 7205 deletions(-) diff --git a/examples/ex_2ch/oas_response_decoders_gen.go b/examples/ex_2ch/oas_response_decoders_gen.go index b6f5e99ba..58a6c2cd3 100644 --- a/examples/ex_2ch/oas_response_decoders_gen.go +++ b/examples/ex_2ch/oas_response_decoders_gen.go @@ -28,8 +28,8 @@ func decodeAPICaptcha2chcaptchaIDGetResponse(resp *http.Response) (res *Captcha, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Captcha if err := func() error { if err := response.Decode(d); err != nil { @@ -81,8 +81,8 @@ func decodeAPICaptchaAppIDPublicKeyGetResponse(resp *http.Response) (res *Captch if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Captcha if err := func() error { if err := response.Decode(d); err != nil { @@ -122,8 +122,8 @@ func decodeAPICaptchaInvisibleRecaptchaIDGetResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Captcha if err := func() error { if err := response.Decode(d); err != nil { @@ -172,8 +172,8 @@ func decodeAPICaptchaRecaptchaIDGetResponse(resp *http.Response) (res *Captcha, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Captcha if err := func() error { if err := response.Decode(d); err != nil { @@ -222,8 +222,8 @@ func decodeAPIDislikeGetResponse(resp *http.Response) (res *Like, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Like if err := func() error { if err := response.Decode(d); err != nil { @@ -263,8 +263,8 @@ func decodeAPILikeGetResponse(resp *http.Response) (res *Like, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Like if err := func() error { if err := response.Decode(d); err != nil { @@ -304,8 +304,8 @@ func decodeAPIMobileV2AfterBoardThreadNumGetResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MobileThreadPostsAfter if err := func() error { if err := response.Decode(d); err != nil { @@ -345,8 +345,8 @@ func decodeAPIMobileV2BoardsGetResponse(resp *http.Response) (res Boards, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Boards if err := func() error { if err := response.Decode(d); err != nil { @@ -386,8 +386,8 @@ func decodeAPIMobileV2InfoBoardThreadGetResponse(resp *http.Response) (res *Mobi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MobileThreadLastInfo if err := func() error { if err := response.Decode(d); err != nil { @@ -427,8 +427,8 @@ func decodeAPIMobileV2PostBoardNumGetResponse(resp *http.Response) (res *MobileP if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MobilePost if err := func() error { if err := response.Decode(d); err != nil { @@ -468,8 +468,8 @@ func decodeUserPassloginPostResponse(resp *http.Response) (res *Passcode, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Passcode if err := func() error { if err := response.Decode(d); err != nil { @@ -509,8 +509,8 @@ func decodeUserPostingPostResponse(resp *http.Response) (res UserPostingPostOK, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UserPostingPostOK if err := func() error { if err := response.Decode(d); err != nil { @@ -550,8 +550,8 @@ func decodeUserReportPostResponse(resp *http.Response) (res *Report, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Report if err := func() error { if err := response.Decode(d); err != nil { diff --git a/examples/ex_ent/oas_request_decoders_gen.go b/examples/ex_ent/oas_request_decoders_gen.go index 68fec4848..f8fcdecf5 100644 --- a/examples/ex_ent/oas_request_decoders_gen.go +++ b/examples/ex_ent/oas_request_decoders_gen.go @@ -44,8 +44,6 @@ func (s *Server) decodeCreatePetRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request CreatePetReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56,6 +54,8 @@ func (s *Server) decodeCreatePetRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request CreatePetReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -107,8 +107,6 @@ func (s *Server) decodeCreatePetCategoriesRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request CreatePetCategoriesReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -119,6 +117,8 @@ func (s *Server) decodeCreatePetCategoriesRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request CreatePetCategoriesReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -170,8 +170,6 @@ func (s *Server) decodeCreatePetFriendsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request CreatePetFriendsReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -182,6 +180,8 @@ func (s *Server) decodeCreatePetFriendsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request CreatePetFriendsReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -233,8 +233,6 @@ func (s *Server) decodeCreatePetOwnerRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request CreatePetOwnerReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -245,6 +243,8 @@ func (s *Server) decodeCreatePetOwnerRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request CreatePetOwnerReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -296,8 +296,6 @@ func (s *Server) decodeUpdatePetRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request UpdatePetReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -308,6 +306,8 @@ func (s *Server) decodeUpdatePetRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request UpdatePetReq if err := func() error { if err := request.Decode(d); err != nil { return err diff --git a/examples/ex_ent/oas_response_decoders_gen.go b/examples/ex_ent/oas_response_decoders_gen.go index d5ea60d06..a91cab78d 100644 --- a/examples/ex_ent/oas_response_decoders_gen.go +++ b/examples/ex_ent/oas_response_decoders_gen.go @@ -28,8 +28,8 @@ func decodeCreatePetResponse(resp *http.Response) (res CreatePetRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PetCreate if err := func() error { if err := response.Decode(d); err != nil { @@ -63,8 +63,8 @@ func decodeCreatePetResponse(resp *http.Response) (res CreatePetRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R400 if err := func() error { if err := response.Decode(d); err != nil { @@ -98,8 +98,8 @@ func decodeCreatePetResponse(resp *http.Response) (res CreatePetRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R409 if err := func() error { if err := response.Decode(d); err != nil { @@ -133,8 +133,8 @@ func decodeCreatePetResponse(resp *http.Response) (res CreatePetRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R500 if err := func() error { if err := response.Decode(d); err != nil { @@ -174,8 +174,8 @@ func decodeCreatePetCategoriesResponse(resp *http.Response) (res CreatePetCatego if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PetCategoriesCreate if err := func() error { if err := response.Decode(d); err != nil { @@ -209,8 +209,8 @@ func decodeCreatePetCategoriesResponse(resp *http.Response) (res CreatePetCatego if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R400 if err := func() error { if err := response.Decode(d); err != nil { @@ -244,8 +244,8 @@ func decodeCreatePetCategoriesResponse(resp *http.Response) (res CreatePetCatego if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R409 if err := func() error { if err := response.Decode(d); err != nil { @@ -279,8 +279,8 @@ func decodeCreatePetCategoriesResponse(resp *http.Response) (res CreatePetCatego if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R500 if err := func() error { if err := response.Decode(d); err != nil { @@ -320,8 +320,8 @@ func decodeCreatePetFriendsResponse(resp *http.Response) (res CreatePetFriendsRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PetFriendsCreate if err := func() error { if err := response.Decode(d); err != nil { @@ -355,8 +355,8 @@ func decodeCreatePetFriendsResponse(resp *http.Response) (res CreatePetFriendsRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R400 if err := func() error { if err := response.Decode(d); err != nil { @@ -390,8 +390,8 @@ func decodeCreatePetFriendsResponse(resp *http.Response) (res CreatePetFriendsRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R409 if err := func() error { if err := response.Decode(d); err != nil { @@ -425,8 +425,8 @@ func decodeCreatePetFriendsResponse(resp *http.Response) (res CreatePetFriendsRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R500 if err := func() error { if err := response.Decode(d); err != nil { @@ -466,8 +466,8 @@ func decodeCreatePetOwnerResponse(resp *http.Response) (res CreatePetOwnerRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PetOwnerCreate if err := func() error { if err := response.Decode(d); err != nil { @@ -501,8 +501,8 @@ func decodeCreatePetOwnerResponse(resp *http.Response) (res CreatePetOwnerRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R400 if err := func() error { if err := response.Decode(d); err != nil { @@ -536,8 +536,8 @@ func decodeCreatePetOwnerResponse(resp *http.Response) (res CreatePetOwnerRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R409 if err := func() error { if err := response.Decode(d); err != nil { @@ -571,8 +571,8 @@ func decodeCreatePetOwnerResponse(resp *http.Response) (res CreatePetOwnerRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R500 if err := func() error { if err := response.Decode(d); err != nil { @@ -615,8 +615,8 @@ func decodeDeletePetResponse(resp *http.Response) (res DeletePetRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R400 if err := func() error { if err := response.Decode(d); err != nil { @@ -650,8 +650,8 @@ func decodeDeletePetResponse(resp *http.Response) (res DeletePetRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R404 if err := func() error { if err := response.Decode(d); err != nil { @@ -685,8 +685,8 @@ func decodeDeletePetResponse(resp *http.Response) (res DeletePetRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R500 if err := func() error { if err := response.Decode(d); err != nil { @@ -729,8 +729,8 @@ func decodeDeletePetOwnerResponse(resp *http.Response) (res DeletePetOwnerRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R400 if err := func() error { if err := response.Decode(d); err != nil { @@ -764,8 +764,8 @@ func decodeDeletePetOwnerResponse(resp *http.Response) (res DeletePetOwnerRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R404 if err := func() error { if err := response.Decode(d); err != nil { @@ -799,8 +799,8 @@ func decodeDeletePetOwnerResponse(resp *http.Response) (res DeletePetOwnerRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R500 if err := func() error { if err := response.Decode(d); err != nil { @@ -840,8 +840,8 @@ func decodeListPetResponse(resp *http.Response) (res ListPetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ListPetOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -875,8 +875,8 @@ func decodeListPetResponse(resp *http.Response) (res ListPetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R400 if err := func() error { if err := response.Decode(d); err != nil { @@ -910,8 +910,8 @@ func decodeListPetResponse(resp *http.Response) (res ListPetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R404 if err := func() error { if err := response.Decode(d); err != nil { @@ -945,8 +945,8 @@ func decodeListPetResponse(resp *http.Response) (res ListPetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R500 if err := func() error { if err := response.Decode(d); err != nil { @@ -986,8 +986,8 @@ func decodeListPetCategoriesResponse(resp *http.Response) (res ListPetCategories if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ListPetCategoriesOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -1021,8 +1021,8 @@ func decodeListPetCategoriesResponse(resp *http.Response) (res ListPetCategories if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R400 if err := func() error { if err := response.Decode(d); err != nil { @@ -1056,8 +1056,8 @@ func decodeListPetCategoriesResponse(resp *http.Response) (res ListPetCategories if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R404 if err := func() error { if err := response.Decode(d); err != nil { @@ -1091,8 +1091,8 @@ func decodeListPetCategoriesResponse(resp *http.Response) (res ListPetCategories if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R500 if err := func() error { if err := response.Decode(d); err != nil { @@ -1132,8 +1132,8 @@ func decodeListPetFriendsResponse(resp *http.Response) (res ListPetFriendsRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ListPetFriendsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -1167,8 +1167,8 @@ func decodeListPetFriendsResponse(resp *http.Response) (res ListPetFriendsRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R400 if err := func() error { if err := response.Decode(d); err != nil { @@ -1202,8 +1202,8 @@ func decodeListPetFriendsResponse(resp *http.Response) (res ListPetFriendsRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R404 if err := func() error { if err := response.Decode(d); err != nil { @@ -1237,8 +1237,8 @@ func decodeListPetFriendsResponse(resp *http.Response) (res ListPetFriendsRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R500 if err := func() error { if err := response.Decode(d); err != nil { @@ -1278,8 +1278,8 @@ func decodeReadPetResponse(resp *http.Response) (res ReadPetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PetRead if err := func() error { if err := response.Decode(d); err != nil { @@ -1313,8 +1313,8 @@ func decodeReadPetResponse(resp *http.Response) (res ReadPetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R400 if err := func() error { if err := response.Decode(d); err != nil { @@ -1348,8 +1348,8 @@ func decodeReadPetResponse(resp *http.Response) (res ReadPetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R404 if err := func() error { if err := response.Decode(d); err != nil { @@ -1383,8 +1383,8 @@ func decodeReadPetResponse(resp *http.Response) (res ReadPetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R500 if err := func() error { if err := response.Decode(d); err != nil { @@ -1424,8 +1424,8 @@ func decodeReadPetOwnerResponse(resp *http.Response) (res ReadPetOwnerRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PetOwnerRead if err := func() error { if err := response.Decode(d); err != nil { @@ -1459,8 +1459,8 @@ func decodeReadPetOwnerResponse(resp *http.Response) (res ReadPetOwnerRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R400 if err := func() error { if err := response.Decode(d); err != nil { @@ -1494,8 +1494,8 @@ func decodeReadPetOwnerResponse(resp *http.Response) (res ReadPetOwnerRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R404 if err := func() error { if err := response.Decode(d); err != nil { @@ -1529,8 +1529,8 @@ func decodeReadPetOwnerResponse(resp *http.Response) (res ReadPetOwnerRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R500 if err := func() error { if err := response.Decode(d); err != nil { @@ -1570,8 +1570,8 @@ func decodeUpdatePetResponse(resp *http.Response) (res UpdatePetRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PetUpdate if err := func() error { if err := response.Decode(d); err != nil { @@ -1605,8 +1605,8 @@ func decodeUpdatePetResponse(resp *http.Response) (res UpdatePetRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R400 if err := func() error { if err := response.Decode(d); err != nil { @@ -1640,8 +1640,8 @@ func decodeUpdatePetResponse(resp *http.Response) (res UpdatePetRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R404 if err := func() error { if err := response.Decode(d); err != nil { @@ -1675,8 +1675,8 @@ func decodeUpdatePetResponse(resp *http.Response) (res UpdatePetRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response R500 if err := func() error { if err := response.Decode(d); err != nil { diff --git a/examples/ex_firecracker/oas_request_decoders_gen.go b/examples/ex_firecracker/oas_request_decoders_gen.go index ecbc9b4e0..3bf9101fc 100644 --- a/examples/ex_firecracker/oas_request_decoders_gen.go +++ b/examples/ex_firecracker/oas_request_decoders_gen.go @@ -44,8 +44,6 @@ func (s *Server) decodeCreateSnapshotRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SnapshotCreateParams buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56,6 +54,8 @@ func (s *Server) decodeCreateSnapshotRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SnapshotCreateParams if err := func() error { if err := request.Decode(d); err != nil { return err @@ -115,8 +115,6 @@ func (s *Server) decodeCreateSyncActionRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request InstanceActionInfo buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -127,6 +125,8 @@ func (s *Server) decodeCreateSyncActionRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request InstanceActionInfo if err := func() error { if err := request.Decode(d); err != nil { return err @@ -186,8 +186,6 @@ func (s *Server) decodeLoadSnapshotRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SnapshotLoadParams buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -198,6 +196,8 @@ func (s *Server) decodeLoadSnapshotRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SnapshotLoadParams if err := func() error { if err := request.Decode(d); err != nil { return err @@ -249,8 +249,6 @@ func (s *Server) decodeMmdsConfigPutRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request MmdsConfig buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -261,6 +259,8 @@ func (s *Server) decodeMmdsConfigPutRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request MmdsConfig if err := func() error { if err := request.Decode(d); err != nil { return err @@ -315,8 +315,6 @@ func (s *Server) decodeMmdsPatchRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request *MmdsPatchReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -327,6 +325,8 @@ func (s *Server) decodeMmdsPatchRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request *MmdsPatchReq if err := func() error { request = nil var elem MmdsPatchReq @@ -384,8 +384,6 @@ func (s *Server) decodeMmdsPutRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request *MmdsPutReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -396,6 +394,8 @@ func (s *Server) decodeMmdsPutRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request *MmdsPutReq if err := func() error { request = nil var elem MmdsPutReq @@ -450,8 +450,6 @@ func (s *Server) decodePatchBalloonRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request BalloonUpdate buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -462,6 +460,8 @@ func (s *Server) decodePatchBalloonRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request BalloonUpdate if err := func() error { if err := request.Decode(d); err != nil { return err @@ -513,8 +513,6 @@ func (s *Server) decodePatchBalloonStatsIntervalRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request BalloonStatsUpdate buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -525,6 +523,8 @@ func (s *Server) decodePatchBalloonStatsIntervalRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request BalloonStatsUpdate if err := func() error { if err := request.Decode(d); err != nil { return err @@ -576,8 +576,6 @@ func (s *Server) decodePatchGuestDriveByIDRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request PartialDrive buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -588,6 +586,8 @@ func (s *Server) decodePatchGuestDriveByIDRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request PartialDrive if err := func() error { if err := request.Decode(d); err != nil { return err @@ -647,8 +647,6 @@ func (s *Server) decodePatchGuestNetworkInterfaceByIDRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request PartialNetworkInterface buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -659,6 +657,8 @@ func (s *Server) decodePatchGuestNetworkInterfaceByIDRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request PartialNetworkInterface if err := func() error { if err := request.Decode(d); err != nil { return err @@ -721,8 +721,6 @@ func (s *Server) decodePatchMachineConfigurationRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptMachineConfiguration buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -733,6 +731,8 @@ func (s *Server) decodePatchMachineConfigurationRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptMachineConfiguration if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -800,8 +800,6 @@ func (s *Server) decodePatchVmRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request VM buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -812,6 +810,8 @@ func (s *Server) decodePatchVmRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request VM if err := func() error { if err := request.Decode(d); err != nil { return err @@ -871,8 +871,6 @@ func (s *Server) decodePutBalloonRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request Balloon buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -883,6 +881,8 @@ func (s *Server) decodePutBalloonRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request Balloon if err := func() error { if err := request.Decode(d); err != nil { return err @@ -934,8 +934,6 @@ func (s *Server) decodePutGuestBootSourceRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request BootSource buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -946,6 +944,8 @@ func (s *Server) decodePutGuestBootSourceRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request BootSource if err := func() error { if err := request.Decode(d); err != nil { return err @@ -997,8 +997,6 @@ func (s *Server) decodePutGuestDriveByIDRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request Drive buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1009,6 +1007,8 @@ func (s *Server) decodePutGuestDriveByIDRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request Drive if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1068,8 +1068,6 @@ func (s *Server) decodePutGuestNetworkInterfaceByIDRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NetworkInterface buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1080,6 +1078,8 @@ func (s *Server) decodePutGuestNetworkInterfaceByIDRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request NetworkInterface if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1139,8 +1139,6 @@ func (s *Server) decodePutGuestVsockRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request Vsock buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1151,6 +1149,8 @@ func (s *Server) decodePutGuestVsockRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request Vsock if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1210,8 +1210,6 @@ func (s *Server) decodePutLoggerRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request Logger buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1222,6 +1220,8 @@ func (s *Server) decodePutLoggerRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request Logger if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1284,8 +1284,6 @@ func (s *Server) decodePutMachineConfigurationRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptMachineConfiguration buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1296,6 +1294,8 @@ func (s *Server) decodePutMachineConfigurationRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptMachineConfiguration if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -1363,8 +1363,6 @@ func (s *Server) decodePutMetricsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request Metrics buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1375,6 +1373,8 @@ func (s *Server) decodePutMetricsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request Metrics if err := func() error { if err := request.Decode(d); err != nil { return err diff --git a/examples/ex_firecracker/oas_response_decoders_gen.go b/examples/ex_firecracker/oas_response_decoders_gen.go index 52808d5cd..712aefde7 100644 --- a/examples/ex_firecracker/oas_response_decoders_gen.go +++ b/examples/ex_firecracker/oas_response_decoders_gen.go @@ -31,8 +31,8 @@ func decodeCreateSnapshotResponse(resp *http.Response) (res CreateSnapshotRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -66,8 +66,8 @@ func decodeCreateSnapshotResponse(resp *http.Response) (res CreateSnapshotRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -111,8 +111,8 @@ func decodeCreateSyncActionResponse(resp *http.Response) (res CreateSyncActionRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -146,8 +146,8 @@ func decodeCreateSyncActionResponse(resp *http.Response) (res CreateSyncActionRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -188,8 +188,8 @@ func decodeDescribeBalloonConfigResponse(resp *http.Response) (res DescribeBallo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Balloon if err := func() error { if err := response.Decode(d); err != nil { @@ -223,8 +223,8 @@ func decodeDescribeBalloonConfigResponse(resp *http.Response) (res DescribeBallo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -258,8 +258,8 @@ func decodeDescribeBalloonConfigResponse(resp *http.Response) (res DescribeBallo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -300,8 +300,8 @@ func decodeDescribeBalloonStatsResponse(resp *http.Response) (res DescribeBalloo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BalloonStats if err := func() error { if err := response.Decode(d); err != nil { @@ -335,8 +335,8 @@ func decodeDescribeBalloonStatsResponse(resp *http.Response) (res DescribeBalloo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -370,8 +370,8 @@ func decodeDescribeBalloonStatsResponse(resp *http.Response) (res DescribeBalloo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -412,8 +412,8 @@ func decodeDescribeInstanceResponse(resp *http.Response) (res DescribeInstanceRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response InstanceInfo if err := func() error { if err := response.Decode(d); err != nil { @@ -447,8 +447,8 @@ func decodeDescribeInstanceResponse(resp *http.Response) (res DescribeInstanceRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -489,8 +489,8 @@ func decodeGetExportVmConfigResponse(resp *http.Response) (res GetExportVmConfig if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response FullVmConfiguration if err := func() error { if err := response.Decode(d); err != nil { @@ -524,8 +524,8 @@ func decodeGetExportVmConfigResponse(resp *http.Response) (res GetExportVmConfig if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -566,8 +566,8 @@ func decodeGetMachineConfigurationResponse(resp *http.Response) (res GetMachineC if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MachineConfiguration if err := func() error { if err := response.Decode(d); err != nil { @@ -601,8 +601,8 @@ func decodeGetMachineConfigurationResponse(resp *http.Response) (res GetMachineC if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -646,8 +646,8 @@ func decodeLoadSnapshotResponse(resp *http.Response) (res LoadSnapshotRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -681,8 +681,8 @@ func decodeLoadSnapshotResponse(resp *http.Response) (res LoadSnapshotRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -726,8 +726,8 @@ func decodeMmdsConfigPutResponse(resp *http.Response) (res MmdsConfigPutRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -761,8 +761,8 @@ func decodeMmdsConfigPutResponse(resp *http.Response) (res MmdsConfigPutRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -803,8 +803,8 @@ func decodeMmdsGetResponse(resp *http.Response) (res MmdsGetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MmdsGetOK if err := func() error { if err := response.Decode(d); err != nil { @@ -838,8 +838,8 @@ func decodeMmdsGetResponse(resp *http.Response) (res MmdsGetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -873,8 +873,8 @@ func decodeMmdsGetResponse(resp *http.Response) (res MmdsGetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -918,8 +918,8 @@ func decodeMmdsPatchResponse(resp *http.Response) (res MmdsPatchRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -953,8 +953,8 @@ func decodeMmdsPatchResponse(resp *http.Response) (res MmdsPatchRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -998,8 +998,8 @@ func decodeMmdsPutResponse(resp *http.Response) (res MmdsPutRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1033,8 +1033,8 @@ func decodeMmdsPutResponse(resp *http.Response) (res MmdsPutRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1078,8 +1078,8 @@ func decodePatchBalloonResponse(resp *http.Response) (res PatchBalloonRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1113,8 +1113,8 @@ func decodePatchBalloonResponse(resp *http.Response) (res PatchBalloonRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1158,8 +1158,8 @@ func decodePatchBalloonStatsIntervalResponse(resp *http.Response) (res PatchBall if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1193,8 +1193,8 @@ func decodePatchBalloonStatsIntervalResponse(resp *http.Response) (res PatchBall if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1238,8 +1238,8 @@ func decodePatchGuestDriveByIDResponse(resp *http.Response) (res PatchGuestDrive if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1273,8 +1273,8 @@ func decodePatchGuestDriveByIDResponse(resp *http.Response) (res PatchGuestDrive if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1318,8 +1318,8 @@ func decodePatchGuestNetworkInterfaceByIDResponse(resp *http.Response) (res Patc if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1353,8 +1353,8 @@ func decodePatchGuestNetworkInterfaceByIDResponse(resp *http.Response) (res Patc if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1398,8 +1398,8 @@ func decodePatchMachineConfigurationResponse(resp *http.Response) (res PatchMach if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1433,8 +1433,8 @@ func decodePatchMachineConfigurationResponse(resp *http.Response) (res PatchMach if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1478,8 +1478,8 @@ func decodePatchVmResponse(resp *http.Response) (res PatchVmRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1513,8 +1513,8 @@ func decodePatchVmResponse(resp *http.Response) (res PatchVmRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1558,8 +1558,8 @@ func decodePutBalloonResponse(resp *http.Response) (res PutBalloonRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1593,8 +1593,8 @@ func decodePutBalloonResponse(resp *http.Response) (res PutBalloonRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1638,8 +1638,8 @@ func decodePutGuestBootSourceResponse(resp *http.Response) (res PutGuestBootSour if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1673,8 +1673,8 @@ func decodePutGuestBootSourceResponse(resp *http.Response) (res PutGuestBootSour if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1718,8 +1718,8 @@ func decodePutGuestDriveByIDResponse(resp *http.Response) (res PutGuestDriveByID if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1753,8 +1753,8 @@ func decodePutGuestDriveByIDResponse(resp *http.Response) (res PutGuestDriveByID if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1798,8 +1798,8 @@ func decodePutGuestNetworkInterfaceByIDResponse(resp *http.Response) (res PutGue if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1833,8 +1833,8 @@ func decodePutGuestNetworkInterfaceByIDResponse(resp *http.Response) (res PutGue if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1878,8 +1878,8 @@ func decodePutGuestVsockResponse(resp *http.Response) (res PutGuestVsockRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1913,8 +1913,8 @@ func decodePutGuestVsockResponse(resp *http.Response) (res PutGuestVsockRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1958,8 +1958,8 @@ func decodePutLoggerResponse(resp *http.Response) (res PutLoggerRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1993,8 +1993,8 @@ func decodePutLoggerResponse(resp *http.Response) (res PutLoggerRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2038,8 +2038,8 @@ func decodePutMachineConfigurationResponse(resp *http.Response) (res PutMachineC if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2073,8 +2073,8 @@ func decodePutMachineConfigurationResponse(resp *http.Response) (res PutMachineC if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2118,8 +2118,8 @@ func decodePutMetricsResponse(resp *http.Response) (res PutMetricsRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2153,8 +2153,8 @@ func decodePutMetricsResponse(resp *http.Response) (res PutMetricsRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { diff --git a/examples/ex_github/oas_request_decoders_gen.go b/examples/ex_github/oas_request_decoders_gen.go index 2d4904ae2..34f519a57 100644 --- a/examples/ex_github/oas_request_decoders_gen.go +++ b/examples/ex_github/oas_request_decoders_gen.go @@ -45,8 +45,6 @@ func (s *Server) decodeActionsCreateOrUpdateEnvironmentSecretRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ActionsCreateOrUpdateEnvironmentSecretReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -57,6 +55,8 @@ func (s *Server) decodeActionsCreateOrUpdateEnvironmentSecretRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request ActionsCreateOrUpdateEnvironmentSecretReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -116,8 +116,6 @@ func (s *Server) decodeActionsCreateOrUpdateOrgSecretRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ActionsCreateOrUpdateOrgSecretReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -128,6 +126,8 @@ func (s *Server) decodeActionsCreateOrUpdateOrgSecretRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ActionsCreateOrUpdateOrgSecretReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -187,8 +187,6 @@ func (s *Server) decodeActionsCreateOrUpdateRepoSecretRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ActionsCreateOrUpdateRepoSecretReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -199,6 +197,8 @@ func (s *Server) decodeActionsCreateOrUpdateRepoSecretRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ActionsCreateOrUpdateRepoSecretReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -258,8 +258,6 @@ func (s *Server) decodeActionsCreateSelfHostedRunnerGroupForOrgRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ActionsCreateSelfHostedRunnerGroupForOrgReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -270,6 +268,8 @@ func (s *Server) decodeActionsCreateSelfHostedRunnerGroupForOrgRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request ActionsCreateSelfHostedRunnerGroupForOrgReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -329,8 +329,6 @@ func (s *Server) decodeActionsReviewPendingDeploymentsForRunRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ActionsReviewPendingDeploymentsForRunReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -341,6 +339,8 @@ func (s *Server) decodeActionsReviewPendingDeploymentsForRunRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request ActionsReviewPendingDeploymentsForRunReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -403,8 +403,6 @@ func (s *Server) decodeActionsSetAllowedActionsOrganizationRequest(r *http.Reque if r.ContentLength == 0 { return req, close, nil } - - var request OptSelectedActions buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -415,6 +413,8 @@ func (s *Server) decodeActionsSetAllowedActionsOrganizationRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request OptSelectedActions if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -470,8 +470,6 @@ func (s *Server) decodeActionsSetAllowedActionsRepositoryRequest(r *http.Request if r.ContentLength == 0 { return req, close, nil } - - var request OptSelectedActions buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -482,6 +480,8 @@ func (s *Server) decodeActionsSetAllowedActionsRepositoryRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request OptSelectedActions if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -534,8 +534,6 @@ func (s *Server) decodeActionsSetGithubActionsPermissionsOrganizationRequest(r * if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ActionsSetGithubActionsPermissionsOrganizationReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -546,6 +544,8 @@ func (s *Server) decodeActionsSetGithubActionsPermissionsOrganizationRequest(r * } d := jx.DecodeBytes(buf) + + var request ActionsSetGithubActionsPermissionsOrganizationReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -605,8 +605,6 @@ func (s *Server) decodeActionsSetGithubActionsPermissionsRepositoryRequest(r *ht if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ActionsSetGithubActionsPermissionsRepositoryReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -617,6 +615,8 @@ func (s *Server) decodeActionsSetGithubActionsPermissionsRepositoryRequest(r *ht } d := jx.DecodeBytes(buf) + + var request ActionsSetGithubActionsPermissionsRepositoryReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -676,8 +676,6 @@ func (s *Server) decodeActionsSetRepoAccessToSelfHostedRunnerGroupInOrgRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -688,6 +686,8 @@ func (s *Server) decodeActionsSetRepoAccessToSelfHostedRunnerGroupInOrgRequest(r } d := jx.DecodeBytes(buf) + + var request ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -747,8 +747,6 @@ func (s *Server) decodeActionsSetSelectedReposForOrgSecretRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ActionsSetSelectedReposForOrgSecretReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -759,6 +757,8 @@ func (s *Server) decodeActionsSetSelectedReposForOrgSecretRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request ActionsSetSelectedReposForOrgSecretReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -818,8 +818,6 @@ func (s *Server) decodeActionsSetSelectedRepositoriesEnabledGithubActionsOrganiz if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -830,6 +828,8 @@ func (s *Server) decodeActionsSetSelectedRepositoriesEnabledGithubActionsOrganiz } d := jx.DecodeBytes(buf) + + var request ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -889,8 +889,6 @@ func (s *Server) decodeActionsSetSelfHostedRunnersInGroupForOrgRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ActionsSetSelfHostedRunnersInGroupForOrgReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -901,6 +899,8 @@ func (s *Server) decodeActionsSetSelfHostedRunnersInGroupForOrgRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request ActionsSetSelfHostedRunnersInGroupForOrgReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -960,8 +960,6 @@ func (s *Server) decodeActionsUpdateSelfHostedRunnerGroupForOrgRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ActionsUpdateSelfHostedRunnerGroupForOrgReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -972,6 +970,8 @@ func (s *Server) decodeActionsUpdateSelfHostedRunnerGroupForOrgRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request ActionsUpdateSelfHostedRunnerGroupForOrgReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1034,8 +1034,6 @@ func (s *Server) decodeActivityMarkNotificationsAsReadRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptActivityMarkNotificationsAsReadReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1046,6 +1044,8 @@ func (s *Server) decodeActivityMarkNotificationsAsReadRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptActivityMarkNotificationsAsReadReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -1101,8 +1101,6 @@ func (s *Server) decodeActivityMarkRepoNotificationsAsReadRequest(r *http.Reques if r.ContentLength == 0 { return req, close, nil } - - var request OptActivityMarkRepoNotificationsAsReadReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1113,6 +1111,8 @@ func (s *Server) decodeActivityMarkRepoNotificationsAsReadRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request OptActivityMarkRepoNotificationsAsReadReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -1168,8 +1168,6 @@ func (s *Server) decodeActivitySetRepoSubscriptionRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptActivitySetRepoSubscriptionReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1180,6 +1178,8 @@ func (s *Server) decodeActivitySetRepoSubscriptionRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptActivitySetRepoSubscriptionReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -1235,8 +1235,6 @@ func (s *Server) decodeActivitySetThreadSubscriptionRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptActivitySetThreadSubscriptionReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1247,6 +1245,8 @@ func (s *Server) decodeActivitySetThreadSubscriptionRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptActivitySetThreadSubscriptionReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -1299,8 +1299,6 @@ func (s *Server) decodeAppsCheckTokenRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request AppsCheckTokenReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1311,6 +1309,8 @@ func (s *Server) decodeAppsCheckTokenRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request AppsCheckTokenReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1362,8 +1362,6 @@ func (s *Server) decodeAppsCreateContentAttachmentRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request AppsCreateContentAttachmentReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1374,6 +1372,8 @@ func (s *Server) decodeAppsCreateContentAttachmentRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request AppsCreateContentAttachmentReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1436,8 +1436,6 @@ func (s *Server) decodeAppsCreateFromManifestRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request *AppsCreateFromManifestReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1448,6 +1446,8 @@ func (s *Server) decodeAppsCreateFromManifestRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request *AppsCreateFromManifestReq if err := func() error { request = nil var elem AppsCreateFromManifestReq @@ -1505,8 +1505,6 @@ func (s *Server) decodeAppsCreateInstallationAccessTokenRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request OptAppsCreateInstallationAccessTokenReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1517,6 +1515,8 @@ func (s *Server) decodeAppsCreateInstallationAccessTokenRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request OptAppsCreateInstallationAccessTokenReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -1584,8 +1584,6 @@ func (s *Server) decodeAppsDeleteAuthorizationRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request AppsDeleteAuthorizationReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1596,6 +1594,8 @@ func (s *Server) decodeAppsDeleteAuthorizationRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request AppsDeleteAuthorizationReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1647,8 +1647,6 @@ func (s *Server) decodeAppsDeleteTokenRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request AppsDeleteTokenReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1659,6 +1657,8 @@ func (s *Server) decodeAppsDeleteTokenRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request AppsDeleteTokenReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1710,8 +1710,6 @@ func (s *Server) decodeAppsResetTokenRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request AppsResetTokenReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1722,6 +1720,8 @@ func (s *Server) decodeAppsResetTokenRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request AppsResetTokenReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1773,8 +1773,6 @@ func (s *Server) decodeAppsScopeTokenRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request AppsScopeTokenReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1785,6 +1783,8 @@ func (s *Server) decodeAppsScopeTokenRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request AppsScopeTokenReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1847,8 +1847,6 @@ func (s *Server) decodeAppsUpdateWebhookConfigForAppRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptAppsUpdateWebhookConfigForAppReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1859,6 +1857,8 @@ func (s *Server) decodeAppsUpdateWebhookConfigForAppRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptAppsUpdateWebhookConfigForAppReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -1926,8 +1926,6 @@ func (s *Server) decodeChecksCreateSuiteRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ChecksCreateSuiteReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1938,6 +1936,8 @@ func (s *Server) decodeChecksCreateSuiteRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ChecksCreateSuiteReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1989,8 +1989,6 @@ func (s *Server) decodeChecksSetSuitesPreferencesRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ChecksSetSuitesPreferencesReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2001,6 +1999,8 @@ func (s *Server) decodeChecksSetSuitesPreferencesRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ChecksSetSuitesPreferencesReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2052,8 +2052,6 @@ func (s *Server) decodeCodeScanningUpdateAlertRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request CodeScanningUpdateAlertReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2064,6 +2062,8 @@ func (s *Server) decodeCodeScanningUpdateAlertRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request CodeScanningUpdateAlertReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2123,8 +2123,6 @@ func (s *Server) decodeCodeScanningUploadSarifRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request CodeScanningUploadSarifReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2135,6 +2133,8 @@ func (s *Server) decodeCodeScanningUploadSarifRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request CodeScanningUploadSarifReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2194,8 +2194,6 @@ func (s *Server) decodeEnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseRe if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2206,6 +2204,8 @@ func (s *Server) decodeEnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseRe } d := jx.DecodeBytes(buf) + + var request EnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2265,8 +2265,6 @@ func (s *Server) decodeEnterpriseAdminProvisionAndInviteEnterpriseGroupRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EnterpriseAdminProvisionAndInviteEnterpriseGroupReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2277,6 +2275,8 @@ func (s *Server) decodeEnterpriseAdminProvisionAndInviteEnterpriseGroupRequest(r } d := jx.DecodeBytes(buf) + + var request EnterpriseAdminProvisionAndInviteEnterpriseGroupReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2336,8 +2336,6 @@ func (s *Server) decodeEnterpriseAdminProvisionAndInviteEnterpriseUserRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EnterpriseAdminProvisionAndInviteEnterpriseUserReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2348,6 +2346,8 @@ func (s *Server) decodeEnterpriseAdminProvisionAndInviteEnterpriseUserRequest(r } d := jx.DecodeBytes(buf) + + var request EnterpriseAdminProvisionAndInviteEnterpriseUserReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2407,8 +2407,6 @@ func (s *Server) decodeEnterpriseAdminSetAllowedActionsEnterpriseRequest(r *http if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SelectedActions buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2419,6 +2417,8 @@ func (s *Server) decodeEnterpriseAdminSetAllowedActionsEnterpriseRequest(r *http } d := jx.DecodeBytes(buf) + + var request SelectedActions if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2470,8 +2470,6 @@ func (s *Server) decodeEnterpriseAdminSetGithubActionsPermissionsEnterpriseReque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EnterpriseAdminSetGithubActionsPermissionsEnterpriseReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2482,6 +2480,8 @@ func (s *Server) decodeEnterpriseAdminSetGithubActionsPermissionsEnterpriseReque } d := jx.DecodeBytes(buf) + + var request EnterpriseAdminSetGithubActionsPermissionsEnterpriseReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2541,8 +2541,6 @@ func (s *Server) decodeEnterpriseAdminSetInformationForProvisionedEnterpriseGrou if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EnterpriseAdminSetInformationForProvisionedEnterpriseGroupReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2553,6 +2551,8 @@ func (s *Server) decodeEnterpriseAdminSetInformationForProvisionedEnterpriseGrou } d := jx.DecodeBytes(buf) + + var request EnterpriseAdminSetInformationForProvisionedEnterpriseGroupReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2612,8 +2612,6 @@ func (s *Server) decodeEnterpriseAdminSetInformationForProvisionedEnterpriseUser if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EnterpriseAdminSetInformationForProvisionedEnterpriseUserReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2624,6 +2622,8 @@ func (s *Server) decodeEnterpriseAdminSetInformationForProvisionedEnterpriseUser } d := jx.DecodeBytes(buf) + + var request EnterpriseAdminSetInformationForProvisionedEnterpriseUserReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2683,8 +2683,6 @@ func (s *Server) decodeEnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnter if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2695,6 +2693,8 @@ func (s *Server) decodeEnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnter } d := jx.DecodeBytes(buf) + + var request EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2754,8 +2754,6 @@ func (s *Server) decodeEnterpriseAdminSetSelectedOrganizationsEnabledGithubActio if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterpriseReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2766,6 +2764,8 @@ func (s *Server) decodeEnterpriseAdminSetSelectedOrganizationsEnabledGithubActio } d := jx.DecodeBytes(buf) + + var request EnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterpriseReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2825,8 +2825,6 @@ func (s *Server) decodeEnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseRe if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2837,6 +2835,8 @@ func (s *Server) decodeEnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseRe } d := jx.DecodeBytes(buf) + + var request EnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2896,8 +2896,6 @@ func (s *Server) decodeEnterpriseAdminUpdateAttributeForEnterpriseGroupRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EnterpriseAdminUpdateAttributeForEnterpriseGroupReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2908,6 +2906,8 @@ func (s *Server) decodeEnterpriseAdminUpdateAttributeForEnterpriseGroupRequest(r } d := jx.DecodeBytes(buf) + + var request EnterpriseAdminUpdateAttributeForEnterpriseGroupReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2967,8 +2967,6 @@ func (s *Server) decodeEnterpriseAdminUpdateAttributeForEnterpriseUserRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EnterpriseAdminUpdateAttributeForEnterpriseUserReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2979,6 +2977,8 @@ func (s *Server) decodeEnterpriseAdminUpdateAttributeForEnterpriseUserRequest(r } d := jx.DecodeBytes(buf) + + var request EnterpriseAdminUpdateAttributeForEnterpriseUserReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3041,8 +3041,6 @@ func (s *Server) decodeEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseRe if r.ContentLength == 0 { return req, close, nil } - - var request OptEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3053,6 +3051,8 @@ func (s *Server) decodeEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseRe } d := jx.DecodeBytes(buf) + + var request OptEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -3120,8 +3120,6 @@ func (s *Server) decodeGistsCreateRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GistsCreateReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3132,6 +3130,8 @@ func (s *Server) decodeGistsCreateRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GistsCreateReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3191,8 +3191,6 @@ func (s *Server) decodeGistsCreateCommentRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GistsCreateCommentReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3203,6 +3201,8 @@ func (s *Server) decodeGistsCreateCommentRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GistsCreateCommentReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3262,8 +3262,6 @@ func (s *Server) decodeGistsUpdateCommentRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GistsUpdateCommentReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3274,6 +3272,8 @@ func (s *Server) decodeGistsUpdateCommentRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GistsUpdateCommentReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3333,8 +3333,6 @@ func (s *Server) decodeGitCreateBlobRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GitCreateBlobReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3345,6 +3343,8 @@ func (s *Server) decodeGitCreateBlobRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GitCreateBlobReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3396,8 +3396,6 @@ func (s *Server) decodeGitCreateCommitRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GitCreateCommitReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3408,6 +3406,8 @@ func (s *Server) decodeGitCreateCommitRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GitCreateCommitReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3459,8 +3459,6 @@ func (s *Server) decodeGitCreateRefRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GitCreateRefReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3471,6 +3469,8 @@ func (s *Server) decodeGitCreateRefRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GitCreateRefReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3522,8 +3522,6 @@ func (s *Server) decodeGitCreateTagRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GitCreateTagReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3534,6 +3532,8 @@ func (s *Server) decodeGitCreateTagRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GitCreateTagReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3593,8 +3593,6 @@ func (s *Server) decodeGitCreateTreeRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GitCreateTreeReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3605,6 +3603,8 @@ func (s *Server) decodeGitCreateTreeRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GitCreateTreeReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3664,8 +3664,6 @@ func (s *Server) decodeGitUpdateRefRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GitUpdateRefReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3676,6 +3674,8 @@ func (s *Server) decodeGitUpdateRefRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GitUpdateRefReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3727,8 +3727,6 @@ func (s *Server) decodeInteractionsSetRestrictionsForAuthenticatedUserRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request InteractionLimit buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3739,6 +3737,8 @@ func (s *Server) decodeInteractionsSetRestrictionsForAuthenticatedUserRequest(r } d := jx.DecodeBytes(buf) + + var request InteractionLimit if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3798,8 +3798,6 @@ func (s *Server) decodeInteractionsSetRestrictionsForOrgRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request InteractionLimit buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3810,6 +3808,8 @@ func (s *Server) decodeInteractionsSetRestrictionsForOrgRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request InteractionLimit if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3869,8 +3869,6 @@ func (s *Server) decodeInteractionsSetRestrictionsForRepoRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request InteractionLimit buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3881,6 +3879,8 @@ func (s *Server) decodeInteractionsSetRestrictionsForRepoRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request InteractionLimit if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3943,8 +3943,6 @@ func (s *Server) decodeIssuesAddAssigneesRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptIssuesAddAssigneesReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3955,6 +3953,8 @@ func (s *Server) decodeIssuesAddAssigneesRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptIssuesAddAssigneesReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -4007,8 +4007,6 @@ func (s *Server) decodeIssuesCreateRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request IssuesCreateReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4019,6 +4017,8 @@ func (s *Server) decodeIssuesCreateRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request IssuesCreateReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4070,8 +4070,6 @@ func (s *Server) decodeIssuesCreateCommentRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request IssuesCreateCommentReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4082,6 +4080,8 @@ func (s *Server) decodeIssuesCreateCommentRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request IssuesCreateCommentReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4133,8 +4133,6 @@ func (s *Server) decodeIssuesCreateLabelRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request IssuesCreateLabelReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4145,6 +4143,8 @@ func (s *Server) decodeIssuesCreateLabelRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request IssuesCreateLabelReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4196,8 +4196,6 @@ func (s *Server) decodeIssuesCreateMilestoneRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request IssuesCreateMilestoneReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4208,6 +4206,8 @@ func (s *Server) decodeIssuesCreateMilestoneRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request IssuesCreateMilestoneReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4270,8 +4270,6 @@ func (s *Server) decodeIssuesLockRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilIssuesLockReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4282,6 +4280,8 @@ func (s *Server) decodeIssuesLockRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilIssuesLockReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -4352,8 +4352,6 @@ func (s *Server) decodeIssuesRemoveAssigneesRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptIssuesRemoveAssigneesReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4364,6 +4362,8 @@ func (s *Server) decodeIssuesRemoveAssigneesRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptIssuesRemoveAssigneesReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -4419,8 +4419,6 @@ func (s *Server) decodeIssuesUpdateRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptIssuesUpdateReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4431,6 +4429,8 @@ func (s *Server) decodeIssuesUpdateRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptIssuesUpdateReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -4498,8 +4498,6 @@ func (s *Server) decodeIssuesUpdateCommentRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request IssuesUpdateCommentReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4510,6 +4508,8 @@ func (s *Server) decodeIssuesUpdateCommentRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request IssuesUpdateCommentReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4564,8 +4564,6 @@ func (s *Server) decodeIssuesUpdateLabelRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptIssuesUpdateLabelReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4576,6 +4574,8 @@ func (s *Server) decodeIssuesUpdateLabelRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptIssuesUpdateLabelReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -4631,8 +4631,6 @@ func (s *Server) decodeIssuesUpdateMilestoneRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptIssuesUpdateMilestoneReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4643,6 +4641,8 @@ func (s *Server) decodeIssuesUpdateMilestoneRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptIssuesUpdateMilestoneReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -4710,8 +4710,6 @@ func (s *Server) decodeMarkdownRenderRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request MarkdownRenderReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4722,6 +4720,8 @@ func (s *Server) decodeMarkdownRenderRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request MarkdownRenderReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4826,8 +4826,6 @@ func (s *Server) decodeMigrationsMapCommitAuthorRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptMigrationsMapCommitAuthorReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4838,6 +4836,8 @@ func (s *Server) decodeMigrationsMapCommitAuthorRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptMigrationsMapCommitAuthorReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -4890,8 +4890,6 @@ func (s *Server) decodeMigrationsSetLfsPreferenceRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request MigrationsSetLfsPreferenceReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4902,6 +4900,8 @@ func (s *Server) decodeMigrationsSetLfsPreferenceRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request MigrationsSetLfsPreferenceReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4961,8 +4961,6 @@ func (s *Server) decodeMigrationsStartForAuthenticatedUserRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request MigrationsStartForAuthenticatedUserReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4973,6 +4971,8 @@ func (s *Server) decodeMigrationsStartForAuthenticatedUserRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request MigrationsStartForAuthenticatedUserReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -5032,8 +5032,6 @@ func (s *Server) decodeMigrationsStartForOrgRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request MigrationsStartForOrgReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5044,6 +5042,8 @@ func (s *Server) decodeMigrationsStartForOrgRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request MigrationsStartForOrgReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -5103,8 +5103,6 @@ func (s *Server) decodeMigrationsStartImportRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request MigrationsStartImportReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5115,6 +5113,8 @@ func (s *Server) decodeMigrationsStartImportRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request MigrationsStartImportReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -5177,8 +5177,6 @@ func (s *Server) decodeMigrationsUpdateImportRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilMigrationsUpdateImportReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5189,6 +5187,8 @@ func (s *Server) decodeMigrationsUpdateImportRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilMigrationsUpdateImportReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -5244,8 +5244,6 @@ func (s *Server) decodeOAuthAuthorizationsCreateAuthorizationRequest(r *http.Req if r.ContentLength == 0 { return req, close, nil } - - var request OptOAuthAuthorizationsCreateAuthorizationReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5256,6 +5254,8 @@ func (s *Server) decodeOAuthAuthorizationsCreateAuthorizationRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request OptOAuthAuthorizationsCreateAuthorizationReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -5323,8 +5323,6 @@ func (s *Server) decodeOAuthAuthorizationsGetOrCreateAuthorizationForAppRequest( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request OAuthAuthorizationsGetOrCreateAuthorizationForAppReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5335,6 +5333,8 @@ func (s *Server) decodeOAuthAuthorizationsGetOrCreateAuthorizationForAppRequest( } d := jx.DecodeBytes(buf) + + var request OAuthAuthorizationsGetOrCreateAuthorizationForAppReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -5394,8 +5394,6 @@ func (s *Server) decodeOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFinge if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request OAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5406,6 +5404,8 @@ func (s *Server) decodeOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFinge } d := jx.DecodeBytes(buf) + + var request OAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -5468,8 +5468,6 @@ func (s *Server) decodeOAuthAuthorizationsUpdateAuthorizationRequest(r *http.Req if r.ContentLength == 0 { return req, close, nil } - - var request OptOAuthAuthorizationsUpdateAuthorizationReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5480,6 +5478,8 @@ func (s *Server) decodeOAuthAuthorizationsUpdateAuthorizationRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request OptOAuthAuthorizationsUpdateAuthorizationReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -5550,8 +5550,6 @@ func (s *Server) decodeOrgsCreateInvitationRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptOrgsCreateInvitationReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5562,6 +5560,8 @@ func (s *Server) decodeOrgsCreateInvitationRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptOrgsCreateInvitationReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -5629,8 +5629,6 @@ func (s *Server) decodeOrgsCreateWebhookRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request OrgsCreateWebhookReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5641,6 +5639,8 @@ func (s *Server) decodeOrgsCreateWebhookRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OrgsCreateWebhookReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -5703,8 +5703,6 @@ func (s *Server) decodeOrgsSetMembershipForUserRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptOrgsSetMembershipForUserReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5715,6 +5713,8 @@ func (s *Server) decodeOrgsSetMembershipForUserRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptOrgsSetMembershipForUserReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -5782,8 +5782,6 @@ func (s *Server) decodeOrgsUpdateMembershipForAuthenticatedUserRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request OrgsUpdateMembershipForAuthenticatedUserReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5794,6 +5792,8 @@ func (s *Server) decodeOrgsUpdateMembershipForAuthenticatedUserRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request OrgsUpdateMembershipForAuthenticatedUserReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -5856,8 +5856,6 @@ func (s *Server) decodeOrgsUpdateWebhookRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptOrgsUpdateWebhookReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5868,6 +5866,8 @@ func (s *Server) decodeOrgsUpdateWebhookRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptOrgsUpdateWebhookReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -5938,8 +5938,6 @@ func (s *Server) decodeOrgsUpdateWebhookConfigForOrgRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptOrgsUpdateWebhookConfigForOrgReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5950,6 +5948,8 @@ func (s *Server) decodeOrgsUpdateWebhookConfigForOrgRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptOrgsUpdateWebhookConfigForOrgReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -6020,8 +6020,6 @@ func (s *Server) decodeProjectsAddCollaboratorRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilProjectsAddCollaboratorReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6032,6 +6030,8 @@ func (s *Server) decodeProjectsAddCollaboratorRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilProjectsAddCollaboratorReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -6099,8 +6099,6 @@ func (s *Server) decodeProjectsCreateColumnRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ProjectsCreateColumnReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6111,6 +6109,8 @@ func (s *Server) decodeProjectsCreateColumnRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ProjectsCreateColumnReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -6162,8 +6162,6 @@ func (s *Server) decodeProjectsCreateForAuthenticatedUserRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ProjectsCreateForAuthenticatedUserReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6174,6 +6172,8 @@ func (s *Server) decodeProjectsCreateForAuthenticatedUserRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request ProjectsCreateForAuthenticatedUserReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -6225,8 +6225,6 @@ func (s *Server) decodeProjectsCreateForOrgRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ProjectsCreateForOrgReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6237,6 +6235,8 @@ func (s *Server) decodeProjectsCreateForOrgRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ProjectsCreateForOrgReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -6288,8 +6288,6 @@ func (s *Server) decodeProjectsCreateForRepoRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ProjectsCreateForRepoReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6300,6 +6298,8 @@ func (s *Server) decodeProjectsCreateForRepoRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ProjectsCreateForRepoReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -6351,8 +6351,6 @@ func (s *Server) decodeProjectsMoveCardRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ProjectsMoveCardReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6363,6 +6361,8 @@ func (s *Server) decodeProjectsMoveCardRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ProjectsMoveCardReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -6422,8 +6422,6 @@ func (s *Server) decodeProjectsMoveColumnRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ProjectsMoveColumnReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6434,6 +6432,8 @@ func (s *Server) decodeProjectsMoveColumnRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ProjectsMoveColumnReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -6496,8 +6496,6 @@ func (s *Server) decodeProjectsUpdateRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptProjectsUpdateReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6508,6 +6506,8 @@ func (s *Server) decodeProjectsUpdateRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptProjectsUpdateReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -6578,8 +6578,6 @@ func (s *Server) decodeProjectsUpdateCardRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptProjectsUpdateCardReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6590,6 +6588,8 @@ func (s *Server) decodeProjectsUpdateCardRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptProjectsUpdateCardReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -6642,8 +6642,6 @@ func (s *Server) decodeProjectsUpdateColumnRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ProjectsUpdateColumnReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6654,6 +6652,8 @@ func (s *Server) decodeProjectsUpdateColumnRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ProjectsUpdateColumnReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -6705,8 +6705,6 @@ func (s *Server) decodePullsCreateRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request PullsCreateReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6717,6 +6715,8 @@ func (s *Server) decodePullsCreateRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request PullsCreateReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -6768,8 +6768,6 @@ func (s *Server) decodePullsCreateReplyForReviewCommentRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request PullsCreateReplyForReviewCommentReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6780,6 +6778,8 @@ func (s *Server) decodePullsCreateReplyForReviewCommentRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request PullsCreateReplyForReviewCommentReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -6834,8 +6834,6 @@ func (s *Server) decodePullsCreateReviewRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptPullsCreateReviewReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6846,6 +6844,8 @@ func (s *Server) decodePullsCreateReviewRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptPullsCreateReviewReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -6913,8 +6913,6 @@ func (s *Server) decodePullsCreateReviewCommentRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request PullsCreateReviewCommentReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6925,6 +6923,8 @@ func (s *Server) decodePullsCreateReviewCommentRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request PullsCreateReviewCommentReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -6984,8 +6984,6 @@ func (s *Server) decodePullsDismissReviewRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request PullsDismissReviewReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6996,6 +6994,8 @@ func (s *Server) decodePullsDismissReviewRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request PullsDismissReviewReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -7050,8 +7050,6 @@ func (s *Server) decodePullsMergeRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilPullsMergeReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7062,6 +7060,8 @@ func (s *Server) decodePullsMergeRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilPullsMergeReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -7129,8 +7129,6 @@ func (s *Server) decodePullsRemoveRequestedReviewersRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request PullsRemoveRequestedReviewersReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7141,6 +7139,8 @@ func (s *Server) decodePullsRemoveRequestedReviewersRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request PullsRemoveRequestedReviewersReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -7200,8 +7200,6 @@ func (s *Server) decodePullsSubmitReviewRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request PullsSubmitReviewReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7212,6 +7210,8 @@ func (s *Server) decodePullsSubmitReviewRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request PullsSubmitReviewReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -7274,8 +7274,6 @@ func (s *Server) decodePullsUpdateRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptPullsUpdateReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7286,6 +7284,8 @@ func (s *Server) decodePullsUpdateRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptPullsUpdateReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -7356,8 +7356,6 @@ func (s *Server) decodePullsUpdateBranchRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilPullsUpdateBranchReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7368,6 +7366,8 @@ func (s *Server) decodePullsUpdateBranchRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilPullsUpdateBranchReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -7420,8 +7420,6 @@ func (s *Server) decodePullsUpdateReviewRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request PullsUpdateReviewReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7432,6 +7430,8 @@ func (s *Server) decodePullsUpdateReviewRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request PullsUpdateReviewReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -7483,8 +7483,6 @@ func (s *Server) decodePullsUpdateReviewCommentRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request PullsUpdateReviewCommentReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7495,6 +7493,8 @@ func (s *Server) decodePullsUpdateReviewCommentRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request PullsUpdateReviewCommentReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -7546,8 +7546,6 @@ func (s *Server) decodeReactionsCreateForCommitCommentRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReactionsCreateForCommitCommentReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7558,6 +7556,8 @@ func (s *Server) decodeReactionsCreateForCommitCommentRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReactionsCreateForCommitCommentReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -7617,8 +7617,6 @@ func (s *Server) decodeReactionsCreateForIssueRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReactionsCreateForIssueReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7629,6 +7627,8 @@ func (s *Server) decodeReactionsCreateForIssueRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReactionsCreateForIssueReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -7688,8 +7688,6 @@ func (s *Server) decodeReactionsCreateForIssueCommentRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReactionsCreateForIssueCommentReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7700,6 +7698,8 @@ func (s *Server) decodeReactionsCreateForIssueCommentRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReactionsCreateForIssueCommentReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -7759,8 +7759,6 @@ func (s *Server) decodeReactionsCreateForPullRequestReviewCommentRequest(r *http if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReactionsCreateForPullRequestReviewCommentReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7771,6 +7769,8 @@ func (s *Server) decodeReactionsCreateForPullRequestReviewCommentRequest(r *http } d := jx.DecodeBytes(buf) + + var request ReactionsCreateForPullRequestReviewCommentReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -7830,8 +7830,6 @@ func (s *Server) decodeReactionsCreateForReleaseRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReactionsCreateForReleaseReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7842,6 +7840,8 @@ func (s *Server) decodeReactionsCreateForReleaseRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReactionsCreateForReleaseReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -7901,8 +7901,6 @@ func (s *Server) decodeReactionsCreateForTeamDiscussionCommentInOrgRequest(r *ht if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReactionsCreateForTeamDiscussionCommentInOrgReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7913,6 +7911,8 @@ func (s *Server) decodeReactionsCreateForTeamDiscussionCommentInOrgRequest(r *ht } d := jx.DecodeBytes(buf) + + var request ReactionsCreateForTeamDiscussionCommentInOrgReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -7972,8 +7972,6 @@ func (s *Server) decodeReactionsCreateForTeamDiscussionCommentLegacyRequest(r *h if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReactionsCreateForTeamDiscussionCommentLegacyReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7984,6 +7982,8 @@ func (s *Server) decodeReactionsCreateForTeamDiscussionCommentLegacyRequest(r *h } d := jx.DecodeBytes(buf) + + var request ReactionsCreateForTeamDiscussionCommentLegacyReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -8043,8 +8043,6 @@ func (s *Server) decodeReactionsCreateForTeamDiscussionInOrgRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReactionsCreateForTeamDiscussionInOrgReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8055,6 +8053,8 @@ func (s *Server) decodeReactionsCreateForTeamDiscussionInOrgRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request ReactionsCreateForTeamDiscussionInOrgReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -8114,8 +8114,6 @@ func (s *Server) decodeReactionsCreateForTeamDiscussionLegacyRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReactionsCreateForTeamDiscussionLegacyReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8126,6 +8124,8 @@ func (s *Server) decodeReactionsCreateForTeamDiscussionLegacyRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request ReactionsCreateForTeamDiscussionLegacyReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -8188,8 +8188,6 @@ func (s *Server) decodeReposAddAppAccessRestrictionsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptReposAddAppAccessRestrictionsReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8200,6 +8198,8 @@ func (s *Server) decodeReposAddAppAccessRestrictionsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptReposAddAppAccessRestrictionsReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -8270,8 +8270,6 @@ func (s *Server) decodeReposAddCollaboratorRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptReposAddCollaboratorReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8282,6 +8280,8 @@ func (s *Server) decodeReposAddCollaboratorRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptReposAddCollaboratorReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -8352,8 +8352,6 @@ func (s *Server) decodeReposAddStatusCheckContextsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptReposAddStatusCheckContextsReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8364,6 +8362,8 @@ func (s *Server) decodeReposAddStatusCheckContextsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptReposAddStatusCheckContextsReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -8434,8 +8434,6 @@ func (s *Server) decodeReposAddTeamAccessRestrictionsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptReposAddTeamAccessRestrictionsReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8446,6 +8444,8 @@ func (s *Server) decodeReposAddTeamAccessRestrictionsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptReposAddTeamAccessRestrictionsReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -8516,8 +8516,6 @@ func (s *Server) decodeReposAddUserAccessRestrictionsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptReposAddUserAccessRestrictionsReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8528,6 +8526,8 @@ func (s *Server) decodeReposAddUserAccessRestrictionsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptReposAddUserAccessRestrictionsReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -8595,8 +8595,6 @@ func (s *Server) decodeReposCreateAutolinkRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReposCreateAutolinkReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8607,6 +8605,8 @@ func (s *Server) decodeReposCreateAutolinkRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReposCreateAutolinkReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -8658,8 +8658,6 @@ func (s *Server) decodeReposCreateCommitCommentRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReposCreateCommitCommentReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8670,6 +8668,8 @@ func (s *Server) decodeReposCreateCommitCommentRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReposCreateCommitCommentReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -8721,8 +8721,6 @@ func (s *Server) decodeReposCreateCommitStatusRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReposCreateCommitStatusReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8733,6 +8731,8 @@ func (s *Server) decodeReposCreateCommitStatusRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReposCreateCommitStatusReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -8792,8 +8792,6 @@ func (s *Server) decodeReposCreateDeployKeyRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReposCreateDeployKeyReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8804,6 +8802,8 @@ func (s *Server) decodeReposCreateDeployKeyRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReposCreateDeployKeyReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -8855,8 +8855,6 @@ func (s *Server) decodeReposCreateDeploymentRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReposCreateDeploymentReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8867,6 +8865,8 @@ func (s *Server) decodeReposCreateDeploymentRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReposCreateDeploymentReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -8918,8 +8918,6 @@ func (s *Server) decodeReposCreateDeploymentStatusRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReposCreateDeploymentStatusReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8930,6 +8928,8 @@ func (s *Server) decodeReposCreateDeploymentStatusRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReposCreateDeploymentStatusReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -8989,8 +8989,6 @@ func (s *Server) decodeReposCreateDispatchEventRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReposCreateDispatchEventReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9001,6 +8999,8 @@ func (s *Server) decodeReposCreateDispatchEventRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReposCreateDispatchEventReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -9060,8 +9060,6 @@ func (s *Server) decodeReposCreateForAuthenticatedUserRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReposCreateForAuthenticatedUserReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9072,6 +9070,8 @@ func (s *Server) decodeReposCreateForAuthenticatedUserRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReposCreateForAuthenticatedUserReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -9126,8 +9126,6 @@ func (s *Server) decodeReposCreateForkRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilReposCreateForkReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9138,6 +9136,8 @@ func (s *Server) decodeReposCreateForkRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilReposCreateForkReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -9190,8 +9190,6 @@ func (s *Server) decodeReposCreateInOrgRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReposCreateInOrgReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9202,6 +9200,8 @@ func (s *Server) decodeReposCreateInOrgRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReposCreateInOrgReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -9261,8 +9261,6 @@ func (s *Server) decodeReposCreateOrUpdateFileContentsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReposCreateOrUpdateFileContentsReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9273,6 +9271,8 @@ func (s *Server) decodeReposCreateOrUpdateFileContentsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReposCreateOrUpdateFileContentsReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -9324,8 +9324,6 @@ func (s *Server) decodeReposCreatePagesSiteRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilReposCreatePagesSiteReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9336,6 +9334,8 @@ func (s *Server) decodeReposCreatePagesSiteRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request NilReposCreatePagesSiteReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -9395,8 +9395,6 @@ func (s *Server) decodeReposCreateReleaseRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReposCreateReleaseReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9407,6 +9405,8 @@ func (s *Server) decodeReposCreateReleaseRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReposCreateReleaseReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -9458,8 +9458,6 @@ func (s *Server) decodeReposCreateUsingTemplateRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReposCreateUsingTemplateReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9470,6 +9468,8 @@ func (s *Server) decodeReposCreateUsingTemplateRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReposCreateUsingTemplateReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -9524,8 +9524,6 @@ func (s *Server) decodeReposCreateWebhookRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilReposCreateWebhookReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9536,6 +9534,8 @@ func (s *Server) decodeReposCreateWebhookRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilReposCreateWebhookReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -9603,8 +9603,6 @@ func (s *Server) decodeReposDeleteFileRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReposDeleteFileReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9615,6 +9613,8 @@ func (s *Server) decodeReposDeleteFileRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReposDeleteFileReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -9666,8 +9666,6 @@ func (s *Server) decodeReposMergeRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReposMergeReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9678,6 +9676,8 @@ func (s *Server) decodeReposMergeRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReposMergeReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -9729,8 +9729,6 @@ func (s *Server) decodeReposMergeUpstreamRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReposMergeUpstreamReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9741,6 +9739,8 @@ func (s *Server) decodeReposMergeUpstreamRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReposMergeUpstreamReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -9795,8 +9795,6 @@ func (s *Server) decodeReposRemoveAppAccessRestrictionsRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request OptReposRemoveAppAccessRestrictionsReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9807,6 +9805,8 @@ func (s *Server) decodeReposRemoveAppAccessRestrictionsRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request OptReposRemoveAppAccessRestrictionsReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -9877,8 +9877,6 @@ func (s *Server) decodeReposRemoveStatusCheckContextsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptReposRemoveStatusCheckContextsReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9889,6 +9887,8 @@ func (s *Server) decodeReposRemoveStatusCheckContextsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptReposRemoveStatusCheckContextsReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -9959,8 +9959,6 @@ func (s *Server) decodeReposRemoveTeamAccessRestrictionsRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request OptReposRemoveTeamAccessRestrictionsReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9971,6 +9969,8 @@ func (s *Server) decodeReposRemoveTeamAccessRestrictionsRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request OptReposRemoveTeamAccessRestrictionsReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -10041,8 +10041,6 @@ func (s *Server) decodeReposRemoveUserAccessRestrictionsRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request OptReposRemoveUserAccessRestrictionsReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10053,6 +10051,8 @@ func (s *Server) decodeReposRemoveUserAccessRestrictionsRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request OptReposRemoveUserAccessRestrictionsReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -10123,8 +10123,6 @@ func (s *Server) decodeReposRenameBranchRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptReposRenameBranchReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10135,6 +10133,8 @@ func (s *Server) decodeReposRenameBranchRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptReposRenameBranchReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -10187,8 +10187,6 @@ func (s *Server) decodeReposReplaceAllTopicsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReposReplaceAllTopicsReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10199,6 +10197,8 @@ func (s *Server) decodeReposReplaceAllTopicsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReposReplaceAllTopicsReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -10261,8 +10261,6 @@ func (s *Server) decodeReposSetAppAccessRestrictionsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptReposSetAppAccessRestrictionsReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10273,6 +10271,8 @@ func (s *Server) decodeReposSetAppAccessRestrictionsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptReposSetAppAccessRestrictionsReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -10343,8 +10343,6 @@ func (s *Server) decodeReposSetStatusCheckContextsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptReposSetStatusCheckContextsReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10355,6 +10353,8 @@ func (s *Server) decodeReposSetStatusCheckContextsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptReposSetStatusCheckContextsReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -10425,8 +10425,6 @@ func (s *Server) decodeReposSetTeamAccessRestrictionsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptReposSetTeamAccessRestrictionsReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10437,6 +10435,8 @@ func (s *Server) decodeReposSetTeamAccessRestrictionsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptReposSetTeamAccessRestrictionsReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -10507,8 +10507,6 @@ func (s *Server) decodeReposSetUserAccessRestrictionsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptReposSetUserAccessRestrictionsReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10519,6 +10517,8 @@ func (s *Server) decodeReposSetUserAccessRestrictionsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptReposSetUserAccessRestrictionsReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -10586,8 +10586,6 @@ func (s *Server) decodeReposTransferRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReposTransferReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10598,6 +10596,8 @@ func (s *Server) decodeReposTransferRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReposTransferReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -10652,8 +10652,6 @@ func (s *Server) decodeReposUpdateRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptReposUpdateReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10664,6 +10662,8 @@ func (s *Server) decodeReposUpdateRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptReposUpdateReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -10731,8 +10731,6 @@ func (s *Server) decodeReposUpdateBranchProtectionRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReposUpdateBranchProtectionReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10743,6 +10741,8 @@ func (s *Server) decodeReposUpdateBranchProtectionRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReposUpdateBranchProtectionReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -10802,8 +10802,6 @@ func (s *Server) decodeReposUpdateCommitCommentRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReposUpdateCommitCommentReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10814,6 +10812,8 @@ func (s *Server) decodeReposUpdateCommitCommentRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReposUpdateCommitCommentReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -10868,8 +10868,6 @@ func (s *Server) decodeReposUpdateInvitationRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptReposUpdateInvitationReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10880,6 +10878,8 @@ func (s *Server) decodeReposUpdateInvitationRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptReposUpdateInvitationReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -10950,8 +10950,6 @@ func (s *Server) decodeReposUpdatePullRequestReviewProtectionRequest(r *http.Req if r.ContentLength == 0 { return req, close, nil } - - var request OptReposUpdatePullRequestReviewProtectionReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10962,6 +10960,8 @@ func (s *Server) decodeReposUpdatePullRequestReviewProtectionRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request OptReposUpdatePullRequestReviewProtectionReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -11017,8 +11017,6 @@ func (s *Server) decodeReposUpdateReleaseRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptReposUpdateReleaseReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11029,6 +11027,8 @@ func (s *Server) decodeReposUpdateReleaseRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptReposUpdateReleaseReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -11084,8 +11084,6 @@ func (s *Server) decodeReposUpdateReleaseAssetRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptReposUpdateReleaseAssetReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11096,6 +11094,8 @@ func (s *Server) decodeReposUpdateReleaseAssetRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptReposUpdateReleaseAssetReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -11151,8 +11151,6 @@ func (s *Server) decodeReposUpdateStatusCheckProtectionRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request OptReposUpdateStatusCheckProtectionReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11163,6 +11161,8 @@ func (s *Server) decodeReposUpdateStatusCheckProtectionRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request OptReposUpdateStatusCheckProtectionReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -11218,8 +11218,6 @@ func (s *Server) decodeReposUpdateWebhookRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptReposUpdateWebhookReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11230,6 +11228,8 @@ func (s *Server) decodeReposUpdateWebhookRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptReposUpdateWebhookReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -11300,8 +11300,6 @@ func (s *Server) decodeReposUpdateWebhookConfigForRepoRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptReposUpdateWebhookConfigForRepoReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11312,6 +11310,8 @@ func (s *Server) decodeReposUpdateWebhookConfigForRepoRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptReposUpdateWebhookConfigForRepoReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -11420,8 +11420,6 @@ func (s *Server) decodeSecretScanningUpdateAlertRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SecretScanningUpdateAlertReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11432,6 +11430,8 @@ func (s *Server) decodeSecretScanningUpdateAlertRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SecretScanningUpdateAlertReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -11494,8 +11494,6 @@ func (s *Server) decodeTeamsAddOrUpdateMembershipForUserInOrgRequest(r *http.Req if r.ContentLength == 0 { return req, close, nil } - - var request OptTeamsAddOrUpdateMembershipForUserInOrgReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11506,6 +11504,8 @@ func (s *Server) decodeTeamsAddOrUpdateMembershipForUserInOrgRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request OptTeamsAddOrUpdateMembershipForUserInOrgReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -11576,8 +11576,6 @@ func (s *Server) decodeTeamsAddOrUpdateMembershipForUserLegacyRequest(r *http.Re if r.ContentLength == 0 { return req, close, nil } - - var request OptTeamsAddOrUpdateMembershipForUserLegacyReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11588,6 +11586,8 @@ func (s *Server) decodeTeamsAddOrUpdateMembershipForUserLegacyRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request OptTeamsAddOrUpdateMembershipForUserLegacyReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -11658,8 +11658,6 @@ func (s *Server) decodeTeamsAddOrUpdateProjectPermissionsInOrgRequest(r *http.Re if r.ContentLength == 0 { return req, close, nil } - - var request OptNilTeamsAddOrUpdateProjectPermissionsInOrgReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11670,6 +11668,8 @@ func (s *Server) decodeTeamsAddOrUpdateProjectPermissionsInOrgRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request OptNilTeamsAddOrUpdateProjectPermissionsInOrgReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -11740,8 +11740,6 @@ func (s *Server) decodeTeamsAddOrUpdateProjectPermissionsLegacyRequest(r *http.R if r.ContentLength == 0 { return req, close, nil } - - var request OptTeamsAddOrUpdateProjectPermissionsLegacyReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11752,6 +11750,8 @@ func (s *Server) decodeTeamsAddOrUpdateProjectPermissionsLegacyRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request OptTeamsAddOrUpdateProjectPermissionsLegacyReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -11822,8 +11822,6 @@ func (s *Server) decodeTeamsAddOrUpdateRepoPermissionsInOrgRequest(r *http.Reque if r.ContentLength == 0 { return req, close, nil } - - var request OptTeamsAddOrUpdateRepoPermissionsInOrgReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11834,6 +11832,8 @@ func (s *Server) decodeTeamsAddOrUpdateRepoPermissionsInOrgRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request OptTeamsAddOrUpdateRepoPermissionsInOrgReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -11904,8 +11904,6 @@ func (s *Server) decodeTeamsAddOrUpdateRepoPermissionsLegacyRequest(r *http.Requ if r.ContentLength == 0 { return req, close, nil } - - var request OptTeamsAddOrUpdateRepoPermissionsLegacyReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11916,6 +11914,8 @@ func (s *Server) decodeTeamsAddOrUpdateRepoPermissionsLegacyRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request OptTeamsAddOrUpdateRepoPermissionsLegacyReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -11983,8 +11983,6 @@ func (s *Server) decodeTeamsCreateRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request TeamsCreateReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11995,6 +11993,8 @@ func (s *Server) decodeTeamsCreateRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request TeamsCreateReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -12054,8 +12054,6 @@ func (s *Server) decodeTeamsCreateDiscussionCommentInOrgRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request TeamsCreateDiscussionCommentInOrgReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12066,6 +12064,8 @@ func (s *Server) decodeTeamsCreateDiscussionCommentInOrgRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request TeamsCreateDiscussionCommentInOrgReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -12117,8 +12117,6 @@ func (s *Server) decodeTeamsCreateDiscussionCommentLegacyRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request TeamsCreateDiscussionCommentLegacyReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12129,6 +12127,8 @@ func (s *Server) decodeTeamsCreateDiscussionCommentLegacyRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request TeamsCreateDiscussionCommentLegacyReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -12180,8 +12180,6 @@ func (s *Server) decodeTeamsCreateDiscussionInOrgRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request TeamsCreateDiscussionInOrgReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12192,6 +12190,8 @@ func (s *Server) decodeTeamsCreateDiscussionInOrgRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request TeamsCreateDiscussionInOrgReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -12243,8 +12243,6 @@ func (s *Server) decodeTeamsCreateDiscussionLegacyRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request TeamsCreateDiscussionLegacyReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12255,6 +12253,8 @@ func (s *Server) decodeTeamsCreateDiscussionLegacyRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request TeamsCreateDiscussionLegacyReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -12306,8 +12306,6 @@ func (s *Server) decodeTeamsCreateOrUpdateIdpGroupConnectionsInOrgRequest(r *htt if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request TeamsCreateOrUpdateIdpGroupConnectionsInOrgReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12318,6 +12316,8 @@ func (s *Server) decodeTeamsCreateOrUpdateIdpGroupConnectionsInOrgRequest(r *htt } d := jx.DecodeBytes(buf) + + var request TeamsCreateOrUpdateIdpGroupConnectionsInOrgReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -12369,8 +12369,6 @@ func (s *Server) decodeTeamsCreateOrUpdateIdpGroupConnectionsLegacyRequest(r *ht if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request TeamsCreateOrUpdateIdpGroupConnectionsLegacyReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12381,6 +12379,8 @@ func (s *Server) decodeTeamsCreateOrUpdateIdpGroupConnectionsLegacyRequest(r *ht } d := jx.DecodeBytes(buf) + + var request TeamsCreateOrUpdateIdpGroupConnectionsLegacyReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -12440,8 +12440,6 @@ func (s *Server) decodeTeamsUpdateDiscussionCommentInOrgRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request TeamsUpdateDiscussionCommentInOrgReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12452,6 +12450,8 @@ func (s *Server) decodeTeamsUpdateDiscussionCommentInOrgRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request TeamsUpdateDiscussionCommentInOrgReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -12503,8 +12503,6 @@ func (s *Server) decodeTeamsUpdateDiscussionCommentLegacyRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request TeamsUpdateDiscussionCommentLegacyReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12515,6 +12513,8 @@ func (s *Server) decodeTeamsUpdateDiscussionCommentLegacyRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request TeamsUpdateDiscussionCommentLegacyReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -12569,8 +12569,6 @@ func (s *Server) decodeTeamsUpdateDiscussionInOrgRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptTeamsUpdateDiscussionInOrgReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12581,6 +12579,8 @@ func (s *Server) decodeTeamsUpdateDiscussionInOrgRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptTeamsUpdateDiscussionInOrgReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -12636,8 +12636,6 @@ func (s *Server) decodeTeamsUpdateDiscussionLegacyRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptTeamsUpdateDiscussionLegacyReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12648,6 +12646,8 @@ func (s *Server) decodeTeamsUpdateDiscussionLegacyRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptTeamsUpdateDiscussionLegacyReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -12703,8 +12703,6 @@ func (s *Server) decodeTeamsUpdateInOrgRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptTeamsUpdateInOrgReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12715,6 +12713,8 @@ func (s *Server) decodeTeamsUpdateInOrgRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptTeamsUpdateInOrgReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -12782,8 +12782,6 @@ func (s *Server) decodeTeamsUpdateLegacyRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request TeamsUpdateLegacyReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12794,6 +12792,8 @@ func (s *Server) decodeTeamsUpdateLegacyRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request TeamsUpdateLegacyReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -12856,8 +12856,6 @@ func (s *Server) decodeUsersAddEmailForAuthenticatedRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptUsersAddEmailForAuthenticatedReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12868,6 +12866,8 @@ func (s *Server) decodeUsersAddEmailForAuthenticatedRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptUsersAddEmailForAuthenticatedReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -12935,8 +12935,6 @@ func (s *Server) decodeUsersCreateGpgKeyForAuthenticatedRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request UsersCreateGpgKeyForAuthenticatedReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12947,6 +12945,8 @@ func (s *Server) decodeUsersCreateGpgKeyForAuthenticatedRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request UsersCreateGpgKeyForAuthenticatedReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -12998,8 +12998,6 @@ func (s *Server) decodeUsersCreatePublicSSHKeyForAuthenticatedRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request UsersCreatePublicSSHKeyForAuthenticatedReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -13010,6 +13008,8 @@ func (s *Server) decodeUsersCreatePublicSSHKeyForAuthenticatedRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request UsersCreatePublicSSHKeyForAuthenticatedReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -13072,8 +13072,6 @@ func (s *Server) decodeUsersDeleteEmailForAuthenticatedRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request OptUsersDeleteEmailForAuthenticatedReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -13084,6 +13082,8 @@ func (s *Server) decodeUsersDeleteEmailForAuthenticatedRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request OptUsersDeleteEmailForAuthenticatedReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -13151,8 +13151,6 @@ func (s *Server) decodeUsersSetPrimaryEmailVisibilityForAuthenticatedRequest(r * if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request UsersSetPrimaryEmailVisibilityForAuthenticatedReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -13163,6 +13161,8 @@ func (s *Server) decodeUsersSetPrimaryEmailVisibilityForAuthenticatedRequest(r * } d := jx.DecodeBytes(buf) + + var request UsersSetPrimaryEmailVisibilityForAuthenticatedReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -13225,8 +13225,6 @@ func (s *Server) decodeUsersUpdateAuthenticatedRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptUsersUpdateAuthenticatedReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -13237,6 +13235,8 @@ func (s *Server) decodeUsersUpdateAuthenticatedRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptUsersUpdateAuthenticatedReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { diff --git a/examples/ex_github/oas_response_decoders_gen.go b/examples/ex_github/oas_response_decoders_gen.go index 344a87371..64e5a853c 100644 --- a/examples/ex_github/oas_response_decoders_gen.go +++ b/examples/ex_github/oas_response_decoders_gen.go @@ -61,8 +61,8 @@ func decodeActionsApproveWorkflowRunResponse(resp *http.Response) (res ActionsAp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response EmptyObject if err := func() error { if err := response.Decode(d); err != nil { @@ -96,8 +96,8 @@ func decodeActionsApproveWorkflowRunResponse(resp *http.Response) (res ActionsAp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsApproveWorkflowRunApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -131,8 +131,8 @@ func decodeActionsApproveWorkflowRunResponse(resp *http.Response) (res ActionsAp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsApproveWorkflowRunApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -172,8 +172,8 @@ func decodeActionsCancelWorkflowRunResponse(resp *http.Response) (res *ActionsCa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsCancelWorkflowRunAccepted if err := func() error { if err := response.Decode(d); err != nil { @@ -213,8 +213,8 @@ func decodeActionsCreateOrUpdateEnvironmentSecretResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response EmptyObject if err := func() error { if err := response.Decode(d); err != nil { @@ -257,8 +257,8 @@ func decodeActionsCreateOrUpdateOrgSecretResponse(resp *http.Response) (res Acti if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response EmptyObject if err := func() error { if err := response.Decode(d); err != nil { @@ -301,8 +301,8 @@ func decodeActionsCreateOrUpdateRepoSecretResponse(resp *http.Response) (res Act if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsCreateOrUpdateRepoSecretCreated if err := func() error { if err := response.Decode(d); err != nil { @@ -345,8 +345,8 @@ func decodeActionsCreateRegistrationTokenForOrgResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AuthenticationToken if err := func() error { if err := response.Decode(d); err != nil { @@ -386,8 +386,8 @@ func decodeActionsCreateRegistrationTokenForRepoResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AuthenticationToken if err := func() error { if err := response.Decode(d); err != nil { @@ -427,8 +427,8 @@ func decodeActionsCreateRemoveTokenForOrgResponse(resp *http.Response) (res *Aut if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AuthenticationToken if err := func() error { if err := response.Decode(d); err != nil { @@ -468,8 +468,8 @@ func decodeActionsCreateRemoveTokenForRepoResponse(resp *http.Response) (res *Au if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AuthenticationToken if err := func() error { if err := response.Decode(d); err != nil { @@ -509,8 +509,8 @@ func decodeActionsCreateSelfHostedRunnerGroupForOrgResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response RunnerGroupsOrg if err := func() error { if err := response.Decode(d); err != nil { @@ -787,8 +787,8 @@ func decodeActionsGetAllowedActionsOrganizationResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response SelectedActions if err := func() error { if err := response.Decode(d); err != nil { @@ -828,8 +828,8 @@ func decodeActionsGetAllowedActionsRepositoryResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response SelectedActions if err := func() error { if err := response.Decode(d); err != nil { @@ -869,8 +869,8 @@ func decodeActionsGetArtifactResponse(resp *http.Response) (res *Artifact, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Artifact if err := func() error { if err := response.Decode(d); err != nil { @@ -910,8 +910,8 @@ func decodeActionsGetEnvironmentPublicKeyResponse(resp *http.Response) (res *Act if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsPublicKey if err := func() error { if err := response.Decode(d); err != nil { @@ -951,8 +951,8 @@ func decodeActionsGetEnvironmentSecretResponse(resp *http.Response) (res *Action if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsSecret if err := func() error { if err := response.Decode(d); err != nil { @@ -992,8 +992,8 @@ func decodeActionsGetGithubActionsPermissionsOrganizationResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsOrganizationPermissions if err := func() error { if err := response.Decode(d); err != nil { @@ -1033,8 +1033,8 @@ func decodeActionsGetGithubActionsPermissionsRepositoryResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsRepositoryPermissions if err := func() error { if err := response.Decode(d); err != nil { @@ -1074,8 +1074,8 @@ func decodeActionsGetJobForWorkflowRunResponse(resp *http.Response) (res *Job, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Job if err := func() error { if err := response.Decode(d); err != nil { @@ -1115,8 +1115,8 @@ func decodeActionsGetOrgPublicKeyResponse(resp *http.Response) (res *ActionsPubl if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsPublicKey if err := func() error { if err := response.Decode(d); err != nil { @@ -1156,8 +1156,8 @@ func decodeActionsGetOrgSecretResponse(resp *http.Response) (res *OrganizationAc if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrganizationActionsSecret if err := func() error { if err := response.Decode(d); err != nil { @@ -1197,8 +1197,8 @@ func decodeActionsGetRepoPublicKeyResponse(resp *http.Response) (res *ActionsPub if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsPublicKey if err := func() error { if err := response.Decode(d); err != nil { @@ -1238,8 +1238,8 @@ func decodeActionsGetRepoSecretResponse(resp *http.Response) (res *ActionsSecret if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsSecret if err := func() error { if err := response.Decode(d); err != nil { @@ -1279,8 +1279,8 @@ func decodeActionsGetReviewsForRunResponse(resp *http.Response) (res []Environme if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []EnvironmentApprovals if err := func() error { response = make([]EnvironmentApprovals, 0) @@ -1328,8 +1328,8 @@ func decodeActionsGetSelfHostedRunnerForOrgResponse(resp *http.Response) (res *R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Runner if err := func() error { if err := response.Decode(d); err != nil { @@ -1369,8 +1369,8 @@ func decodeActionsGetSelfHostedRunnerForRepoResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Runner if err := func() error { if err := response.Decode(d); err != nil { @@ -1410,8 +1410,8 @@ func decodeActionsGetSelfHostedRunnerGroupForOrgResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response RunnerGroupsOrg if err := func() error { if err := response.Decode(d); err != nil { @@ -1451,8 +1451,8 @@ func decodeActionsGetWorkflowRunResponse(resp *http.Response) (res *WorkflowRun, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response WorkflowRun if err := func() error { if err := response.Decode(d); err != nil { @@ -1492,8 +1492,8 @@ func decodeActionsGetWorkflowRunUsageResponse(resp *http.Response) (res *Workflo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response WorkflowRunUsage if err := func() error { if err := response.Decode(d); err != nil { @@ -1533,8 +1533,8 @@ func decodeActionsListArtifactsForRepoResponse(resp *http.Response) (res *Action if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsListArtifactsForRepoOK if err := func() error { if err := response.Decode(d); err != nil { @@ -1612,8 +1612,8 @@ func decodeActionsListEnvironmentSecretsResponse(resp *http.Response) (res *Acti if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsListEnvironmentSecretsOK if err := func() error { if err := response.Decode(d); err != nil { @@ -1691,8 +1691,8 @@ func decodeActionsListJobsForWorkflowRunResponse(resp *http.Response) (res *Acti if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsListJobsForWorkflowRunOK if err := func() error { if err := response.Decode(d); err != nil { @@ -1770,8 +1770,8 @@ func decodeActionsListOrgSecretsResponse(resp *http.Response) (res *ActionsListO if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsListOrgSecretsOK if err := func() error { if err := response.Decode(d); err != nil { @@ -1849,8 +1849,8 @@ func decodeActionsListRepoAccessToSelfHostedRunnerGroupInOrgResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsListRepoAccessToSelfHostedRunnerGroupInOrgOK if err := func() error { if err := response.Decode(d); err != nil { @@ -1890,8 +1890,8 @@ func decodeActionsListRepoSecretsResponse(resp *http.Response) (res *ActionsList if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsListRepoSecretsOK if err := func() error { if err := response.Decode(d); err != nil { @@ -1969,8 +1969,8 @@ func decodeActionsListRepoWorkflowsResponse(resp *http.Response) (res *ActionsLi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsListRepoWorkflowsOK if err := func() error { if err := response.Decode(d); err != nil { @@ -2048,8 +2048,8 @@ func decodeActionsListRunnerApplicationsForOrgResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []RunnerApplication if err := func() error { response = make([]RunnerApplication, 0) @@ -2097,8 +2097,8 @@ func decodeActionsListRunnerApplicationsForRepoResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []RunnerApplication if err := func() error { response = make([]RunnerApplication, 0) @@ -2146,8 +2146,8 @@ func decodeActionsListSelectedReposForOrgSecretResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsListSelectedReposForOrgSecretOK if err := func() error { if err := response.Decode(d); err != nil { @@ -2187,8 +2187,8 @@ func decodeActionsListSelectedRepositoriesEnabledGithubActionsOrganizationRespon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationOK if err := func() error { if err := response.Decode(d); err != nil { @@ -2228,8 +2228,8 @@ func decodeActionsListSelfHostedRunnerGroupsForOrgResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsListSelfHostedRunnerGroupsForOrgOK if err := func() error { if err := response.Decode(d); err != nil { @@ -2269,8 +2269,8 @@ func decodeActionsListSelfHostedRunnersForOrgResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsListSelfHostedRunnersForOrgOK if err := func() error { if err := response.Decode(d); err != nil { @@ -2348,8 +2348,8 @@ func decodeActionsListSelfHostedRunnersForRepoResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsListSelfHostedRunnersForRepoOK if err := func() error { if err := response.Decode(d); err != nil { @@ -2427,8 +2427,8 @@ func decodeActionsListSelfHostedRunnersInGroupForOrgResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsListSelfHostedRunnersInGroupForOrgOK if err := func() error { if err := response.Decode(d); err != nil { @@ -2506,8 +2506,8 @@ func decodeActionsListWorkflowRunArtifactsResponse(resp *http.Response) (res *Ac if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsListWorkflowRunArtifactsOK if err := func() error { if err := response.Decode(d); err != nil { @@ -2585,8 +2585,8 @@ func decodeActionsListWorkflowRunsForRepoResponse(resp *http.Response) (res *Act if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsListWorkflowRunsForRepoOK if err := func() error { if err := response.Decode(d); err != nil { @@ -2664,8 +2664,8 @@ func decodeActionsReRunWorkflowResponse(resp *http.Response) (res *ActionsReRunW if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsReRunWorkflowCreated if err := func() error { if err := response.Decode(d); err != nil { @@ -2735,8 +2735,8 @@ func decodeActionsRetryWorkflowResponse(resp *http.Response) (res *ActionsRetryW if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsRetryWorkflowCreated if err := func() error { if err := response.Decode(d); err != nil { @@ -2776,8 +2776,8 @@ func decodeActionsReviewPendingDeploymentsForRunResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Deployment if err := func() error { response = make([]Deployment, 0) @@ -2897,8 +2897,8 @@ func decodeActionsUpdateSelfHostedRunnerGroupForOrgResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response RunnerGroupsOrg if err := func() error { if err := response.Decode(d); err != nil { @@ -2944,8 +2944,8 @@ func decodeActivityCheckRepoIsStarredByAuthenticatedUserResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityCheckRepoIsStarredByAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -2979,8 +2979,8 @@ func decodeActivityCheckRepoIsStarredByAuthenticatedUserResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityCheckRepoIsStarredByAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -3014,8 +3014,8 @@ func decodeActivityCheckRepoIsStarredByAuthenticatedUserResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityCheckRepoIsStarredByAuthenticatedUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -3070,8 +3070,8 @@ func decodeActivityDeleteThreadSubscriptionResponse(resp *http.Response) (res Ac if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityDeleteThreadSubscriptionApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -3105,8 +3105,8 @@ func decodeActivityDeleteThreadSubscriptionResponse(resp *http.Response) (res Ac if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityDeleteThreadSubscriptionApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -3146,8 +3146,8 @@ func decodeActivityGetFeedsResponse(resp *http.Response) (res *Feed, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Feed if err := func() error { if err := response.Decode(d); err != nil { @@ -3187,8 +3187,8 @@ func decodeActivityGetRepoSubscriptionResponse(resp *http.Response) (res Activit if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response RepositorySubscription if err := func() error { if err := response.Decode(d); err != nil { @@ -3222,8 +3222,8 @@ func decodeActivityGetRepoSubscriptionResponse(resp *http.Response) (res Activit if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -3266,8 +3266,8 @@ func decodeActivityGetThreadResponse(resp *http.Response) (res ActivityGetThread if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Thread if err := func() error { if err := response.Decode(d); err != nil { @@ -3304,8 +3304,8 @@ func decodeActivityGetThreadResponse(resp *http.Response) (res ActivityGetThread if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityGetThreadApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -3339,8 +3339,8 @@ func decodeActivityGetThreadResponse(resp *http.Response) (res ActivityGetThread if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityGetThreadApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -3380,8 +3380,8 @@ func decodeActivityGetThreadSubscriptionForAuthenticatedUserResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ThreadSubscription if err := func() error { if err := response.Decode(d); err != nil { @@ -3418,8 +3418,8 @@ func decodeActivityGetThreadSubscriptionForAuthenticatedUserResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityGetThreadSubscriptionForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -3453,8 +3453,8 @@ func decodeActivityGetThreadSubscriptionForAuthenticatedUserResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityGetThreadSubscriptionForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -3494,8 +3494,8 @@ func decodeActivityListEventsForAuthenticatedUserResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Event if err := func() error { response = make([]Event, 0) @@ -3543,8 +3543,8 @@ func decodeActivityListNotificationsForAuthenticatedUserResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Thread if err := func() error { response = make([]Thread, 0) @@ -3627,8 +3627,8 @@ func decodeActivityListNotificationsForAuthenticatedUserResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityListNotificationsForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -3662,8 +3662,8 @@ func decodeActivityListNotificationsForAuthenticatedUserResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityListNotificationsForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -3697,8 +3697,8 @@ func decodeActivityListNotificationsForAuthenticatedUserResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -3738,8 +3738,8 @@ func decodeActivityListOrgEventsForAuthenticatedUserResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Event if err := func() error { response = make([]Event, 0) @@ -3787,8 +3787,8 @@ func decodeActivityListPublicEventsResponse(resp *http.Response) (res ActivityLi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityListPublicEventsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -3825,8 +3825,8 @@ func decodeActivityListPublicEventsResponse(resp *http.Response) (res ActivityLi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -3860,8 +3860,8 @@ func decodeActivityListPublicEventsResponse(resp *http.Response) (res ActivityLi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -3901,8 +3901,8 @@ func decodeActivityListPublicEventsForRepoNetworkResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityListPublicEventsForRepoNetworkOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -3936,8 +3936,8 @@ func decodeActivityListPublicEventsForRepoNetworkResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityListPublicEventsForRepoNetworkApplicationJSONMovedPermanently if err := func() error { if err := response.Decode(d); err != nil { @@ -3974,8 +3974,8 @@ func decodeActivityListPublicEventsForRepoNetworkResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityListPublicEventsForRepoNetworkApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -4009,8 +4009,8 @@ func decodeActivityListPublicEventsForRepoNetworkResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityListPublicEventsForRepoNetworkApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -4050,8 +4050,8 @@ func decodeActivityListPublicEventsForUserResponse(resp *http.Response) (res []E if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Event if err := func() error { response = make([]Event, 0) @@ -4099,8 +4099,8 @@ func decodeActivityListPublicOrgEventsResponse(resp *http.Response) (res []Event if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Event if err := func() error { response = make([]Event, 0) @@ -4148,8 +4148,8 @@ func decodeActivityListReceivedEventsForUserResponse(resp *http.Response) (res [ if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Event if err := func() error { response = make([]Event, 0) @@ -4197,8 +4197,8 @@ func decodeActivityListReceivedPublicEventsForUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Event if err := func() error { response = make([]Event, 0) @@ -4246,8 +4246,8 @@ func decodeActivityListRepoEventsResponse(resp *http.Response) (res []Event, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Event if err := func() error { response = make([]Event, 0) @@ -4295,8 +4295,8 @@ func decodeActivityListRepoNotificationsForAuthenticatedUserResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Thread if err := func() error { response = make([]Thread, 0) @@ -4382,8 +4382,8 @@ func decodeActivityListReposStarredByAuthenticatedUserResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Repository if err := func() error { response = make([]Repository, 0) @@ -4466,8 +4466,8 @@ func decodeActivityListReposStarredByAuthenticatedUserResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityListReposStarredByAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -4501,8 +4501,8 @@ func decodeActivityListReposStarredByAuthenticatedUserResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityListReposStarredByAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -4542,8 +4542,8 @@ func decodeActivityListReposWatchedByUserResponse(resp *http.Response) (res *Act if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []MinimalRepository if err := func() error { response = make([]MinimalRepository, 0) @@ -4629,8 +4629,8 @@ func decodeActivityListWatchedReposForAuthenticatedUserResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []MinimalRepository if err := func() error { response = make([]MinimalRepository, 0) @@ -4713,8 +4713,8 @@ func decodeActivityListWatchedReposForAuthenticatedUserResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityListWatchedReposForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -4748,8 +4748,8 @@ func decodeActivityListWatchedReposForAuthenticatedUserResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityListWatchedReposForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -4789,8 +4789,8 @@ func decodeActivityListWatchersForRepoResponse(resp *http.Response) (res *Activi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []SimpleUser if err := func() error { response = make([]SimpleUser, 0) @@ -4876,8 +4876,8 @@ func decodeActivityMarkNotificationsAsReadResponse(resp *http.Response) (res Act if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityMarkNotificationsAsReadAccepted if err := func() error { if err := response.Decode(d); err != nil { @@ -4917,8 +4917,8 @@ func decodeActivityMarkNotificationsAsReadResponse(resp *http.Response) (res Act if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityMarkNotificationsAsReadApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -4952,8 +4952,8 @@ func decodeActivityMarkNotificationsAsReadResponse(resp *http.Response) (res Act if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityMarkNotificationsAsReadApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -4993,8 +4993,8 @@ func decodeActivityMarkRepoNotificationsAsReadResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityMarkRepoNotificationsAsReadAccepted if err := func() error { if err := response.Decode(d); err != nil { @@ -5043,8 +5043,8 @@ func decodeActivityMarkThreadAsReadResponse(resp *http.Response) (res ActivityMa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -5084,8 +5084,8 @@ func decodeActivitySetRepoSubscriptionResponse(resp *http.Response) (res *Reposi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response RepositorySubscription if err := func() error { if err := response.Decode(d); err != nil { @@ -5125,8 +5125,8 @@ func decodeActivitySetThreadSubscriptionResponse(resp *http.Response) (res Activ if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ThreadSubscription if err := func() error { if err := response.Decode(d); err != nil { @@ -5163,8 +5163,8 @@ func decodeActivitySetThreadSubscriptionResponse(resp *http.Response) (res Activ if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivitySetThreadSubscriptionApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -5198,8 +5198,8 @@ func decodeActivitySetThreadSubscriptionResponse(resp *http.Response) (res Activ if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivitySetThreadSubscriptionApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -5245,8 +5245,8 @@ func decodeActivityStarRepoForAuthenticatedUserResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityStarRepoForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -5280,8 +5280,8 @@ func decodeActivityStarRepoForAuthenticatedUserResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityStarRepoForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -5315,8 +5315,8 @@ func decodeActivityStarRepoForAuthenticatedUserResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityStarRepoForAuthenticatedUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -5362,8 +5362,8 @@ func decodeActivityUnstarRepoForAuthenticatedUserResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityUnstarRepoForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -5397,8 +5397,8 @@ func decodeActivityUnstarRepoForAuthenticatedUserResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityUnstarRepoForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -5432,8 +5432,8 @@ func decodeActivityUnstarRepoForAuthenticatedUserResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActivityUnstarRepoForAuthenticatedUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -5479,8 +5479,8 @@ func decodeAppsAddRepoToInstallationResponse(resp *http.Response) (res AppsAddRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsAddRepoToInstallationApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -5514,8 +5514,8 @@ func decodeAppsAddRepoToInstallationResponse(resp *http.Response) (res AppsAddRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsAddRepoToInstallationApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -5555,8 +5555,8 @@ func decodeAppsCheckTokenResponse(resp *http.Response) (res AppsCheckTokenRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Authorization if err := func() error { if err := response.Decode(d); err != nil { @@ -5590,8 +5590,8 @@ func decodeAppsCheckTokenResponse(resp *http.Response) (res AppsCheckTokenRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -5625,8 +5625,8 @@ func decodeAppsCheckTokenResponse(resp *http.Response) (res AppsCheckTokenRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -5666,8 +5666,8 @@ func decodeAppsCreateContentAttachmentResponse(resp *http.Response) (res AppsCre if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ContentReferenceAttachment if err := func() error { if err := response.Decode(d); err != nil { @@ -5704,8 +5704,8 @@ func decodeAppsCreateContentAttachmentResponse(resp *http.Response) (res AppsCre if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsCreateContentAttachmentApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -5739,8 +5739,8 @@ func decodeAppsCreateContentAttachmentResponse(resp *http.Response) (res AppsCre if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsCreateContentAttachmentApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -5774,8 +5774,8 @@ func decodeAppsCreateContentAttachmentResponse(resp *http.Response) (res AppsCre if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsCreateContentAttachmentApplicationJSONGone if err := func() error { if err := response.Decode(d); err != nil { @@ -5809,8 +5809,8 @@ func decodeAppsCreateContentAttachmentResponse(resp *http.Response) (res AppsCre if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -5844,8 +5844,8 @@ func decodeAppsCreateContentAttachmentResponse(resp *http.Response) (res AppsCre if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -5885,8 +5885,8 @@ func decodeAppsCreateFromManifestResponse(resp *http.Response) (res AppsCreateFr if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsCreateFromManifestCreated if err := func() error { if err := response.Decode(d); err != nil { @@ -5920,8 +5920,8 @@ func decodeAppsCreateFromManifestResponse(resp *http.Response) (res AppsCreateFr if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -5955,8 +5955,8 @@ func decodeAppsCreateFromManifestResponse(resp *http.Response) (res AppsCreateFr if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationErrorSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -5996,8 +5996,8 @@ func decodeAppsCreateInstallationAccessTokenResponse(resp *http.Response) (res A if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response InstallationToken if err := func() error { if err := response.Decode(d); err != nil { @@ -6031,8 +6031,8 @@ func decodeAppsCreateInstallationAccessTokenResponse(resp *http.Response) (res A if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsCreateInstallationAccessTokenApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -6066,8 +6066,8 @@ func decodeAppsCreateInstallationAccessTokenResponse(resp *http.Response) (res A if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsCreateInstallationAccessTokenApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -6101,8 +6101,8 @@ func decodeAppsCreateInstallationAccessTokenResponse(resp *http.Response) (res A if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsCreateInstallationAccessTokenApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -6136,8 +6136,8 @@ func decodeAppsCreateInstallationAccessTokenResponse(resp *http.Response) (res A if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -6171,8 +6171,8 @@ func decodeAppsCreateInstallationAccessTokenResponse(resp *http.Response) (res A if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -6215,8 +6215,8 @@ func decodeAppsDeleteAuthorizationResponse(resp *http.Response) (res AppsDeleteA if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -6259,8 +6259,8 @@ func decodeAppsDeleteInstallationResponse(resp *http.Response) (res AppsDeleteIn if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -6303,8 +6303,8 @@ func decodeAppsDeleteTokenResponse(resp *http.Response) (res AppsDeleteTokenRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -6344,8 +6344,8 @@ func decodeAppsGetAuthenticatedResponse(resp *http.Response) (res *Integration, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Integration if err := func() error { if err := response.Decode(d); err != nil { @@ -6385,8 +6385,8 @@ func decodeAppsGetBySlugResponse(resp *http.Response) (res AppsGetBySlugRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Integration if err := func() error { if err := response.Decode(d); err != nil { @@ -6420,8 +6420,8 @@ func decodeAppsGetBySlugResponse(resp *http.Response) (res AppsGetBySlugRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsGetBySlugApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -6455,8 +6455,8 @@ func decodeAppsGetBySlugResponse(resp *http.Response) (res AppsGetBySlugRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsGetBySlugApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -6490,8 +6490,8 @@ func decodeAppsGetBySlugResponse(resp *http.Response) (res AppsGetBySlugRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -6531,8 +6531,8 @@ func decodeAppsGetSubscriptionPlanForAccountResponse(resp *http.Response) (res A if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MarketplacePurchase if err := func() error { if err := response.Decode(d); err != nil { @@ -6566,8 +6566,8 @@ func decodeAppsGetSubscriptionPlanForAccountResponse(resp *http.Response) (res A if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsGetSubscriptionPlanForAccountApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -6601,8 +6601,8 @@ func decodeAppsGetSubscriptionPlanForAccountResponse(resp *http.Response) (res A if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsGetSubscriptionPlanForAccountApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -6642,8 +6642,8 @@ func decodeAppsGetSubscriptionPlanForAccountStubbedResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MarketplacePurchase if err := func() error { if err := response.Decode(d); err != nil { @@ -6677,8 +6677,8 @@ func decodeAppsGetSubscriptionPlanForAccountStubbedResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -6721,8 +6721,8 @@ func decodeAppsGetWebhookConfigForAppResponse(resp *http.Response) (res *Webhook if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response WebhookConfig if err := func() error { if err := response.Decode(d); err != nil { @@ -6762,8 +6762,8 @@ func decodeAppsGetWebhookDeliveryResponse(resp *http.Response) (res AppsGetWebho if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response HookDelivery if err := func() error { if err := response.Decode(d); err != nil { @@ -6797,8 +6797,8 @@ func decodeAppsGetWebhookDeliveryResponse(resp *http.Response) (res AppsGetWebho if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -6832,8 +6832,8 @@ func decodeAppsGetWebhookDeliveryResponse(resp *http.Response) (res AppsGetWebho if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -6873,8 +6873,8 @@ func decodeAppsListAccountsForPlanResponse(resp *http.Response) (res AppsListAcc if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []MarketplacePurchase if err := func() error { response = make([]MarketplacePurchase, 0) @@ -6954,8 +6954,8 @@ func decodeAppsListAccountsForPlanResponse(resp *http.Response) (res AppsListAcc if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsListAccountsForPlanApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -6989,8 +6989,8 @@ func decodeAppsListAccountsForPlanResponse(resp *http.Response) (res AppsListAcc if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsListAccountsForPlanApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -7024,8 +7024,8 @@ func decodeAppsListAccountsForPlanResponse(resp *http.Response) (res AppsListAcc if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -7065,8 +7065,8 @@ func decodeAppsListAccountsForPlanStubbedResponse(resp *http.Response) (res Apps if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []MarketplacePurchase if err := func() error { response = make([]MarketplacePurchase, 0) @@ -7146,8 +7146,8 @@ func decodeAppsListAccountsForPlanStubbedResponse(resp *http.Response) (res Apps if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -7187,8 +7187,8 @@ func decodeAppsListInstallationReposForAuthenticatedUserResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsListInstallationReposForAuthenticatedUserOK if err := func() error { if err := response.Decode(d); err != nil { @@ -7263,8 +7263,8 @@ func decodeAppsListInstallationReposForAuthenticatedUserResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsListInstallationReposForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -7298,8 +7298,8 @@ func decodeAppsListInstallationReposForAuthenticatedUserResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsListInstallationReposForAuthenticatedUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -7339,8 +7339,8 @@ func decodeAppsListPlansResponse(resp *http.Response) (res AppsListPlansRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []MarketplaceListingPlan if err := func() error { response = make([]MarketplaceListingPlan, 0) @@ -7420,8 +7420,8 @@ func decodeAppsListPlansResponse(resp *http.Response) (res AppsListPlansRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsListPlansApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -7455,8 +7455,8 @@ func decodeAppsListPlansResponse(resp *http.Response) (res AppsListPlansRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsListPlansApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -7496,8 +7496,8 @@ func decodeAppsListPlansStubbedResponse(resp *http.Response) (res AppsListPlansS if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []MarketplaceListingPlan if err := func() error { response = make([]MarketplaceListingPlan, 0) @@ -7577,8 +7577,8 @@ func decodeAppsListPlansStubbedResponse(resp *http.Response) (res AppsListPlansS if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -7618,8 +7618,8 @@ func decodeAppsListReposAccessibleToInstallationResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsListReposAccessibleToInstallationOK if err := func() error { if err := response.Decode(d); err != nil { @@ -7694,8 +7694,8 @@ func decodeAppsListReposAccessibleToInstallationResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsListReposAccessibleToInstallationApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -7729,8 +7729,8 @@ func decodeAppsListReposAccessibleToInstallationResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsListReposAccessibleToInstallationApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -7770,8 +7770,8 @@ func decodeAppsListSubscriptionsForAuthenticatedUserResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []UserMarketplacePurchase if err := func() error { response = make([]UserMarketplacePurchase, 0) @@ -7854,8 +7854,8 @@ func decodeAppsListSubscriptionsForAuthenticatedUserResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsListSubscriptionsForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -7889,8 +7889,8 @@ func decodeAppsListSubscriptionsForAuthenticatedUserResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsListSubscriptionsForAuthenticatedUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -7930,8 +7930,8 @@ func decodeAppsListSubscriptionsForAuthenticatedUserStubbedResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []UserMarketplacePurchase if err := func() error { response = make([]UserMarketplacePurchase, 0) @@ -8014,8 +8014,8 @@ func decodeAppsListSubscriptionsForAuthenticatedUserStubbedResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -8055,8 +8055,8 @@ func decodeAppsListWebhookDeliveriesResponse(resp *http.Response) (res AppsListW if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsListWebhookDeliveriesOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -8090,8 +8090,8 @@ func decodeAppsListWebhookDeliveriesResponse(resp *http.Response) (res AppsListW if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -8125,8 +8125,8 @@ func decodeAppsListWebhookDeliveriesResponse(resp *http.Response) (res AppsListW if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -8166,8 +8166,8 @@ func decodeAppsRedeliverWebhookDeliveryResponse(resp *http.Response) (res AppsRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Accepted if err := func() error { if err := response.Decode(d); err != nil { @@ -8201,8 +8201,8 @@ func decodeAppsRedeliverWebhookDeliveryResponse(resp *http.Response) (res AppsRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -8236,8 +8236,8 @@ func decodeAppsRedeliverWebhookDeliveryResponse(resp *http.Response) (res AppsRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -8283,8 +8283,8 @@ func decodeAppsRemoveRepoFromInstallationResponse(resp *http.Response) (res Apps if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsRemoveRepoFromInstallationApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -8318,8 +8318,8 @@ func decodeAppsRemoveRepoFromInstallationResponse(resp *http.Response) (res Apps if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsRemoveRepoFromInstallationApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -8359,8 +8359,8 @@ func decodeAppsResetTokenResponse(resp *http.Response) (res AppsResetTokenRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Authorization if err := func() error { if err := response.Decode(d); err != nil { @@ -8394,8 +8394,8 @@ func decodeAppsResetTokenResponse(resp *http.Response) (res AppsResetTokenRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -8444,8 +8444,8 @@ func decodeAppsScopeTokenResponse(resp *http.Response) (res AppsScopeTokenRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Authorization if err := func() error { if err := response.Decode(d); err != nil { @@ -8479,8 +8479,8 @@ func decodeAppsScopeTokenResponse(resp *http.Response) (res AppsScopeTokenRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsScopeTokenApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -8514,8 +8514,8 @@ func decodeAppsScopeTokenResponse(resp *http.Response) (res AppsScopeTokenRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsScopeTokenApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -8549,8 +8549,8 @@ func decodeAppsScopeTokenResponse(resp *http.Response) (res AppsScopeTokenRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AppsScopeTokenApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -8584,8 +8584,8 @@ func decodeAppsScopeTokenResponse(resp *http.Response) (res AppsScopeTokenRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -8628,8 +8628,8 @@ func decodeAppsSuspendInstallationResponse(resp *http.Response) (res AppsSuspend if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -8672,8 +8672,8 @@ func decodeAppsUnsuspendInstallationResponse(resp *http.Response) (res AppsUnsus if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -8713,8 +8713,8 @@ func decodeAppsUpdateWebhookConfigForAppResponse(resp *http.Response) (res *Webh if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response WebhookConfig if err := func() error { if err := response.Decode(d); err != nil { @@ -8754,8 +8754,8 @@ func decodeBillingGetGithubActionsBillingGheResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsBillingUsage if err := func() error { if err := response.Decode(d); err != nil { @@ -8795,8 +8795,8 @@ func decodeBillingGetGithubActionsBillingOrgResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsBillingUsage if err := func() error { if err := response.Decode(d); err != nil { @@ -8836,8 +8836,8 @@ func decodeBillingGetGithubActionsBillingUserResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsBillingUsage if err := func() error { if err := response.Decode(d); err != nil { @@ -8877,8 +8877,8 @@ func decodeBillingGetGithubPackagesBillingGheResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesBillingUsage if err := func() error { if err := response.Decode(d); err != nil { @@ -8918,8 +8918,8 @@ func decodeBillingGetGithubPackagesBillingOrgResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesBillingUsage if err := func() error { if err := response.Decode(d); err != nil { @@ -8959,8 +8959,8 @@ func decodeBillingGetGithubPackagesBillingUserResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesBillingUsage if err := func() error { if err := response.Decode(d); err != nil { @@ -9000,8 +9000,8 @@ func decodeBillingGetSharedStorageBillingGheResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CombinedBillingUsage if err := func() error { if err := response.Decode(d); err != nil { @@ -9041,8 +9041,8 @@ func decodeBillingGetSharedStorageBillingOrgResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CombinedBillingUsage if err := func() error { if err := response.Decode(d); err != nil { @@ -9082,8 +9082,8 @@ func decodeBillingGetSharedStorageBillingUserResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CombinedBillingUsage if err := func() error { if err := response.Decode(d); err != nil { @@ -9123,8 +9123,8 @@ func decodeChecksCreateSuiteResponse(resp *http.Response) (res ChecksCreateSuite if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ChecksCreateSuiteApplicationJSONOK if err := func() error { if err := response.Decode(d); err != nil { @@ -9158,8 +9158,8 @@ func decodeChecksCreateSuiteResponse(resp *http.Response) (res ChecksCreateSuite if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ChecksCreateSuiteApplicationJSONCreated if err := func() error { if err := response.Decode(d); err != nil { @@ -9199,8 +9199,8 @@ func decodeChecksGetResponse(resp *http.Response) (res *CheckRun, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CheckRun if err := func() error { if err := response.Decode(d); err != nil { @@ -9240,8 +9240,8 @@ func decodeChecksGetSuiteResponse(resp *http.Response) (res *CheckSuite, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CheckSuite if err := func() error { if err := response.Decode(d); err != nil { @@ -9281,8 +9281,8 @@ func decodeChecksListAnnotationsResponse(resp *http.Response) (res *ChecksListAn if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []CheckAnnotation if err := func() error { response = make([]CheckAnnotation, 0) @@ -9368,8 +9368,8 @@ func decodeChecksListForRefResponse(resp *http.Response) (res *ChecksListForRefO if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ChecksListForRefOK if err := func() error { if err := response.Decode(d); err != nil { @@ -9447,8 +9447,8 @@ func decodeChecksListForSuiteResponse(resp *http.Response) (res *ChecksListForSu if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ChecksListForSuiteOK if err := func() error { if err := response.Decode(d); err != nil { @@ -9526,8 +9526,8 @@ func decodeChecksListSuitesForRefResponse(resp *http.Response) (res *ChecksListS if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ChecksListSuitesForRefOK if err := func() error { if err := response.Decode(d); err != nil { @@ -9605,8 +9605,8 @@ func decodeChecksRerequestSuiteResponse(resp *http.Response) (res *ChecksRereque if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ChecksRerequestSuiteCreated if err := func() error { if err := response.Decode(d); err != nil { @@ -9646,8 +9646,8 @@ func decodeChecksSetSuitesPreferencesResponse(resp *http.Response) (res *CheckSu if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CheckSuitePreference if err := func() error { if err := response.Decode(d); err != nil { @@ -9687,8 +9687,8 @@ func decodeCodeScanningDeleteAnalysisResponse(resp *http.Response) (res CodeScan if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningAnalysisDeletion if err := func() error { if err := response.Decode(d); err != nil { @@ -9722,8 +9722,8 @@ func decodeCodeScanningDeleteAnalysisResponse(resp *http.Response) (res CodeScan if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningDeleteAnalysisApplicationJSONBadRequest if err := func() error { if err := response.Decode(d); err != nil { @@ -9757,8 +9757,8 @@ func decodeCodeScanningDeleteAnalysisResponse(resp *http.Response) (res CodeScan if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningDeleteAnalysisApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -9792,8 +9792,8 @@ func decodeCodeScanningDeleteAnalysisResponse(resp *http.Response) (res CodeScan if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningDeleteAnalysisApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -9827,8 +9827,8 @@ func decodeCodeScanningDeleteAnalysisResponse(resp *http.Response) (res CodeScan if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -9868,8 +9868,8 @@ func decodeCodeScanningGetAlertResponse(resp *http.Response) (res CodeScanningGe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningAlert if err := func() error { if err := response.Decode(d); err != nil { @@ -9903,8 +9903,8 @@ func decodeCodeScanningGetAlertResponse(resp *http.Response) (res CodeScanningGe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningGetAlertApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -9938,8 +9938,8 @@ func decodeCodeScanningGetAlertResponse(resp *http.Response) (res CodeScanningGe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningGetAlertApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -9973,8 +9973,8 @@ func decodeCodeScanningGetAlertResponse(resp *http.Response) (res CodeScanningGe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -10014,8 +10014,8 @@ func decodeCodeScanningGetAnalysisResponse(resp *http.Response) (res CodeScannin if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningAnalysis if err := func() error { if err := response.Decode(d); err != nil { @@ -10058,8 +10058,8 @@ func decodeCodeScanningGetAnalysisResponse(resp *http.Response) (res CodeScannin if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningGetAnalysisApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -10093,8 +10093,8 @@ func decodeCodeScanningGetAnalysisResponse(resp *http.Response) (res CodeScannin if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningGetAnalysisApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -10128,8 +10128,8 @@ func decodeCodeScanningGetAnalysisResponse(resp *http.Response) (res CodeScannin if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -10169,8 +10169,8 @@ func decodeCodeScanningGetSarifResponse(resp *http.Response) (res CodeScanningGe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningSarifsStatus if err := func() error { if err := response.Decode(d); err != nil { @@ -10204,8 +10204,8 @@ func decodeCodeScanningGetSarifResponse(resp *http.Response) (res CodeScanningGe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -10242,8 +10242,8 @@ func decodeCodeScanningGetSarifResponse(resp *http.Response) (res CodeScanningGe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -10283,8 +10283,8 @@ func decodeCodeScanningListAlertInstancesResponse(resp *http.Response) (res Code if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningListAlertInstancesOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -10318,8 +10318,8 @@ func decodeCodeScanningListAlertInstancesResponse(resp *http.Response) (res Code if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningListAlertInstancesApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -10353,8 +10353,8 @@ func decodeCodeScanningListAlertInstancesResponse(resp *http.Response) (res Code if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningListAlertInstancesApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -10388,8 +10388,8 @@ func decodeCodeScanningListAlertInstancesResponse(resp *http.Response) (res Code if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -10429,8 +10429,8 @@ func decodeCodeScanningListAlertsForRepoResponse(resp *http.Response) (res CodeS if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningListAlertsForRepoOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -10464,8 +10464,8 @@ func decodeCodeScanningListAlertsForRepoResponse(resp *http.Response) (res CodeS if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningListAlertsForRepoApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -10499,8 +10499,8 @@ func decodeCodeScanningListAlertsForRepoResponse(resp *http.Response) (res CodeS if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningListAlertsForRepoApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -10534,8 +10534,8 @@ func decodeCodeScanningListAlertsForRepoResponse(resp *http.Response) (res CodeS if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -10575,8 +10575,8 @@ func decodeCodeScanningListRecentAnalysesResponse(resp *http.Response) (res Code if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningListRecentAnalysesOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -10610,8 +10610,8 @@ func decodeCodeScanningListRecentAnalysesResponse(resp *http.Response) (res Code if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningListRecentAnalysesApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -10645,8 +10645,8 @@ func decodeCodeScanningListRecentAnalysesResponse(resp *http.Response) (res Code if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningListRecentAnalysesApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -10680,8 +10680,8 @@ func decodeCodeScanningListRecentAnalysesResponse(resp *http.Response) (res Code if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -10721,8 +10721,8 @@ func decodeCodeScanningUpdateAlertResponse(resp *http.Response) (res CodeScannin if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningAlert if err := func() error { if err := response.Decode(d); err != nil { @@ -10756,8 +10756,8 @@ func decodeCodeScanningUpdateAlertResponse(resp *http.Response) (res CodeScannin if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningUpdateAlertApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -10791,8 +10791,8 @@ func decodeCodeScanningUpdateAlertResponse(resp *http.Response) (res CodeScannin if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningUpdateAlertApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -10826,8 +10826,8 @@ func decodeCodeScanningUpdateAlertResponse(resp *http.Response) (res CodeScannin if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -10867,8 +10867,8 @@ func decodeCodeScanningUploadSarifResponse(resp *http.Response) (res CodeScannin if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningSarifsReceipt if err := func() error { if err := response.Decode(d); err != nil { @@ -10905,8 +10905,8 @@ func decodeCodeScanningUploadSarifResponse(resp *http.Response) (res CodeScannin if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningUploadSarifApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -10940,8 +10940,8 @@ func decodeCodeScanningUploadSarifResponse(resp *http.Response) (res CodeScannin if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeScanningUploadSarifApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -10978,8 +10978,8 @@ func decodeCodeScanningUploadSarifResponse(resp *http.Response) (res CodeScannin if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -11019,8 +11019,8 @@ func decodeCodesOfConductGetAllCodesOfConductResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodesOfConductGetAllCodesOfConductOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -11063,8 +11063,8 @@ func decodeCodesOfConductGetConductCodeResponse(resp *http.Response) (res CodesO if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CodeOfConduct if err := func() error { if err := response.Decode(d); err != nil { @@ -11101,8 +11101,8 @@ func decodeCodesOfConductGetConductCodeResponse(resp *http.Response) (res CodesO if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -11142,8 +11142,8 @@ func decodeEmojisGetResponse(resp *http.Response) (res EmojisGetRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response EmojisGetOK if err := func() error { if err := response.Decode(d); err != nil { @@ -11204,8 +11204,8 @@ func decodeEnterpriseAdminCreateRegistrationTokenForEnterpriseResponse(resp *htt if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AuthenticationToken if err := func() error { if err := response.Decode(d); err != nil { @@ -11245,8 +11245,8 @@ func decodeEnterpriseAdminCreateRemoveTokenForEnterpriseResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response AuthenticationToken if err := func() error { if err := response.Decode(d); err != nil { @@ -11286,8 +11286,8 @@ func decodeEnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseResponse(resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response RunnerGroupsEnterprise if err := func() error { if err := response.Decode(d); err != nil { @@ -11381,8 +11381,8 @@ func decodeEnterpriseAdminGetAllowedActionsEnterpriseResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response SelectedActions if err := func() error { if err := response.Decode(d); err != nil { @@ -11422,8 +11422,8 @@ func decodeEnterpriseAdminGetAuditLogResponse(resp *http.Response) (res []AuditL if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []AuditLogEvent if err := func() error { response = make([]AuditLogEvent, 0) @@ -11471,8 +11471,8 @@ func decodeEnterpriseAdminGetGithubActionsPermissionsEnterpriseResponse(resp *ht if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ActionsEnterprisePermissions if err := func() error { if err := response.Decode(d); err != nil { @@ -11512,8 +11512,8 @@ func decodeEnterpriseAdminGetProvisioningInformationForEnterpriseGroupResponse(r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ScimEnterpriseGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -11553,8 +11553,8 @@ func decodeEnterpriseAdminGetProvisioningInformationForEnterpriseUserResponse(re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ScimEnterpriseUser if err := func() error { if err := response.Decode(d); err != nil { @@ -11594,8 +11594,8 @@ func decodeEnterpriseAdminGetSelfHostedRunnerForEnterpriseResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Runner if err := func() error { if err := response.Decode(d); err != nil { @@ -11635,8 +11635,8 @@ func decodeEnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseResponse(resp *ht if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response RunnerGroupsEnterprise if err := func() error { if err := response.Decode(d); err != nil { @@ -11676,8 +11676,8 @@ func decodeEnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseRespon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response EnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseOK if err := func() error { if err := response.Decode(d); err != nil { @@ -11717,8 +11717,8 @@ func decodeEnterpriseAdminListProvisionedGroupsEnterpriseResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ScimGroupListEnterprise if err := func() error { if err := response.Decode(d); err != nil { @@ -11758,8 +11758,8 @@ func decodeEnterpriseAdminListProvisionedIdentitiesEnterpriseResponse(resp *http if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ScimUserListEnterprise if err := func() error { if err := response.Decode(d); err != nil { @@ -11799,8 +11799,8 @@ func decodeEnterpriseAdminListRunnerApplicationsForEnterpriseResponse(resp *http if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []RunnerApplication if err := func() error { response = make([]RunnerApplication, 0) @@ -11848,8 +11848,8 @@ func decodeEnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterpris if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response EnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterpriseOK if err := func() error { if err := response.Decode(d); err != nil { @@ -11889,8 +11889,8 @@ func decodeEnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseResponse(resp * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response EnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseOK if err := func() error { if err := response.Decode(d); err != nil { @@ -11930,8 +11930,8 @@ func decodeEnterpriseAdminListSelfHostedRunnersForEnterpriseResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response EnterpriseAdminListSelfHostedRunnersForEnterpriseOK if err := func() error { if err := response.Decode(d); err != nil { @@ -12009,8 +12009,8 @@ func decodeEnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseResponse(resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response EnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseOK if err := func() error { if err := response.Decode(d); err != nil { @@ -12088,8 +12088,8 @@ func decodeEnterpriseAdminProvisionAndInviteEnterpriseGroupResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ScimEnterpriseGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -12129,8 +12129,8 @@ func decodeEnterpriseAdminProvisionAndInviteEnterpriseUserResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ScimEnterpriseUser if err := func() error { if err := response.Decode(d); err != nil { @@ -12206,8 +12206,8 @@ func decodeEnterpriseAdminSetInformationForProvisionedEnterpriseGroupResponse(re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ScimEnterpriseGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -12247,8 +12247,8 @@ func decodeEnterpriseAdminSetInformationForProvisionedEnterpriseUserResponse(res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ScimEnterpriseUser if err := func() error { if err := response.Decode(d); err != nil { @@ -12315,8 +12315,8 @@ func decodeEnterpriseAdminUpdateAttributeForEnterpriseGroupResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ScimEnterpriseGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -12356,8 +12356,8 @@ func decodeEnterpriseAdminUpdateAttributeForEnterpriseUserResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ScimEnterpriseUser if err := func() error { if err := response.Decode(d); err != nil { @@ -12397,8 +12397,8 @@ func decodeEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseResponse(resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response RunnerGroupsEnterprise if err := func() error { if err := response.Decode(d); err != nil { @@ -12444,8 +12444,8 @@ func decodeGistsCheckIsStarredResponse(resp *http.Response) (res GistsCheckIsSta if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -12479,8 +12479,8 @@ func decodeGistsCheckIsStarredResponse(resp *http.Response) (res GistsCheckIsSta if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsCheckIsStarredNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -12520,8 +12520,8 @@ func decodeGistsCreateResponse(resp *http.Response) (res GistsCreateRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -12596,8 +12596,8 @@ func decodeGistsCreateResponse(resp *http.Response) (res GistsCreateRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsCreateApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -12631,8 +12631,8 @@ func decodeGistsCreateResponse(resp *http.Response) (res GistsCreateRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsCreateApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -12666,8 +12666,8 @@ func decodeGistsCreateResponse(resp *http.Response) (res GistsCreateRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -12707,8 +12707,8 @@ func decodeGistsCreateCommentResponse(resp *http.Response) (res GistsCreateComme if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistComment if err := func() error { if err := response.Decode(d); err != nil { @@ -12783,8 +12783,8 @@ func decodeGistsCreateCommentResponse(resp *http.Response) (res GistsCreateComme if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsCreateCommentApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -12818,8 +12818,8 @@ func decodeGistsCreateCommentResponse(resp *http.Response) (res GistsCreateComme if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsCreateCommentApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -12865,8 +12865,8 @@ func decodeGistsDeleteResponse(resp *http.Response) (res GistsDeleteRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsDeleteApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -12900,8 +12900,8 @@ func decodeGistsDeleteResponse(resp *http.Response) (res GistsDeleteRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsDeleteApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -12947,8 +12947,8 @@ func decodeGistsDeleteCommentResponse(resp *http.Response) (res GistsDeleteComme if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsDeleteCommentApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -12982,8 +12982,8 @@ func decodeGistsDeleteCommentResponse(resp *http.Response) (res GistsDeleteComme if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsDeleteCommentApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -13023,8 +13023,8 @@ func decodeGistsForkResponse(resp *http.Response) (res GistsForkRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BaseGist if err := func() error { if err := response.Decode(d); err != nil { @@ -13099,8 +13099,8 @@ func decodeGistsForkResponse(resp *http.Response) (res GistsForkRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsForkApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -13134,8 +13134,8 @@ func decodeGistsForkResponse(resp *http.Response) (res GistsForkRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsForkApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -13169,8 +13169,8 @@ func decodeGistsForkResponse(resp *http.Response) (res GistsForkRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -13210,8 +13210,8 @@ func decodeGistsGetResponse(resp *http.Response) (res GistsGetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -13248,8 +13248,8 @@ func decodeGistsGetResponse(resp *http.Response) (res GistsGetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ForbiddenGist if err := func() error { if err := response.Decode(d); err != nil { @@ -13283,8 +13283,8 @@ func decodeGistsGetResponse(resp *http.Response) (res GistsGetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -13324,8 +13324,8 @@ func decodeGistsGetCommentResponse(resp *http.Response) (res GistsGetCommentRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistComment if err := func() error { if err := response.Decode(d); err != nil { @@ -13362,8 +13362,8 @@ func decodeGistsGetCommentResponse(resp *http.Response) (res GistsGetCommentRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ForbiddenGist if err := func() error { if err := response.Decode(d); err != nil { @@ -13397,8 +13397,8 @@ func decodeGistsGetCommentResponse(resp *http.Response) (res GistsGetCommentRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -13438,8 +13438,8 @@ func decodeGistsGetRevisionResponse(resp *http.Response) (res GistsGetRevisionRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -13473,8 +13473,8 @@ func decodeGistsGetRevisionResponse(resp *http.Response) (res GistsGetRevisionRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsGetRevisionApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -13508,8 +13508,8 @@ func decodeGistsGetRevisionResponse(resp *http.Response) (res GistsGetRevisionRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsGetRevisionApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -13543,8 +13543,8 @@ func decodeGistsGetRevisionResponse(resp *http.Response) (res GistsGetRevisionRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -13584,8 +13584,8 @@ func decodeGistsListResponse(resp *http.Response) (res GistsListRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []BaseGist if err := func() error { response = make([]BaseGist, 0) @@ -13668,8 +13668,8 @@ func decodeGistsListResponse(resp *http.Response) (res GistsListRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -13709,8 +13709,8 @@ func decodeGistsListCommentsResponse(resp *http.Response) (res GistsListComments if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []GistComment if err := func() error { response = make([]GistComment, 0) @@ -13793,8 +13793,8 @@ func decodeGistsListCommentsResponse(resp *http.Response) (res GistsListComments if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsListCommentsApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -13828,8 +13828,8 @@ func decodeGistsListCommentsResponse(resp *http.Response) (res GistsListComments if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsListCommentsApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -13869,8 +13869,8 @@ func decodeGistsListCommitsResponse(resp *http.Response) (res GistsListCommitsRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []GistCommit if err := func() error { response = make([]GistCommit, 0) @@ -13953,8 +13953,8 @@ func decodeGistsListCommitsResponse(resp *http.Response) (res GistsListCommitsRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsListCommitsApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -13988,8 +13988,8 @@ func decodeGistsListCommitsResponse(resp *http.Response) (res GistsListCommitsRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsListCommitsApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -14029,8 +14029,8 @@ func decodeGistsListForUserResponse(resp *http.Response) (res GistsListForUserRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []BaseGist if err := func() error { response = make([]BaseGist, 0) @@ -14110,8 +14110,8 @@ func decodeGistsListForUserResponse(resp *http.Response) (res GistsListForUserRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -14151,8 +14151,8 @@ func decodeGistsListForksResponse(resp *http.Response) (res GistsListForksRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []GistSimple if err := func() error { response = make([]GistSimple, 0) @@ -14235,8 +14235,8 @@ func decodeGistsListForksResponse(resp *http.Response) (res GistsListForksRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsListForksApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -14270,8 +14270,8 @@ func decodeGistsListForksResponse(resp *http.Response) (res GistsListForksRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsListForksApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -14311,8 +14311,8 @@ func decodeGistsListPublicResponse(resp *http.Response) (res GistsListPublicRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []BaseGist if err := func() error { response = make([]BaseGist, 0) @@ -14395,8 +14395,8 @@ func decodeGistsListPublicResponse(resp *http.Response) (res GistsListPublicRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -14430,8 +14430,8 @@ func decodeGistsListPublicResponse(resp *http.Response) (res GistsListPublicRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -14471,8 +14471,8 @@ func decodeGistsListStarredResponse(resp *http.Response) (res GistsListStarredRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []BaseGist if err := func() error { response = make([]BaseGist, 0) @@ -14555,8 +14555,8 @@ func decodeGistsListStarredResponse(resp *http.Response) (res GistsListStarredRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsListStarredApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -14590,8 +14590,8 @@ func decodeGistsListStarredResponse(resp *http.Response) (res GistsListStarredRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsListStarredApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -14637,8 +14637,8 @@ func decodeGistsStarResponse(resp *http.Response) (res GistsStarRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsStarApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -14672,8 +14672,8 @@ func decodeGistsStarResponse(resp *http.Response) (res GistsStarRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsStarApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -14719,8 +14719,8 @@ func decodeGistsUnstarResponse(resp *http.Response) (res GistsUnstarRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsUnstarApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -14754,8 +14754,8 @@ func decodeGistsUnstarResponse(resp *http.Response) (res GistsUnstarRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistsUnstarApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -14795,8 +14795,8 @@ func decodeGistsUpdateCommentResponse(resp *http.Response) (res GistsUpdateComme if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GistComment if err := func() error { if err := response.Decode(d); err != nil { @@ -14830,8 +14830,8 @@ func decodeGistsUpdateCommentResponse(resp *http.Response) (res GistsUpdateComme if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -14871,8 +14871,8 @@ func decodeGitCreateBlobResponse(resp *http.Response) (res GitCreateBlobRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ShortBlob if err := func() error { if err := response.Decode(d); err != nil { @@ -14944,8 +14944,8 @@ func decodeGitCreateBlobResponse(resp *http.Response) (res GitCreateBlobRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GitCreateBlobApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -14979,8 +14979,8 @@ func decodeGitCreateBlobResponse(resp *http.Response) (res GitCreateBlobRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GitCreateBlobApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -15014,8 +15014,8 @@ func decodeGitCreateBlobResponse(resp *http.Response) (res GitCreateBlobRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GitCreateBlobApplicationJSONConflict if err := func() error { if err := response.Decode(d); err != nil { @@ -15049,8 +15049,8 @@ func decodeGitCreateBlobResponse(resp *http.Response) (res GitCreateBlobRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -15090,8 +15090,8 @@ func decodeGitCreateCommitResponse(resp *http.Response) (res GitCreateCommitRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GitCommit if err := func() error { if err := response.Decode(d); err != nil { @@ -15163,8 +15163,8 @@ func decodeGitCreateCommitResponse(resp *http.Response) (res GitCreateCommitRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -15198,8 +15198,8 @@ func decodeGitCreateCommitResponse(resp *http.Response) (res GitCreateCommitRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -15239,8 +15239,8 @@ func decodeGitCreateRefResponse(resp *http.Response) (res GitCreateRefRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GitRef if err := func() error { if err := response.Decode(d); err != nil { @@ -15312,8 +15312,8 @@ func decodeGitCreateRefResponse(resp *http.Response) (res GitCreateRefRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -15353,8 +15353,8 @@ func decodeGitCreateTagResponse(resp *http.Response) (res GitCreateTagRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GitTag if err := func() error { if err := response.Decode(d); err != nil { @@ -15426,8 +15426,8 @@ func decodeGitCreateTagResponse(resp *http.Response) (res GitCreateTagRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -15467,8 +15467,8 @@ func decodeGitCreateTreeResponse(resp *http.Response) (res GitCreateTreeRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GitTree if err := func() error { if err := response.Decode(d); err != nil { @@ -15540,8 +15540,8 @@ func decodeGitCreateTreeResponse(resp *http.Response) (res GitCreateTreeRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GitCreateTreeApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -15575,8 +15575,8 @@ func decodeGitCreateTreeResponse(resp *http.Response) (res GitCreateTreeRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GitCreateTreeApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -15610,8 +15610,8 @@ func decodeGitCreateTreeResponse(resp *http.Response) (res GitCreateTreeRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -15654,8 +15654,8 @@ func decodeGitDeleteRefResponse(resp *http.Response) (res GitDeleteRefRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -15695,8 +15695,8 @@ func decodeGitGetBlobResponse(resp *http.Response) (res GitGetBlobRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Blob if err := func() error { if err := response.Decode(d); err != nil { @@ -15730,8 +15730,8 @@ func decodeGitGetBlobResponse(resp *http.Response) (res GitGetBlobRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GitGetBlobApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -15765,8 +15765,8 @@ func decodeGitGetBlobResponse(resp *http.Response) (res GitGetBlobRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GitGetBlobApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -15800,8 +15800,8 @@ func decodeGitGetBlobResponse(resp *http.Response) (res GitGetBlobRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -15841,8 +15841,8 @@ func decodeGitGetCommitResponse(resp *http.Response) (res GitGetCommitRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GitCommit if err := func() error { if err := response.Decode(d); err != nil { @@ -15876,8 +15876,8 @@ func decodeGitGetCommitResponse(resp *http.Response) (res GitGetCommitRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -15917,8 +15917,8 @@ func decodeGitGetRefResponse(resp *http.Response) (res GitGetRefRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GitRef if err := func() error { if err := response.Decode(d); err != nil { @@ -15952,8 +15952,8 @@ func decodeGitGetRefResponse(resp *http.Response) (res GitGetRefRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -15993,8 +15993,8 @@ func decodeGitGetTagResponse(resp *http.Response) (res GitGetTagRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GitTag if err := func() error { if err := response.Decode(d); err != nil { @@ -16028,8 +16028,8 @@ func decodeGitGetTagResponse(resp *http.Response) (res GitGetTagRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -16069,8 +16069,8 @@ func decodeGitGetTreeResponse(resp *http.Response) (res GitGetTreeRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GitTree if err := func() error { if err := response.Decode(d); err != nil { @@ -16104,8 +16104,8 @@ func decodeGitGetTreeResponse(resp *http.Response) (res GitGetTreeRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -16139,8 +16139,8 @@ func decodeGitGetTreeResponse(resp *http.Response) (res GitGetTreeRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -16180,8 +16180,8 @@ func decodeGitListMatchingRefsResponse(resp *http.Response) (res *GitListMatchin if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []GitRef if err := func() error { response = make([]GitRef, 0) @@ -16267,8 +16267,8 @@ func decodeGitUpdateRefResponse(resp *http.Response) (res GitUpdateRefRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GitRef if err := func() error { if err := response.Decode(d); err != nil { @@ -16302,8 +16302,8 @@ func decodeGitUpdateRefResponse(resp *http.Response) (res GitUpdateRefRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -16343,8 +16343,8 @@ func decodeGitignoreGetAllTemplatesResponse(resp *http.Response) (res GitignoreG if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GitignoreGetAllTemplatesOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -16387,8 +16387,8 @@ func decodeGitignoreGetTemplateResponse(resp *http.Response) (res GitignoreGetTe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GitignoreTemplate if err := func() error { if err := response.Decode(d); err != nil { @@ -16461,8 +16461,8 @@ func decodeInteractionsSetRestrictionsForAuthenticatedUserResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response InteractionLimitResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -16496,8 +16496,8 @@ func decodeInteractionsSetRestrictionsForAuthenticatedUserResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -16537,8 +16537,8 @@ func decodeInteractionsSetRestrictionsForOrgResponse(resp *http.Response) (res I if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response InteractionLimitResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -16572,8 +16572,8 @@ func decodeInteractionsSetRestrictionsForOrgResponse(resp *http.Response) (res I if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -16613,8 +16613,8 @@ func decodeInteractionsSetRestrictionsForRepoResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response InteractionLimitResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -16657,8 +16657,8 @@ func decodeIssuesAddAssigneesResponse(resp *http.Response) (res *IssueSimple, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssueSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -16701,8 +16701,8 @@ func decodeIssuesCheckUserCanBeAssignedResponse(resp *http.Response) (res Issues if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -16742,8 +16742,8 @@ func decodeIssuesCreateResponse(resp *http.Response) (res IssuesCreateRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Issue if err := func() error { if err := response.Decode(d); err != nil { @@ -16815,8 +16815,8 @@ func decodeIssuesCreateResponse(resp *http.Response) (res IssuesCreateRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesCreateApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -16850,8 +16850,8 @@ func decodeIssuesCreateResponse(resp *http.Response) (res IssuesCreateRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesCreateApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -16885,8 +16885,8 @@ func decodeIssuesCreateResponse(resp *http.Response) (res IssuesCreateRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesCreateApplicationJSONGone if err := func() error { if err := response.Decode(d); err != nil { @@ -16920,8 +16920,8 @@ func decodeIssuesCreateResponse(resp *http.Response) (res IssuesCreateRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -16955,8 +16955,8 @@ func decodeIssuesCreateResponse(resp *http.Response) (res IssuesCreateRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -16996,8 +16996,8 @@ func decodeIssuesCreateCommentResponse(resp *http.Response) (res IssuesCreateCom if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssueComment if err := func() error { if err := response.Decode(d); err != nil { @@ -17069,8 +17069,8 @@ func decodeIssuesCreateCommentResponse(resp *http.Response) (res IssuesCreateCom if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesCreateCommentApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -17104,8 +17104,8 @@ func decodeIssuesCreateCommentResponse(resp *http.Response) (res IssuesCreateCom if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesCreateCommentApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -17139,8 +17139,8 @@ func decodeIssuesCreateCommentResponse(resp *http.Response) (res IssuesCreateCom if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesCreateCommentApplicationJSONGone if err := func() error { if err := response.Decode(d); err != nil { @@ -17174,8 +17174,8 @@ func decodeIssuesCreateCommentResponse(resp *http.Response) (res IssuesCreateCom if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -17215,8 +17215,8 @@ func decodeIssuesCreateLabelResponse(resp *http.Response) (res IssuesCreateLabel if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Label if err := func() error { if err := response.Decode(d); err != nil { @@ -17288,8 +17288,8 @@ func decodeIssuesCreateLabelResponse(resp *http.Response) (res IssuesCreateLabel if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -17323,8 +17323,8 @@ func decodeIssuesCreateLabelResponse(resp *http.Response) (res IssuesCreateLabel if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -17364,8 +17364,8 @@ func decodeIssuesCreateMilestoneResponse(resp *http.Response) (res IssuesCreateM if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Milestone if err := func() error { if err := response.Decode(d); err != nil { @@ -17437,8 +17437,8 @@ func decodeIssuesCreateMilestoneResponse(resp *http.Response) (res IssuesCreateM if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -17472,8 +17472,8 @@ func decodeIssuesCreateMilestoneResponse(resp *http.Response) (res IssuesCreateM if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -17534,8 +17534,8 @@ func decodeIssuesDeleteMilestoneResponse(resp *http.Response) (res IssuesDeleteM if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -17575,8 +17575,8 @@ func decodeIssuesGetResponse(resp *http.Response) (res IssuesGetRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Issue if err := func() error { if err := response.Decode(d); err != nil { @@ -17610,8 +17610,8 @@ func decodeIssuesGetResponse(resp *http.Response) (res IssuesGetRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesGetApplicationJSONMovedPermanently if err := func() error { if err := response.Decode(d); err != nil { @@ -17648,8 +17648,8 @@ func decodeIssuesGetResponse(resp *http.Response) (res IssuesGetRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesGetApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -17683,8 +17683,8 @@ func decodeIssuesGetResponse(resp *http.Response) (res IssuesGetRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesGetApplicationJSONGone if err := func() error { if err := response.Decode(d); err != nil { @@ -17724,8 +17724,8 @@ func decodeIssuesGetCommentResponse(resp *http.Response) (res IssuesGetCommentRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssueComment if err := func() error { if err := response.Decode(d); err != nil { @@ -17759,8 +17759,8 @@ func decodeIssuesGetCommentResponse(resp *http.Response) (res IssuesGetCommentRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -17800,8 +17800,8 @@ func decodeIssuesGetEventResponse(resp *http.Response) (res IssuesGetEventRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssueEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17835,8 +17835,8 @@ func decodeIssuesGetEventResponse(resp *http.Response) (res IssuesGetEventRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesGetEventApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -17870,8 +17870,8 @@ func decodeIssuesGetEventResponse(resp *http.Response) (res IssuesGetEventRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesGetEventApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -17905,8 +17905,8 @@ func decodeIssuesGetEventResponse(resp *http.Response) (res IssuesGetEventRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesGetEventApplicationJSONGone if err := func() error { if err := response.Decode(d); err != nil { @@ -17946,8 +17946,8 @@ func decodeIssuesGetLabelResponse(resp *http.Response) (res IssuesGetLabelRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Label if err := func() error { if err := response.Decode(d); err != nil { @@ -17981,8 +17981,8 @@ func decodeIssuesGetLabelResponse(resp *http.Response) (res IssuesGetLabelRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -18022,8 +18022,8 @@ func decodeIssuesGetMilestoneResponse(resp *http.Response) (res IssuesGetMilesto if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Milestone if err := func() error { if err := response.Decode(d); err != nil { @@ -18057,8 +18057,8 @@ func decodeIssuesGetMilestoneResponse(resp *http.Response) (res IssuesGetMilesto if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -18098,8 +18098,8 @@ func decodeIssuesListResponse(resp *http.Response) (res IssuesListRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Issue if err := func() error { response = make([]Issue, 0) @@ -18182,8 +18182,8 @@ func decodeIssuesListResponse(resp *http.Response) (res IssuesListRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -18217,8 +18217,8 @@ func decodeIssuesListResponse(resp *http.Response) (res IssuesListRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -18258,8 +18258,8 @@ func decodeIssuesListAssigneesResponse(resp *http.Response) (res IssuesListAssig if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []SimpleUser if err := func() error { response = make([]SimpleUser, 0) @@ -18339,8 +18339,8 @@ func decodeIssuesListAssigneesResponse(resp *http.Response) (res IssuesListAssig if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -18380,8 +18380,8 @@ func decodeIssuesListCommentsResponse(resp *http.Response) (res IssuesListCommen if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []IssueComment if err := func() error { response = make([]IssueComment, 0) @@ -18461,8 +18461,8 @@ func decodeIssuesListCommentsResponse(resp *http.Response) (res IssuesListCommen if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesListCommentsApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -18496,8 +18496,8 @@ func decodeIssuesListCommentsResponse(resp *http.Response) (res IssuesListCommen if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesListCommentsApplicationJSONGone if err := func() error { if err := response.Decode(d); err != nil { @@ -18537,8 +18537,8 @@ func decodeIssuesListCommentsForRepoResponse(resp *http.Response) (res IssuesLis if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []IssueComment if err := func() error { response = make([]IssueComment, 0) @@ -18618,8 +18618,8 @@ func decodeIssuesListCommentsForRepoResponse(resp *http.Response) (res IssuesLis if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -18653,8 +18653,8 @@ func decodeIssuesListCommentsForRepoResponse(resp *http.Response) (res IssuesLis if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -18694,8 +18694,8 @@ func decodeIssuesListEventsForRepoResponse(resp *http.Response) (res IssuesListE if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []IssueEvent if err := func() error { response = make([]IssueEvent, 0) @@ -18775,8 +18775,8 @@ func decodeIssuesListEventsForRepoResponse(resp *http.Response) (res IssuesListE if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -18816,8 +18816,8 @@ func decodeIssuesListForAuthenticatedUserResponse(resp *http.Response) (res Issu if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Issue if err := func() error { response = make([]Issue, 0) @@ -18900,8 +18900,8 @@ func decodeIssuesListForAuthenticatedUserResponse(resp *http.Response) (res Issu if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -18941,8 +18941,8 @@ func decodeIssuesListForOrgResponse(resp *http.Response) (res IssuesListForOrgRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Issue if err := func() error { response = make([]Issue, 0) @@ -19022,8 +19022,8 @@ func decodeIssuesListForOrgResponse(resp *http.Response) (res IssuesListForOrgRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -19063,8 +19063,8 @@ func decodeIssuesListForRepoResponse(resp *http.Response) (res IssuesListForRepo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []IssueSimple if err := func() error { response = make([]IssueSimple, 0) @@ -19144,8 +19144,8 @@ func decodeIssuesListForRepoResponse(resp *http.Response) (res IssuesListForRepo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesListForRepoApplicationJSONMovedPermanently if err := func() error { if err := response.Decode(d); err != nil { @@ -19179,8 +19179,8 @@ func decodeIssuesListForRepoResponse(resp *http.Response) (res IssuesListForRepo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesListForRepoApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -19214,8 +19214,8 @@ func decodeIssuesListForRepoResponse(resp *http.Response) (res IssuesListForRepo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -19255,8 +19255,8 @@ func decodeIssuesListLabelsForMilestoneResponse(resp *http.Response) (res *Issue if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Label if err := func() error { response = make([]Label, 0) @@ -19342,8 +19342,8 @@ func decodeIssuesListLabelsForRepoResponse(resp *http.Response) (res IssuesListL if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Label if err := func() error { response = make([]Label, 0) @@ -19423,8 +19423,8 @@ func decodeIssuesListLabelsForRepoResponse(resp *http.Response) (res IssuesListL if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -19464,8 +19464,8 @@ func decodeIssuesListLabelsOnIssueResponse(resp *http.Response) (res IssuesListL if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Label if err := func() error { response = make([]Label, 0) @@ -19545,8 +19545,8 @@ func decodeIssuesListLabelsOnIssueResponse(resp *http.Response) (res IssuesListL if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -19586,8 +19586,8 @@ func decodeIssuesListMilestonesResponse(resp *http.Response) (res IssuesListMile if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Milestone if err := func() error { response = make([]Milestone, 0) @@ -19667,8 +19667,8 @@ func decodeIssuesListMilestonesResponse(resp *http.Response) (res IssuesListMile if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -19711,8 +19711,8 @@ func decodeIssuesLockResponse(resp *http.Response) (res IssuesLockRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesLockApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -19746,8 +19746,8 @@ func decodeIssuesLockResponse(resp *http.Response) (res IssuesLockRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesLockApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -19781,8 +19781,8 @@ func decodeIssuesLockResponse(resp *http.Response) (res IssuesLockRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesLockApplicationJSONGone if err := func() error { if err := response.Decode(d); err != nil { @@ -19816,8 +19816,8 @@ func decodeIssuesLockResponse(resp *http.Response) (res IssuesLockRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -19860,8 +19860,8 @@ func decodeIssuesRemoveAllLabelsResponse(resp *http.Response) (res IssuesRemoveA if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -19901,8 +19901,8 @@ func decodeIssuesRemoveAssigneesResponse(resp *http.Response) (res *IssueSimple, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssueSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -19942,8 +19942,8 @@ func decodeIssuesRemoveLabelResponse(resp *http.Response) (res IssuesRemoveLabel if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesRemoveLabelOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -19977,8 +19977,8 @@ func decodeIssuesRemoveLabelResponse(resp *http.Response) (res IssuesRemoveLabel if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesRemoveLabelApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -20012,8 +20012,8 @@ func decodeIssuesRemoveLabelResponse(resp *http.Response) (res IssuesRemoveLabel if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesRemoveLabelApplicationJSONGone if err := func() error { if err := response.Decode(d); err != nil { @@ -20056,8 +20056,8 @@ func decodeIssuesUnlockResponse(resp *http.Response) (res IssuesUnlockRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesUnlockApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -20091,8 +20091,8 @@ func decodeIssuesUnlockResponse(resp *http.Response) (res IssuesUnlockRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesUnlockApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -20132,8 +20132,8 @@ func decodeIssuesUpdateResponse(resp *http.Response) (res IssuesUpdateRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Issue if err := func() error { if err := response.Decode(d); err != nil { @@ -20167,8 +20167,8 @@ func decodeIssuesUpdateResponse(resp *http.Response) (res IssuesUpdateRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesUpdateApplicationJSONMovedPermanently if err := func() error { if err := response.Decode(d); err != nil { @@ -20202,8 +20202,8 @@ func decodeIssuesUpdateResponse(resp *http.Response) (res IssuesUpdateRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesUpdateApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -20237,8 +20237,8 @@ func decodeIssuesUpdateResponse(resp *http.Response) (res IssuesUpdateRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesUpdateApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -20272,8 +20272,8 @@ func decodeIssuesUpdateResponse(resp *http.Response) (res IssuesUpdateRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssuesUpdateApplicationJSONGone if err := func() error { if err := response.Decode(d); err != nil { @@ -20307,8 +20307,8 @@ func decodeIssuesUpdateResponse(resp *http.Response) (res IssuesUpdateRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -20342,8 +20342,8 @@ func decodeIssuesUpdateResponse(resp *http.Response) (res IssuesUpdateRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -20383,8 +20383,8 @@ func decodeIssuesUpdateCommentResponse(resp *http.Response) (res IssuesUpdateCom if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IssueComment if err := func() error { if err := response.Decode(d); err != nil { @@ -20418,8 +20418,8 @@ func decodeIssuesUpdateCommentResponse(resp *http.Response) (res IssuesUpdateCom if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -20459,8 +20459,8 @@ func decodeIssuesUpdateLabelResponse(resp *http.Response) (res *Label, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Label if err := func() error { if err := response.Decode(d); err != nil { @@ -20500,8 +20500,8 @@ func decodeIssuesUpdateMilestoneResponse(resp *http.Response) (res *Milestone, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Milestone if err := func() error { if err := response.Decode(d); err != nil { @@ -20541,8 +20541,8 @@ func decodeLicensesGetResponse(resp *http.Response) (res LicensesGetRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response License if err := func() error { if err := response.Decode(d); err != nil { @@ -20579,8 +20579,8 @@ func decodeLicensesGetResponse(resp *http.Response) (res LicensesGetRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response LicensesGetApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -20614,8 +20614,8 @@ func decodeLicensesGetResponse(resp *http.Response) (res LicensesGetRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response LicensesGetApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -20655,8 +20655,8 @@ func decodeLicensesGetAllCommonlyUsedResponse(resp *http.Response) (res Licenses if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response LicensesGetAllCommonlyUsedOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -20699,8 +20699,8 @@ func decodeLicensesGetForRepoResponse(resp *http.Response) (res *LicenseContent, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response LicenseContent if err := func() error { if err := response.Decode(d); err != nil { @@ -20907,8 +20907,8 @@ func decodeMetaGetResponse(resp *http.Response) (res MetaGetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response APIOverview if err := func() error { if err := response.Decode(d); err != nil { @@ -21001,8 +21001,8 @@ func decodeMetaRootResponse(resp *http.Response) (res *MetaRootOK, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MetaRootOK if err := func() error { if err := response.Decode(d); err != nil { @@ -21057,8 +21057,8 @@ func decodeMigrationsDeleteArchiveForAuthenticatedUserResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MigrationsDeleteArchiveForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -21092,8 +21092,8 @@ func decodeMigrationsDeleteArchiveForAuthenticatedUserResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MigrationsDeleteArchiveForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -21127,8 +21127,8 @@ func decodeMigrationsDeleteArchiveForAuthenticatedUserResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MigrationsDeleteArchiveForAuthenticatedUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -21171,8 +21171,8 @@ func decodeMigrationsDeleteArchiveForOrgResponse(resp *http.Response) (res Migra if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -21215,8 +21215,8 @@ func decodeMigrationsDownloadArchiveForOrgResponse(resp *http.Response) (res Mig if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -21262,8 +21262,8 @@ func decodeMigrationsGetArchiveForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MigrationsGetArchiveForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -21297,8 +21297,8 @@ func decodeMigrationsGetArchiveForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MigrationsGetArchiveForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -21338,8 +21338,8 @@ func decodeMigrationsGetCommitAuthorsResponse(resp *http.Response) (res Migratio if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MigrationsGetCommitAuthorsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -21373,8 +21373,8 @@ func decodeMigrationsGetCommitAuthorsResponse(resp *http.Response) (res Migratio if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -21414,8 +21414,8 @@ func decodeMigrationsGetImportStatusResponse(resp *http.Response) (res Migration if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Import if err := func() error { if err := response.Decode(d); err != nil { @@ -21449,8 +21449,8 @@ func decodeMigrationsGetImportStatusResponse(resp *http.Response) (res Migration if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -21490,8 +21490,8 @@ func decodeMigrationsGetLargeFilesResponse(resp *http.Response) (res []PorterLar if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []PorterLargeFile if err := func() error { response = make([]PorterLargeFile, 0) @@ -21539,8 +21539,8 @@ func decodeMigrationsGetStatusForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Migration if err := func() error { if err := response.Decode(d); err != nil { @@ -21577,8 +21577,8 @@ func decodeMigrationsGetStatusForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MigrationsGetStatusForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -21612,8 +21612,8 @@ func decodeMigrationsGetStatusForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MigrationsGetStatusForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -21647,8 +21647,8 @@ func decodeMigrationsGetStatusForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MigrationsGetStatusForAuthenticatedUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -21688,8 +21688,8 @@ func decodeMigrationsGetStatusForOrgResponse(resp *http.Response) (res Migration if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Migration if err := func() error { if err := response.Decode(d); err != nil { @@ -21723,8 +21723,8 @@ func decodeMigrationsGetStatusForOrgResponse(resp *http.Response) (res Migration if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -21764,8 +21764,8 @@ func decodeMigrationsListForAuthenticatedUserResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Migration if err := func() error { response = make([]Migration, 0) @@ -21848,8 +21848,8 @@ func decodeMigrationsListForAuthenticatedUserResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MigrationsListForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -21883,8 +21883,8 @@ func decodeMigrationsListForAuthenticatedUserResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MigrationsListForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -21924,8 +21924,8 @@ func decodeMigrationsListForOrgResponse(resp *http.Response) (res *MigrationsLis if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Migration if err := func() error { response = make([]Migration, 0) @@ -22011,8 +22011,8 @@ func decodeMigrationsListReposForOrgResponse(resp *http.Response) (res Migration if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []MinimalRepository if err := func() error { response = make([]MinimalRepository, 0) @@ -22092,8 +22092,8 @@ func decodeMigrationsListReposForOrgResponse(resp *http.Response) (res Migration if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -22133,8 +22133,8 @@ func decodeMigrationsListReposForUserResponse(resp *http.Response) (res Migratio if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []MinimalRepository if err := func() error { response = make([]MinimalRepository, 0) @@ -22214,8 +22214,8 @@ func decodeMigrationsListReposForUserResponse(resp *http.Response) (res Migratio if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -22255,8 +22255,8 @@ func decodeMigrationsMapCommitAuthorResponse(resp *http.Response) (res Migration if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PorterAuthor if err := func() error { if err := response.Decode(d); err != nil { @@ -22290,8 +22290,8 @@ func decodeMigrationsMapCommitAuthorResponse(resp *http.Response) (res Migration if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -22325,8 +22325,8 @@ func decodeMigrationsMapCommitAuthorResponse(resp *http.Response) (res Migration if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -22366,8 +22366,8 @@ func decodeMigrationsSetLfsPreferenceResponse(resp *http.Response) (res Migratio if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Import if err := func() error { if err := response.Decode(d); err != nil { @@ -22401,8 +22401,8 @@ func decodeMigrationsSetLfsPreferenceResponse(resp *http.Response) (res Migratio if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -22442,8 +22442,8 @@ func decodeMigrationsStartForAuthenticatedUserResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Migration if err := func() error { if err := response.Decode(d); err != nil { @@ -22480,8 +22480,8 @@ func decodeMigrationsStartForAuthenticatedUserResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MigrationsStartForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -22515,8 +22515,8 @@ func decodeMigrationsStartForAuthenticatedUserResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MigrationsStartForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -22550,8 +22550,8 @@ func decodeMigrationsStartForAuthenticatedUserResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -22591,8 +22591,8 @@ func decodeMigrationsStartForOrgResponse(resp *http.Response) (res MigrationsSta if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Migration if err := func() error { if err := response.Decode(d); err != nil { @@ -22626,8 +22626,8 @@ func decodeMigrationsStartForOrgResponse(resp *http.Response) (res MigrationsSta if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -22661,8 +22661,8 @@ func decodeMigrationsStartForOrgResponse(resp *http.Response) (res MigrationsSta if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -22702,8 +22702,8 @@ func decodeMigrationsStartImportResponse(resp *http.Response) (res MigrationsSta if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Import if err := func() error { if err := response.Decode(d); err != nil { @@ -22775,8 +22775,8 @@ func decodeMigrationsStartImportResponse(resp *http.Response) (res MigrationsSta if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -22810,8 +22810,8 @@ func decodeMigrationsStartImportResponse(resp *http.Response) (res MigrationsSta if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -22857,8 +22857,8 @@ func decodeMigrationsUnlockRepoForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MigrationsUnlockRepoForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -22892,8 +22892,8 @@ func decodeMigrationsUnlockRepoForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MigrationsUnlockRepoForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -22927,8 +22927,8 @@ func decodeMigrationsUnlockRepoForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MigrationsUnlockRepoForAuthenticatedUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -22971,8 +22971,8 @@ func decodeMigrationsUnlockRepoForOrgResponse(resp *http.Response) (res Migratio if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -23012,8 +23012,8 @@ func decodeMigrationsUpdateImportResponse(resp *http.Response) (res *Import, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Import if err := func() error { if err := response.Decode(d); err != nil { @@ -23053,8 +23053,8 @@ func decodeOAuthAuthorizationsCreateAuthorizationResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Authorization if err := func() error { if err := response.Decode(d); err != nil { @@ -23129,8 +23129,8 @@ func decodeOAuthAuthorizationsCreateAuthorizationResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OAuthAuthorizationsCreateAuthorizationApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -23164,8 +23164,8 @@ func decodeOAuthAuthorizationsCreateAuthorizationResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OAuthAuthorizationsCreateAuthorizationApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -23199,8 +23199,8 @@ func decodeOAuthAuthorizationsCreateAuthorizationResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OAuthAuthorizationsCreateAuthorizationApplicationJSONGone if err := func() error { if err := response.Decode(d); err != nil { @@ -23234,8 +23234,8 @@ func decodeOAuthAuthorizationsCreateAuthorizationResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -23281,8 +23281,8 @@ func decodeOAuthAuthorizationsDeleteAuthorizationResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OAuthAuthorizationsDeleteAuthorizationApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -23316,8 +23316,8 @@ func decodeOAuthAuthorizationsDeleteAuthorizationResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OAuthAuthorizationsDeleteAuthorizationApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -23363,8 +23363,8 @@ func decodeOAuthAuthorizationsDeleteGrantResponse(resp *http.Response) (res OAut if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OAuthAuthorizationsDeleteGrantApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -23398,8 +23398,8 @@ func decodeOAuthAuthorizationsDeleteGrantResponse(resp *http.Response) (res OAut if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OAuthAuthorizationsDeleteGrantApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -23439,8 +23439,8 @@ func decodeOAuthAuthorizationsGetAuthorizationResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Authorization if err := func() error { if err := response.Decode(d); err != nil { @@ -23477,8 +23477,8 @@ func decodeOAuthAuthorizationsGetAuthorizationResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OAuthAuthorizationsGetAuthorizationApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -23512,8 +23512,8 @@ func decodeOAuthAuthorizationsGetAuthorizationResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OAuthAuthorizationsGetAuthorizationApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -23553,8 +23553,8 @@ func decodeOAuthAuthorizationsGetGrantResponse(resp *http.Response) (res OAuthAu if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ApplicationGrant if err := func() error { if err := response.Decode(d); err != nil { @@ -23591,8 +23591,8 @@ func decodeOAuthAuthorizationsGetGrantResponse(resp *http.Response) (res OAuthAu if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OAuthAuthorizationsGetGrantApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -23626,8 +23626,8 @@ func decodeOAuthAuthorizationsGetGrantResponse(resp *http.Response) (res OAuthAu if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OAuthAuthorizationsGetGrantApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -23667,8 +23667,8 @@ func decodeOAuthAuthorizationsGetOrCreateAuthorizationForAppResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Authorization if err := func() error { if err := response.Decode(d); err != nil { @@ -23740,8 +23740,8 @@ func decodeOAuthAuthorizationsGetOrCreateAuthorizationForAppResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Authorization if err := func() error { if err := response.Decode(d); err != nil { @@ -23816,8 +23816,8 @@ func decodeOAuthAuthorizationsGetOrCreateAuthorizationForAppResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OAuthAuthorizationsGetOrCreateAuthorizationForAppApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -23851,8 +23851,8 @@ func decodeOAuthAuthorizationsGetOrCreateAuthorizationForAppResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OAuthAuthorizationsGetOrCreateAuthorizationForAppApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -23886,8 +23886,8 @@ func decodeOAuthAuthorizationsGetOrCreateAuthorizationForAppResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -23927,8 +23927,8 @@ func decodeOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintRespon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Authorization if err := func() error { if err := response.Decode(d); err != nil { @@ -24000,8 +24000,8 @@ func decodeOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintRespon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Authorization if err := func() error { if err := response.Decode(d); err != nil { @@ -24073,8 +24073,8 @@ func decodeOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintRespon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -24114,8 +24114,8 @@ func decodeOAuthAuthorizationsListAuthorizationsResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Authorization if err := func() error { response = make([]Authorization, 0) @@ -24198,8 +24198,8 @@ func decodeOAuthAuthorizationsListAuthorizationsResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OAuthAuthorizationsListAuthorizationsApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -24233,8 +24233,8 @@ func decodeOAuthAuthorizationsListAuthorizationsResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OAuthAuthorizationsListAuthorizationsApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -24268,8 +24268,8 @@ func decodeOAuthAuthorizationsListAuthorizationsResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OAuthAuthorizationsListAuthorizationsApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -24309,8 +24309,8 @@ func decodeOAuthAuthorizationsListGrantsResponse(resp *http.Response) (res OAuth if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []ApplicationGrant if err := func() error { response = make([]ApplicationGrant, 0) @@ -24393,8 +24393,8 @@ func decodeOAuthAuthorizationsListGrantsResponse(resp *http.Response) (res OAuth if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OAuthAuthorizationsListGrantsApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -24428,8 +24428,8 @@ func decodeOAuthAuthorizationsListGrantsResponse(resp *http.Response) (res OAuth if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OAuthAuthorizationsListGrantsApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -24463,8 +24463,8 @@ func decodeOAuthAuthorizationsListGrantsResponse(resp *http.Response) (res OAuth if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OAuthAuthorizationsListGrantsApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -24504,8 +24504,8 @@ func decodeOAuthAuthorizationsUpdateAuthorizationResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Authorization if err := func() error { if err := response.Decode(d); err != nil { @@ -24539,8 +24539,8 @@ func decodeOAuthAuthorizationsUpdateAuthorizationResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -24583,8 +24583,8 @@ func decodeOrgsBlockUserResponse(resp *http.Response) (res OrgsBlockUserRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -24627,8 +24627,8 @@ func decodeOrgsCancelInvitationResponse(resp *http.Response) (res OrgsCancelInvi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -24662,8 +24662,8 @@ func decodeOrgsCancelInvitationResponse(resp *http.Response) (res OrgsCancelInvi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -24706,8 +24706,8 @@ func decodeOrgsCheckBlockedUserResponse(resp *http.Response) (res OrgsCheckBlock if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -24811,8 +24811,8 @@ func decodeOrgsConvertMemberToOutsideCollaboratorResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgsConvertMemberToOutsideCollaboratorAccepted if err := func() error { if err := response.Decode(d); err != nil { @@ -24852,8 +24852,8 @@ func decodeOrgsConvertMemberToOutsideCollaboratorResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -24893,8 +24893,8 @@ func decodeOrgsCreateInvitationResponse(resp *http.Response) (res OrgsCreateInvi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrganizationInvitation if err := func() error { if err := response.Decode(d); err != nil { @@ -24928,8 +24928,8 @@ func decodeOrgsCreateInvitationResponse(resp *http.Response) (res OrgsCreateInvi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -24963,8 +24963,8 @@ func decodeOrgsCreateInvitationResponse(resp *http.Response) (res OrgsCreateInvi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -25004,8 +25004,8 @@ func decodeOrgsCreateWebhookResponse(resp *http.Response) (res OrgsCreateWebhook if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgHook if err := func() error { if err := response.Decode(d); err != nil { @@ -25077,8 +25077,8 @@ func decodeOrgsCreateWebhookResponse(resp *http.Response) (res OrgsCreateWebhook if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -25112,8 +25112,8 @@ func decodeOrgsCreateWebhookResponse(resp *http.Response) (res OrgsCreateWebhook if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -25156,8 +25156,8 @@ func decodeOrgsDeleteWebhookResponse(resp *http.Response) (res OrgsDeleteWebhook if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -25197,8 +25197,8 @@ func decodeOrgsGetResponse(resp *http.Response) (res OrgsGetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrganizationFull if err := func() error { if err := response.Decode(d); err != nil { @@ -25232,8 +25232,8 @@ func decodeOrgsGetResponse(resp *http.Response) (res OrgsGetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -25273,8 +25273,8 @@ func decodeOrgsGetAuditLogResponse(resp *http.Response) (res []AuditLogEvent, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []AuditLogEvent if err := func() error { response = make([]AuditLogEvent, 0) @@ -25322,8 +25322,8 @@ func decodeOrgsGetMembershipForAuthenticatedUserResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgMembership if err := func() error { if err := response.Decode(d); err != nil { @@ -25357,8 +25357,8 @@ func decodeOrgsGetMembershipForAuthenticatedUserResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgsGetMembershipForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -25392,8 +25392,8 @@ func decodeOrgsGetMembershipForAuthenticatedUserResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgsGetMembershipForAuthenticatedUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -25433,8 +25433,8 @@ func decodeOrgsGetMembershipForUserResponse(resp *http.Response) (res OrgsGetMem if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgMembership if err := func() error { if err := response.Decode(d); err != nil { @@ -25468,8 +25468,8 @@ func decodeOrgsGetMembershipForUserResponse(resp *http.Response) (res OrgsGetMem if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgsGetMembershipForUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -25503,8 +25503,8 @@ func decodeOrgsGetMembershipForUserResponse(resp *http.Response) (res OrgsGetMem if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgsGetMembershipForUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -25544,8 +25544,8 @@ func decodeOrgsGetWebhookResponse(resp *http.Response) (res OrgsGetWebhookRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgHook if err := func() error { if err := response.Decode(d); err != nil { @@ -25579,8 +25579,8 @@ func decodeOrgsGetWebhookResponse(resp *http.Response) (res OrgsGetWebhookRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -25620,8 +25620,8 @@ func decodeOrgsGetWebhookConfigForOrgResponse(resp *http.Response) (res *Webhook if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response WebhookConfig if err := func() error { if err := response.Decode(d); err != nil { @@ -25661,8 +25661,8 @@ func decodeOrgsGetWebhookDeliveryResponse(resp *http.Response) (res OrgsGetWebho if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response HookDelivery if err := func() error { if err := response.Decode(d); err != nil { @@ -25696,8 +25696,8 @@ func decodeOrgsGetWebhookDeliveryResponse(resp *http.Response) (res OrgsGetWebho if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -25731,8 +25731,8 @@ func decodeOrgsGetWebhookDeliveryResponse(resp *http.Response) (res OrgsGetWebho if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -25772,8 +25772,8 @@ func decodeOrgsListResponse(resp *http.Response) (res OrgsListRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []OrganizationSimple if err := func() error { response = make([]OrganizationSimple, 0) @@ -25862,8 +25862,8 @@ func decodeOrgsListBlockedUsersResponse(resp *http.Response) (res OrgsListBlocke if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgsListBlockedUsersOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -25897,8 +25897,8 @@ func decodeOrgsListBlockedUsersResponse(resp *http.Response) (res OrgsListBlocke if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -25938,8 +25938,8 @@ func decodeOrgsListFailedInvitationsResponse(resp *http.Response) (res OrgsListF if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []OrganizationInvitation if err := func() error { response = make([]OrganizationInvitation, 0) @@ -26019,8 +26019,8 @@ func decodeOrgsListFailedInvitationsResponse(resp *http.Response) (res OrgsListF if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -26060,8 +26060,8 @@ func decodeOrgsListForAuthenticatedUserResponse(resp *http.Response) (res OrgsLi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []OrganizationSimple if err := func() error { response = make([]OrganizationSimple, 0) @@ -26144,8 +26144,8 @@ func decodeOrgsListForAuthenticatedUserResponse(resp *http.Response) (res OrgsLi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgsListForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -26179,8 +26179,8 @@ func decodeOrgsListForAuthenticatedUserResponse(resp *http.Response) (res OrgsLi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgsListForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -26220,8 +26220,8 @@ func decodeOrgsListForUserResponse(resp *http.Response) (res *OrgsListForUserOKH if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []OrganizationSimple if err := func() error { response = make([]OrganizationSimple, 0) @@ -26307,8 +26307,8 @@ func decodeOrgsListInvitationTeamsResponse(resp *http.Response) (res OrgsListInv if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Team if err := func() error { response = make([]Team, 0) @@ -26388,8 +26388,8 @@ func decodeOrgsListInvitationTeamsResponse(resp *http.Response) (res OrgsListInv if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -26429,8 +26429,8 @@ func decodeOrgsListMembersResponse(resp *http.Response) (res OrgsListMembersRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []SimpleUser if err := func() error { response = make([]SimpleUser, 0) @@ -26550,8 +26550,8 @@ func decodeOrgsListMembersResponse(resp *http.Response) (res OrgsListMembersRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -26591,8 +26591,8 @@ func decodeOrgsListMembershipsForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []OrgMembership if err := func() error { response = make([]OrgMembership, 0) @@ -26675,8 +26675,8 @@ func decodeOrgsListMembershipsForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgsListMembershipsForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -26710,8 +26710,8 @@ func decodeOrgsListMembershipsForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgsListMembershipsForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -26745,8 +26745,8 @@ func decodeOrgsListMembershipsForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -26786,8 +26786,8 @@ func decodeOrgsListOutsideCollaboratorsResponse(resp *http.Response) (res *OrgsL if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []SimpleUser if err := func() error { response = make([]SimpleUser, 0) @@ -26873,8 +26873,8 @@ func decodeOrgsListPendingInvitationsResponse(resp *http.Response) (res OrgsList if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []OrganizationInvitation if err := func() error { response = make([]OrganizationInvitation, 0) @@ -26954,8 +26954,8 @@ func decodeOrgsListPendingInvitationsResponse(resp *http.Response) (res OrgsList if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -26995,8 +26995,8 @@ func decodeOrgsListPublicMembersResponse(resp *http.Response) (res *OrgsListPubl if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []SimpleUser if err := func() error { response = make([]SimpleUser, 0) @@ -27082,8 +27082,8 @@ func decodeOrgsListSamlSSOAuthorizationsResponse(resp *http.Response) (res []Cre if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []CredentialAuthorization if err := func() error { response = make([]CredentialAuthorization, 0) @@ -27131,8 +27131,8 @@ func decodeOrgsListWebhookDeliveriesResponse(resp *http.Response) (res OrgsListW if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgsListWebhookDeliveriesOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -27166,8 +27166,8 @@ func decodeOrgsListWebhookDeliveriesResponse(resp *http.Response) (res OrgsListW if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -27201,8 +27201,8 @@ func decodeOrgsListWebhookDeliveriesResponse(resp *http.Response) (res OrgsListW if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -27242,8 +27242,8 @@ func decodeOrgsListWebhooksResponse(resp *http.Response) (res OrgsListWebhooksRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []OrgHook if err := func() error { response = make([]OrgHook, 0) @@ -27323,8 +27323,8 @@ func decodeOrgsListWebhooksResponse(resp *http.Response) (res OrgsListWebhooksRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -27367,8 +27367,8 @@ func decodeOrgsPingWebhookResponse(resp *http.Response) (res OrgsPingWebhookRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -27408,8 +27408,8 @@ func decodeOrgsRedeliverWebhookDeliveryResponse(resp *http.Response) (res OrgsRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Accepted if err := func() error { if err := response.Decode(d); err != nil { @@ -27443,8 +27443,8 @@ func decodeOrgsRedeliverWebhookDeliveryResponse(resp *http.Response) (res OrgsRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -27478,8 +27478,8 @@ func decodeOrgsRedeliverWebhookDeliveryResponse(resp *http.Response) (res OrgsRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -27522,8 +27522,8 @@ func decodeOrgsRemoveMemberResponse(resp *http.Response) (res OrgsRemoveMemberRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -27566,8 +27566,8 @@ func decodeOrgsRemoveMembershipForUserResponse(resp *http.Response) (res OrgsRem if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgsRemoveMembershipForUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -27601,8 +27601,8 @@ func decodeOrgsRemoveMembershipForUserResponse(resp *http.Response) (res OrgsRem if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgsRemoveMembershipForUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -27645,8 +27645,8 @@ func decodeOrgsRemoveOutsideCollaboratorResponse(resp *http.Response) (res OrgsR if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgsRemoveOutsideCollaboratorUnprocessableEntity if err := func() error { if err := response.Decode(d); err != nil { @@ -27698,8 +27698,8 @@ func decodeOrgsRemoveSamlSSOAuthorizationResponse(resp *http.Response) (res Orgs if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -27739,8 +27739,8 @@ func decodeOrgsSetMembershipForUserResponse(resp *http.Response) (res OrgsSetMem if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgMembership if err := func() error { if err := response.Decode(d); err != nil { @@ -27774,8 +27774,8 @@ func decodeOrgsSetMembershipForUserResponse(resp *http.Response) (res OrgsSetMem if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -27809,8 +27809,8 @@ func decodeOrgsSetMembershipForUserResponse(resp *http.Response) (res OrgsSetMem if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -27853,8 +27853,8 @@ func decodeOrgsSetPublicMembershipForAuthenticatedUserResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -27903,8 +27903,8 @@ func decodeOrgsUpdateMembershipForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgMembership if err := func() error { if err := response.Decode(d); err != nil { @@ -27938,8 +27938,8 @@ func decodeOrgsUpdateMembershipForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgsUpdateMembershipForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -27973,8 +27973,8 @@ func decodeOrgsUpdateMembershipForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgsUpdateMembershipForAuthenticatedUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -28008,8 +28008,8 @@ func decodeOrgsUpdateMembershipForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -28049,8 +28049,8 @@ func decodeOrgsUpdateWebhookResponse(resp *http.Response) (res OrgsUpdateWebhook if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrgHook if err := func() error { if err := response.Decode(d); err != nil { @@ -28084,8 +28084,8 @@ func decodeOrgsUpdateWebhookResponse(resp *http.Response) (res OrgsUpdateWebhook if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -28119,8 +28119,8 @@ func decodeOrgsUpdateWebhookResponse(resp *http.Response) (res OrgsUpdateWebhook if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -28160,8 +28160,8 @@ func decodeOrgsUpdateWebhookConfigForOrgResponse(resp *http.Response) (res *Webh if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response WebhookConfig if err := func() error { if err := response.Decode(d); err != nil { @@ -28204,8 +28204,8 @@ func decodePackagesDeletePackageForAuthenticatedUserResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesDeletePackageForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -28239,8 +28239,8 @@ func decodePackagesDeletePackageForAuthenticatedUserResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesDeletePackageForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -28274,8 +28274,8 @@ func decodePackagesDeletePackageForAuthenticatedUserResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesDeletePackageForAuthenticatedUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -28318,8 +28318,8 @@ func decodePackagesDeletePackageForOrgResponse(resp *http.Response) (res Package if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesDeletePackageForOrgApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -28353,8 +28353,8 @@ func decodePackagesDeletePackageForOrgResponse(resp *http.Response) (res Package if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesDeletePackageForOrgApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -28388,8 +28388,8 @@ func decodePackagesDeletePackageForOrgResponse(resp *http.Response) (res Package if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesDeletePackageForOrgApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -28432,8 +28432,8 @@ func decodePackagesDeletePackageForUserResponse(resp *http.Response) (res Packag if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesDeletePackageForUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -28467,8 +28467,8 @@ func decodePackagesDeletePackageForUserResponse(resp *http.Response) (res Packag if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesDeletePackageForUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -28502,8 +28502,8 @@ func decodePackagesDeletePackageForUserResponse(resp *http.Response) (res Packag if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesDeletePackageForUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -28546,8 +28546,8 @@ func decodePackagesDeletePackageVersionForAuthenticatedUserResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesDeletePackageVersionForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -28581,8 +28581,8 @@ func decodePackagesDeletePackageVersionForAuthenticatedUserResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesDeletePackageVersionForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -28616,8 +28616,8 @@ func decodePackagesDeletePackageVersionForAuthenticatedUserResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesDeletePackageVersionForAuthenticatedUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -28660,8 +28660,8 @@ func decodePackagesDeletePackageVersionForOrgResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesDeletePackageVersionForOrgApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -28695,8 +28695,8 @@ func decodePackagesDeletePackageVersionForOrgResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesDeletePackageVersionForOrgApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -28730,8 +28730,8 @@ func decodePackagesDeletePackageVersionForOrgResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesDeletePackageVersionForOrgApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -28774,8 +28774,8 @@ func decodePackagesDeletePackageVersionForUserResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesDeletePackageVersionForUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -28809,8 +28809,8 @@ func decodePackagesDeletePackageVersionForUserResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesDeletePackageVersionForUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -28844,8 +28844,8 @@ func decodePackagesDeletePackageVersionForUserResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesDeletePackageVersionForUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -28885,8 +28885,8 @@ func decodePackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserRespon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -28920,8 +28920,8 @@ func decodePackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserRespon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -28955,8 +28955,8 @@ func decodePackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserRespon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -28990,8 +28990,8 @@ func decodePackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserRespon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -29031,8 +29031,8 @@ func decodePackagesGetAllPackageVersionsForPackageOwnedByOrgResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesGetAllPackageVersionsForPackageOwnedByOrgOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -29066,8 +29066,8 @@ func decodePackagesGetAllPackageVersionsForPackageOwnedByOrgResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesGetAllPackageVersionsForPackageOwnedByOrgApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -29101,8 +29101,8 @@ func decodePackagesGetAllPackageVersionsForPackageOwnedByOrgResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesGetAllPackageVersionsForPackageOwnedByOrgApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -29136,8 +29136,8 @@ func decodePackagesGetAllPackageVersionsForPackageOwnedByOrgResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesGetAllPackageVersionsForPackageOwnedByOrgApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -29177,8 +29177,8 @@ func decodePackagesGetAllPackageVersionsForPackageOwnedByUserResponse(resp *http if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesGetAllPackageVersionsForPackageOwnedByUserOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -29212,8 +29212,8 @@ func decodePackagesGetAllPackageVersionsForPackageOwnedByUserResponse(resp *http if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesGetAllPackageVersionsForPackageOwnedByUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -29247,8 +29247,8 @@ func decodePackagesGetAllPackageVersionsForPackageOwnedByUserResponse(resp *http if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesGetAllPackageVersionsForPackageOwnedByUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -29282,8 +29282,8 @@ func decodePackagesGetAllPackageVersionsForPackageOwnedByUserResponse(resp *http if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesGetAllPackageVersionsForPackageOwnedByUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -29323,8 +29323,8 @@ func decodePackagesGetPackageForAuthenticatedUserResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Package if err := func() error { if err := response.Decode(d); err != nil { @@ -29364,8 +29364,8 @@ func decodePackagesGetPackageForOrganizationResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Package if err := func() error { if err := response.Decode(d); err != nil { @@ -29405,8 +29405,8 @@ func decodePackagesGetPackageForUserResponse(resp *http.Response) (res *Package, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Package if err := func() error { if err := response.Decode(d); err != nil { @@ -29446,8 +29446,8 @@ func decodePackagesGetPackageVersionForAuthenticatedUserResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackageVersion if err := func() error { if err := response.Decode(d); err != nil { @@ -29487,8 +29487,8 @@ func decodePackagesGetPackageVersionForOrganizationResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackageVersion if err := func() error { if err := response.Decode(d); err != nil { @@ -29528,8 +29528,8 @@ func decodePackagesGetPackageVersionForUserResponse(resp *http.Response) (res *P if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackageVersion if err := func() error { if err := response.Decode(d); err != nil { @@ -29569,8 +29569,8 @@ func decodePackagesListPackagesForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Package if err := func() error { response = make([]Package, 0) @@ -29618,8 +29618,8 @@ func decodePackagesListPackagesForOrganizationResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesListPackagesForOrganizationOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -29653,8 +29653,8 @@ func decodePackagesListPackagesForOrganizationResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesListPackagesForOrganizationApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -29688,8 +29688,8 @@ func decodePackagesListPackagesForOrganizationResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesListPackagesForOrganizationApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -29729,8 +29729,8 @@ func decodePackagesListPackagesForUserResponse(resp *http.Response) (res Package if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesListPackagesForUserOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -29764,8 +29764,8 @@ func decodePackagesListPackagesForUserResponse(resp *http.Response) (res Package if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesListPackagesForUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -29799,8 +29799,8 @@ func decodePackagesListPackagesForUserResponse(resp *http.Response) (res Package if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesListPackagesForUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -29843,8 +29843,8 @@ func decodePackagesRestorePackageForAuthenticatedUserResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesRestorePackageForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -29878,8 +29878,8 @@ func decodePackagesRestorePackageForAuthenticatedUserResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesRestorePackageForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -29913,8 +29913,8 @@ func decodePackagesRestorePackageForAuthenticatedUserResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesRestorePackageForAuthenticatedUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -29957,8 +29957,8 @@ func decodePackagesRestorePackageForOrgResponse(resp *http.Response) (res Packag if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesRestorePackageForOrgApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -29992,8 +29992,8 @@ func decodePackagesRestorePackageForOrgResponse(resp *http.Response) (res Packag if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesRestorePackageForOrgApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -30027,8 +30027,8 @@ func decodePackagesRestorePackageForOrgResponse(resp *http.Response) (res Packag if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesRestorePackageForOrgApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -30071,8 +30071,8 @@ func decodePackagesRestorePackageForUserResponse(resp *http.Response) (res Packa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesRestorePackageForUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -30106,8 +30106,8 @@ func decodePackagesRestorePackageForUserResponse(resp *http.Response) (res Packa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesRestorePackageForUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -30141,8 +30141,8 @@ func decodePackagesRestorePackageForUserResponse(resp *http.Response) (res Packa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesRestorePackageForUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -30185,8 +30185,8 @@ func decodePackagesRestorePackageVersionForAuthenticatedUserResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesRestorePackageVersionForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -30220,8 +30220,8 @@ func decodePackagesRestorePackageVersionForAuthenticatedUserResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesRestorePackageVersionForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -30255,8 +30255,8 @@ func decodePackagesRestorePackageVersionForAuthenticatedUserResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesRestorePackageVersionForAuthenticatedUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -30299,8 +30299,8 @@ func decodePackagesRestorePackageVersionForOrgResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesRestorePackageVersionForOrgApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -30334,8 +30334,8 @@ func decodePackagesRestorePackageVersionForOrgResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesRestorePackageVersionForOrgApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -30369,8 +30369,8 @@ func decodePackagesRestorePackageVersionForOrgResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesRestorePackageVersionForOrgApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -30413,8 +30413,8 @@ func decodePackagesRestorePackageVersionForUserResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesRestorePackageVersionForUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -30448,8 +30448,8 @@ func decodePackagesRestorePackageVersionForUserResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesRestorePackageVersionForUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -30483,8 +30483,8 @@ func decodePackagesRestorePackageVersionForUserResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PackagesRestorePackageVersionForUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -30530,8 +30530,8 @@ func decodeProjectsAddCollaboratorResponse(resp *http.Response) (res ProjectsAdd if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsAddCollaboratorApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -30565,8 +30565,8 @@ func decodeProjectsAddCollaboratorResponse(resp *http.Response) (res ProjectsAdd if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsAddCollaboratorApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -30600,8 +30600,8 @@ func decodeProjectsAddCollaboratorResponse(resp *http.Response) (res ProjectsAdd if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsAddCollaboratorApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -30635,8 +30635,8 @@ func decodeProjectsAddCollaboratorResponse(resp *http.Response) (res ProjectsAdd if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -30676,8 +30676,8 @@ func decodeProjectsCreateColumnResponse(resp *http.Response) (res ProjectsCreate if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectColumn if err := func() error { if err := response.Decode(d); err != nil { @@ -30714,8 +30714,8 @@ func decodeProjectsCreateColumnResponse(resp *http.Response) (res ProjectsCreate if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsCreateColumnApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -30749,8 +30749,8 @@ func decodeProjectsCreateColumnResponse(resp *http.Response) (res ProjectsCreate if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsCreateColumnApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -30784,8 +30784,8 @@ func decodeProjectsCreateColumnResponse(resp *http.Response) (res ProjectsCreate if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationErrorSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -30825,8 +30825,8 @@ func decodeProjectsCreateForAuthenticatedUserResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Project if err := func() error { if err := response.Decode(d); err != nil { @@ -30863,8 +30863,8 @@ func decodeProjectsCreateForAuthenticatedUserResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsCreateForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -30898,8 +30898,8 @@ func decodeProjectsCreateForAuthenticatedUserResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsCreateForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -30933,8 +30933,8 @@ func decodeProjectsCreateForAuthenticatedUserResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -30968,8 +30968,8 @@ func decodeProjectsCreateForAuthenticatedUserResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationErrorSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -31009,8 +31009,8 @@ func decodeProjectsCreateForOrgResponse(resp *http.Response) (res ProjectsCreate if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Project if err := func() error { if err := response.Decode(d); err != nil { @@ -31044,8 +31044,8 @@ func decodeProjectsCreateForOrgResponse(resp *http.Response) (res ProjectsCreate if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsCreateForOrgApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -31079,8 +31079,8 @@ func decodeProjectsCreateForOrgResponse(resp *http.Response) (res ProjectsCreate if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsCreateForOrgApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -31114,8 +31114,8 @@ func decodeProjectsCreateForOrgResponse(resp *http.Response) (res ProjectsCreate if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsCreateForOrgApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -31149,8 +31149,8 @@ func decodeProjectsCreateForOrgResponse(resp *http.Response) (res ProjectsCreate if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsCreateForOrgApplicationJSONGone if err := func() error { if err := response.Decode(d); err != nil { @@ -31184,8 +31184,8 @@ func decodeProjectsCreateForOrgResponse(resp *http.Response) (res ProjectsCreate if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationErrorSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -31225,8 +31225,8 @@ func decodeProjectsCreateForRepoResponse(resp *http.Response) (res ProjectsCreat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Project if err := func() error { if err := response.Decode(d); err != nil { @@ -31260,8 +31260,8 @@ func decodeProjectsCreateForRepoResponse(resp *http.Response) (res ProjectsCreat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsCreateForRepoApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -31295,8 +31295,8 @@ func decodeProjectsCreateForRepoResponse(resp *http.Response) (res ProjectsCreat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsCreateForRepoApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -31330,8 +31330,8 @@ func decodeProjectsCreateForRepoResponse(resp *http.Response) (res ProjectsCreat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsCreateForRepoApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -31365,8 +31365,8 @@ func decodeProjectsCreateForRepoResponse(resp *http.Response) (res ProjectsCreat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsCreateForRepoApplicationJSONGone if err := func() error { if err := response.Decode(d); err != nil { @@ -31400,8 +31400,8 @@ func decodeProjectsCreateForRepoResponse(resp *http.Response) (res ProjectsCreat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationErrorSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -31447,8 +31447,8 @@ func decodeProjectsDeleteResponse(resp *http.Response) (res ProjectsDeleteRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsDeleteApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -31482,8 +31482,8 @@ func decodeProjectsDeleteResponse(resp *http.Response) (res ProjectsDeleteRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsDeleteForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -31517,8 +31517,8 @@ func decodeProjectsDeleteResponse(resp *http.Response) (res ProjectsDeleteRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsDeleteApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -31552,8 +31552,8 @@ func decodeProjectsDeleteResponse(resp *http.Response) (res ProjectsDeleteRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsDeleteApplicationJSONGone if err := func() error { if err := response.Decode(d); err != nil { @@ -31599,8 +31599,8 @@ func decodeProjectsDeleteCardResponse(resp *http.Response) (res ProjectsDeleteCa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsDeleteCardApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -31634,8 +31634,8 @@ func decodeProjectsDeleteCardResponse(resp *http.Response) (res ProjectsDeleteCa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsDeleteCardForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -31669,8 +31669,8 @@ func decodeProjectsDeleteCardResponse(resp *http.Response) (res ProjectsDeleteCa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsDeleteCardApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -31716,8 +31716,8 @@ func decodeProjectsDeleteColumnResponse(resp *http.Response) (res ProjectsDelete if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsDeleteColumnApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -31751,8 +31751,8 @@ func decodeProjectsDeleteColumnResponse(resp *http.Response) (res ProjectsDelete if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsDeleteColumnApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -31792,8 +31792,8 @@ func decodeProjectsGetResponse(resp *http.Response) (res ProjectsGetRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Project if err := func() error { if err := response.Decode(d); err != nil { @@ -31830,8 +31830,8 @@ func decodeProjectsGetResponse(resp *http.Response) (res ProjectsGetRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsGetApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -31865,8 +31865,8 @@ func decodeProjectsGetResponse(resp *http.Response) (res ProjectsGetRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsGetApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -31906,8 +31906,8 @@ func decodeProjectsGetCardResponse(resp *http.Response) (res ProjectsGetCardRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectCard if err := func() error { if err := response.Decode(d); err != nil { @@ -31944,8 +31944,8 @@ func decodeProjectsGetCardResponse(resp *http.Response) (res ProjectsGetCardRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsGetCardApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -31979,8 +31979,8 @@ func decodeProjectsGetCardResponse(resp *http.Response) (res ProjectsGetCardRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsGetCardApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -32014,8 +32014,8 @@ func decodeProjectsGetCardResponse(resp *http.Response) (res ProjectsGetCardRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsGetCardApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -32055,8 +32055,8 @@ func decodeProjectsGetColumnResponse(resp *http.Response) (res ProjectsGetColumn if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectColumn if err := func() error { if err := response.Decode(d); err != nil { @@ -32093,8 +32093,8 @@ func decodeProjectsGetColumnResponse(resp *http.Response) (res ProjectsGetColumn if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsGetColumnApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -32128,8 +32128,8 @@ func decodeProjectsGetColumnResponse(resp *http.Response) (res ProjectsGetColumn if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsGetColumnApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -32163,8 +32163,8 @@ func decodeProjectsGetColumnResponse(resp *http.Response) (res ProjectsGetColumn if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsGetColumnApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -32204,8 +32204,8 @@ func decodeProjectsGetPermissionForUserResponse(resp *http.Response) (res Projec if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response RepositoryCollaboratorPermission if err := func() error { if err := response.Decode(d); err != nil { @@ -32242,8 +32242,8 @@ func decodeProjectsGetPermissionForUserResponse(resp *http.Response) (res Projec if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsGetPermissionForUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -32277,8 +32277,8 @@ func decodeProjectsGetPermissionForUserResponse(resp *http.Response) (res Projec if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsGetPermissionForUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -32312,8 +32312,8 @@ func decodeProjectsGetPermissionForUserResponse(resp *http.Response) (res Projec if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsGetPermissionForUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -32347,8 +32347,8 @@ func decodeProjectsGetPermissionForUserResponse(resp *http.Response) (res Projec if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -32388,8 +32388,8 @@ func decodeProjectsListCardsResponse(resp *http.Response) (res ProjectsListCards if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []ProjectCard if err := func() error { response = make([]ProjectCard, 0) @@ -32472,8 +32472,8 @@ func decodeProjectsListCardsResponse(resp *http.Response) (res ProjectsListCards if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsListCardsApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -32507,8 +32507,8 @@ func decodeProjectsListCardsResponse(resp *http.Response) (res ProjectsListCards if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsListCardsApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -32548,8 +32548,8 @@ func decodeProjectsListCollaboratorsResponse(resp *http.Response) (res ProjectsL if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []SimpleUser if err := func() error { response = make([]SimpleUser, 0) @@ -32632,8 +32632,8 @@ func decodeProjectsListCollaboratorsResponse(resp *http.Response) (res ProjectsL if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsListCollaboratorsApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -32667,8 +32667,8 @@ func decodeProjectsListCollaboratorsResponse(resp *http.Response) (res ProjectsL if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsListCollaboratorsApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -32702,8 +32702,8 @@ func decodeProjectsListCollaboratorsResponse(resp *http.Response) (res ProjectsL if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsListCollaboratorsApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -32737,8 +32737,8 @@ func decodeProjectsListCollaboratorsResponse(resp *http.Response) (res ProjectsL if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -32778,8 +32778,8 @@ func decodeProjectsListColumnsResponse(resp *http.Response) (res ProjectsListCol if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []ProjectColumn if err := func() error { response = make([]ProjectColumn, 0) @@ -32862,8 +32862,8 @@ func decodeProjectsListColumnsResponse(resp *http.Response) (res ProjectsListCol if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsListColumnsApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -32897,8 +32897,8 @@ func decodeProjectsListColumnsResponse(resp *http.Response) (res ProjectsListCol if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsListColumnsApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -32938,8 +32938,8 @@ func decodeProjectsListForOrgResponse(resp *http.Response) (res ProjectsListForO if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Project if err := func() error { response = make([]Project, 0) @@ -33019,8 +33019,8 @@ func decodeProjectsListForOrgResponse(resp *http.Response) (res ProjectsListForO if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationErrorSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -33060,8 +33060,8 @@ func decodeProjectsListForRepoResponse(resp *http.Response) (res ProjectsListFor if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Project if err := func() error { response = make([]Project, 0) @@ -33141,8 +33141,8 @@ func decodeProjectsListForRepoResponse(resp *http.Response) (res ProjectsListFor if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsListForRepoApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -33176,8 +33176,8 @@ func decodeProjectsListForRepoResponse(resp *http.Response) (res ProjectsListFor if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsListForRepoApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -33211,8 +33211,8 @@ func decodeProjectsListForRepoResponse(resp *http.Response) (res ProjectsListFor if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsListForRepoApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -33246,8 +33246,8 @@ func decodeProjectsListForRepoResponse(resp *http.Response) (res ProjectsListFor if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsListForRepoApplicationJSONGone if err := func() error { if err := response.Decode(d); err != nil { @@ -33281,8 +33281,8 @@ func decodeProjectsListForRepoResponse(resp *http.Response) (res ProjectsListFor if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationErrorSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -33322,8 +33322,8 @@ func decodeProjectsListForUserResponse(resp *http.Response) (res ProjectsListFor if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Project if err := func() error { response = make([]Project, 0) @@ -33403,8 +33403,8 @@ func decodeProjectsListForUserResponse(resp *http.Response) (res ProjectsListFor if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -33444,8 +33444,8 @@ func decodeProjectsMoveCardResponse(resp *http.Response) (res ProjectsMoveCardRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsMoveCardCreated if err := func() error { if err := response.Decode(d); err != nil { @@ -33482,8 +33482,8 @@ func decodeProjectsMoveCardResponse(resp *http.Response) (res ProjectsMoveCardRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -33517,8 +33517,8 @@ func decodeProjectsMoveCardResponse(resp *http.Response) (res ProjectsMoveCardRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsMoveCardForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -33552,8 +33552,8 @@ func decodeProjectsMoveCardResponse(resp *http.Response) (res ProjectsMoveCardRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -33587,8 +33587,8 @@ func decodeProjectsMoveCardResponse(resp *http.Response) (res ProjectsMoveCardRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsMoveCardServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -33628,8 +33628,8 @@ func decodeProjectsMoveColumnResponse(resp *http.Response) (res ProjectsMoveColu if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsMoveColumnCreated if err := func() error { if err := response.Decode(d); err != nil { @@ -33666,8 +33666,8 @@ func decodeProjectsMoveColumnResponse(resp *http.Response) (res ProjectsMoveColu if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsMoveColumnApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -33701,8 +33701,8 @@ func decodeProjectsMoveColumnResponse(resp *http.Response) (res ProjectsMoveColu if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsMoveColumnApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -33736,8 +33736,8 @@ func decodeProjectsMoveColumnResponse(resp *http.Response) (res ProjectsMoveColu if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationErrorSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -33783,8 +33783,8 @@ func decodeProjectsRemoveCollaboratorResponse(resp *http.Response) (res Projects if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsRemoveCollaboratorApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -33818,8 +33818,8 @@ func decodeProjectsRemoveCollaboratorResponse(resp *http.Response) (res Projects if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsRemoveCollaboratorApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -33853,8 +33853,8 @@ func decodeProjectsRemoveCollaboratorResponse(resp *http.Response) (res Projects if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsRemoveCollaboratorApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -33888,8 +33888,8 @@ func decodeProjectsRemoveCollaboratorResponse(resp *http.Response) (res Projects if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -33929,8 +33929,8 @@ func decodeProjectsUpdateResponse(resp *http.Response) (res ProjectsUpdateRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Project if err := func() error { if err := response.Decode(d); err != nil { @@ -33967,8 +33967,8 @@ func decodeProjectsUpdateResponse(resp *http.Response) (res ProjectsUpdateRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsUpdateApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -34002,8 +34002,8 @@ func decodeProjectsUpdateResponse(resp *http.Response) (res ProjectsUpdateRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsUpdateForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -34040,8 +34040,8 @@ func decodeProjectsUpdateResponse(resp *http.Response) (res ProjectsUpdateRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsUpdateApplicationJSONGone if err := func() error { if err := response.Decode(d); err != nil { @@ -34075,8 +34075,8 @@ func decodeProjectsUpdateResponse(resp *http.Response) (res ProjectsUpdateRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationErrorSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -34116,8 +34116,8 @@ func decodeProjectsUpdateCardResponse(resp *http.Response) (res ProjectsUpdateCa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectCard if err := func() error { if err := response.Decode(d); err != nil { @@ -34154,8 +34154,8 @@ func decodeProjectsUpdateCardResponse(resp *http.Response) (res ProjectsUpdateCa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsUpdateCardApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -34189,8 +34189,8 @@ func decodeProjectsUpdateCardResponse(resp *http.Response) (res ProjectsUpdateCa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsUpdateCardApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -34224,8 +34224,8 @@ func decodeProjectsUpdateCardResponse(resp *http.Response) (res ProjectsUpdateCa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsUpdateCardApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -34259,8 +34259,8 @@ func decodeProjectsUpdateCardResponse(resp *http.Response) (res ProjectsUpdateCa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationErrorSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -34300,8 +34300,8 @@ func decodeProjectsUpdateColumnResponse(resp *http.Response) (res ProjectsUpdate if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectColumn if err := func() error { if err := response.Decode(d); err != nil { @@ -34338,8 +34338,8 @@ func decodeProjectsUpdateColumnResponse(resp *http.Response) (res ProjectsUpdate if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsUpdateColumnApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -34373,8 +34373,8 @@ func decodeProjectsUpdateColumnResponse(resp *http.Response) (res ProjectsUpdate if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProjectsUpdateColumnApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -34426,8 +34426,8 @@ func decodePullsCreateResponse(resp *http.Response) (res PullsCreateRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullRequest if err := func() error { if err := response.Decode(d); err != nil { @@ -34499,8 +34499,8 @@ func decodePullsCreateResponse(resp *http.Response) (res PullsCreateRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -34534,8 +34534,8 @@ func decodePullsCreateResponse(resp *http.Response) (res PullsCreateRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -34575,8 +34575,8 @@ func decodePullsCreateReplyForReviewCommentResponse(resp *http.Response) (res Pu if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullRequestReviewComment if err := func() error { if err := response.Decode(d); err != nil { @@ -34648,8 +34648,8 @@ func decodePullsCreateReplyForReviewCommentResponse(resp *http.Response) (res Pu if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -34689,8 +34689,8 @@ func decodePullsCreateReviewResponse(resp *http.Response) (res PullsCreateReview if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullRequestReview if err := func() error { if err := response.Decode(d); err != nil { @@ -34724,8 +34724,8 @@ func decodePullsCreateReviewResponse(resp *http.Response) (res PullsCreateReview if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -34759,8 +34759,8 @@ func decodePullsCreateReviewResponse(resp *http.Response) (res PullsCreateReview if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationErrorSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -34800,8 +34800,8 @@ func decodePullsCreateReviewCommentResponse(resp *http.Response) (res PullsCreat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullRequestReviewComment if err := func() error { if err := response.Decode(d); err != nil { @@ -34873,8 +34873,8 @@ func decodePullsCreateReviewCommentResponse(resp *http.Response) (res PullsCreat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -34908,8 +34908,8 @@ func decodePullsCreateReviewCommentResponse(resp *http.Response) (res PullsCreat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -34949,8 +34949,8 @@ func decodePullsDeletePendingReviewResponse(resp *http.Response) (res PullsDelet if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullRequestReview if err := func() error { if err := response.Decode(d); err != nil { @@ -34984,8 +34984,8 @@ func decodePullsDeletePendingReviewResponse(resp *http.Response) (res PullsDelet if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -35019,8 +35019,8 @@ func decodePullsDeletePendingReviewResponse(resp *http.Response) (res PullsDelet if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationErrorSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -35063,8 +35063,8 @@ func decodePullsDeleteReviewCommentResponse(resp *http.Response) (res PullsDelet if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -35104,8 +35104,8 @@ func decodePullsDismissReviewResponse(resp *http.Response) (res PullsDismissRevi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullRequestReview if err := func() error { if err := response.Decode(d); err != nil { @@ -35139,8 +35139,8 @@ func decodePullsDismissReviewResponse(resp *http.Response) (res PullsDismissRevi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -35174,8 +35174,8 @@ func decodePullsDismissReviewResponse(resp *http.Response) (res PullsDismissRevi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationErrorSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -35215,8 +35215,8 @@ func decodePullsGetResponse(resp *http.Response) (res PullsGetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullRequest if err := func() error { if err := response.Decode(d); err != nil { @@ -35253,8 +35253,8 @@ func decodePullsGetResponse(resp *http.Response) (res PullsGetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullsGetApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -35288,8 +35288,8 @@ func decodePullsGetResponse(resp *http.Response) (res PullsGetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullsGetApplicationJSONInternalServerError if err := func() error { if err := response.Decode(d); err != nil { @@ -35329,8 +35329,8 @@ func decodePullsGetReviewResponse(resp *http.Response) (res PullsGetReviewRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullRequestReview if err := func() error { if err := response.Decode(d); err != nil { @@ -35364,8 +35364,8 @@ func decodePullsGetReviewResponse(resp *http.Response) (res PullsGetReviewRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -35405,8 +35405,8 @@ func decodePullsGetReviewCommentResponse(resp *http.Response) (res PullsGetRevie if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullRequestReviewComment if err := func() error { if err := response.Decode(d); err != nil { @@ -35440,8 +35440,8 @@ func decodePullsGetReviewCommentResponse(resp *http.Response) (res PullsGetRevie if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -35481,8 +35481,8 @@ func decodePullsListResponse(resp *http.Response) (res PullsListRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []PullRequestSimple if err := func() error { response = make([]PullRequestSimple, 0) @@ -35565,8 +35565,8 @@ func decodePullsListResponse(resp *http.Response) (res PullsListRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -35606,8 +35606,8 @@ func decodePullsListCommentsForReviewResponse(resp *http.Response) (res PullsLis if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []ReviewComment if err := func() error { response = make([]ReviewComment, 0) @@ -35687,8 +35687,8 @@ func decodePullsListCommentsForReviewResponse(resp *http.Response) (res PullsLis if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -35728,8 +35728,8 @@ func decodePullsListCommitsResponse(resp *http.Response) (res *PullsListCommitsO if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Commit if err := func() error { response = make([]Commit, 0) @@ -35815,8 +35815,8 @@ func decodePullsListFilesResponse(resp *http.Response) (res PullsListFilesRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []DiffEntry if err := func() error { response = make([]DiffEntry, 0) @@ -35896,8 +35896,8 @@ func decodePullsListFilesResponse(resp *http.Response) (res PullsListFilesRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -35931,8 +35931,8 @@ func decodePullsListFilesResponse(resp *http.Response) (res PullsListFilesRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -35972,8 +35972,8 @@ func decodePullsListRequestedReviewersResponse(resp *http.Response) (res *PullRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullRequestReviewRequest if err := func() error { if err := response.Decode(d); err != nil { @@ -36051,8 +36051,8 @@ func decodePullsListReviewCommentsResponse(resp *http.Response) (res *PullsListR if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []PullRequestReviewComment if err := func() error { response = make([]PullRequestReviewComment, 0) @@ -36138,8 +36138,8 @@ func decodePullsListReviewCommentsForRepoResponse(resp *http.Response) (res *Pul if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []PullRequestReviewComment if err := func() error { response = make([]PullRequestReviewComment, 0) @@ -36225,8 +36225,8 @@ func decodePullsListReviewsResponse(resp *http.Response) (res *PullsListReviewsO if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []PullRequestReview if err := func() error { response = make([]PullRequestReview, 0) @@ -36312,8 +36312,8 @@ func decodePullsMergeResponse(resp *http.Response) (res PullsMergeRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullRequestMergeResult if err := func() error { if err := response.Decode(d); err != nil { @@ -36347,8 +36347,8 @@ func decodePullsMergeResponse(resp *http.Response) (res PullsMergeRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullsMergeApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -36382,8 +36382,8 @@ func decodePullsMergeResponse(resp *http.Response) (res PullsMergeRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullsMergeApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -36417,8 +36417,8 @@ func decodePullsMergeResponse(resp *http.Response) (res PullsMergeRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullsMergeMethodNotAllowed if err := func() error { if err := response.Decode(d); err != nil { @@ -36452,8 +36452,8 @@ func decodePullsMergeResponse(resp *http.Response) (res PullsMergeRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullsMergeConflict if err := func() error { if err := response.Decode(d); err != nil { @@ -36487,8 +36487,8 @@ func decodePullsMergeResponse(resp *http.Response) (res PullsMergeRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -36528,8 +36528,8 @@ func decodePullsRemoveRequestedReviewersResponse(resp *http.Response) (res Pulls if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullRequestSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -36563,8 +36563,8 @@ func decodePullsRemoveRequestedReviewersResponse(resp *http.Response) (res Pulls if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -36604,8 +36604,8 @@ func decodePullsSubmitReviewResponse(resp *http.Response) (res PullsSubmitReview if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullRequestReview if err := func() error { if err := response.Decode(d); err != nil { @@ -36639,8 +36639,8 @@ func decodePullsSubmitReviewResponse(resp *http.Response) (res PullsSubmitReview if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullsSubmitReviewApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -36674,8 +36674,8 @@ func decodePullsSubmitReviewResponse(resp *http.Response) (res PullsSubmitReview if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullsSubmitReviewApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -36709,8 +36709,8 @@ func decodePullsSubmitReviewResponse(resp *http.Response) (res PullsSubmitReview if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationErrorSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -36750,8 +36750,8 @@ func decodePullsUpdateResponse(resp *http.Response) (res PullsUpdateRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullRequest if err := func() error { if err := response.Decode(d); err != nil { @@ -36785,8 +36785,8 @@ func decodePullsUpdateResponse(resp *http.Response) (res PullsUpdateRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -36820,8 +36820,8 @@ func decodePullsUpdateResponse(resp *http.Response) (res PullsUpdateRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -36861,8 +36861,8 @@ func decodePullsUpdateBranchResponse(resp *http.Response) (res PullsUpdateBranch if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullsUpdateBranchAccepted if err := func() error { if err := response.Decode(d); err != nil { @@ -36896,8 +36896,8 @@ func decodePullsUpdateBranchResponse(resp *http.Response) (res PullsUpdateBranch if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -36931,8 +36931,8 @@ func decodePullsUpdateBranchResponse(resp *http.Response) (res PullsUpdateBranch if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -36972,8 +36972,8 @@ func decodePullsUpdateReviewResponse(resp *http.Response) (res PullsUpdateReview if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullRequestReview if err := func() error { if err := response.Decode(d); err != nil { @@ -37007,8 +37007,8 @@ func decodePullsUpdateReviewResponse(resp *http.Response) (res PullsUpdateReview if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationErrorSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -37048,8 +37048,8 @@ func decodePullsUpdateReviewCommentResponse(resp *http.Response) (res *PullReque if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PullRequestReviewComment if err := func() error { if err := response.Decode(d); err != nil { @@ -37089,8 +37089,8 @@ func decodeRateLimitGetResponse(resp *http.Response) (res RateLimitGetRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response RateLimitOverview if err := func() error { if err := response.Decode(d); err != nil { @@ -37235,8 +37235,8 @@ func decodeRateLimitGetResponse(resp *http.Response) (res RateLimitGetRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -37276,8 +37276,8 @@ func decodeReactionsCreateForCommitCommentResponse(resp *http.Response) (res Rea if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReactionsCreateForCommitCommentApplicationJSONOK if err := func() error { if err := response.Decode(d); err != nil { @@ -37311,8 +37311,8 @@ func decodeReactionsCreateForCommitCommentResponse(resp *http.Response) (res Rea if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReactionsCreateForCommitCommentApplicationJSONCreated if err := func() error { if err := response.Decode(d); err != nil { @@ -37346,8 +37346,8 @@ func decodeReactionsCreateForCommitCommentResponse(resp *http.Response) (res Rea if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -37381,8 +37381,8 @@ func decodeReactionsCreateForCommitCommentResponse(resp *http.Response) (res Rea if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -37422,8 +37422,8 @@ func decodeReactionsCreateForIssueResponse(resp *http.Response) (res ReactionsCr if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReactionsCreateForIssueApplicationJSONOK if err := func() error { if err := response.Decode(d); err != nil { @@ -37457,8 +37457,8 @@ func decodeReactionsCreateForIssueResponse(resp *http.Response) (res ReactionsCr if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReactionsCreateForIssueApplicationJSONCreated if err := func() error { if err := response.Decode(d); err != nil { @@ -37492,8 +37492,8 @@ func decodeReactionsCreateForIssueResponse(resp *http.Response) (res ReactionsCr if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -37527,8 +37527,8 @@ func decodeReactionsCreateForIssueResponse(resp *http.Response) (res ReactionsCr if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -37568,8 +37568,8 @@ func decodeReactionsCreateForIssueCommentResponse(resp *http.Response) (res Reac if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReactionsCreateForIssueCommentApplicationJSONOK if err := func() error { if err := response.Decode(d); err != nil { @@ -37603,8 +37603,8 @@ func decodeReactionsCreateForIssueCommentResponse(resp *http.Response) (res Reac if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReactionsCreateForIssueCommentApplicationJSONCreated if err := func() error { if err := response.Decode(d); err != nil { @@ -37638,8 +37638,8 @@ func decodeReactionsCreateForIssueCommentResponse(resp *http.Response) (res Reac if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -37673,8 +37673,8 @@ func decodeReactionsCreateForIssueCommentResponse(resp *http.Response) (res Reac if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -37714,8 +37714,8 @@ func decodeReactionsCreateForPullRequestReviewCommentResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReactionsCreateForPullRequestReviewCommentApplicationJSONOK if err := func() error { if err := response.Decode(d); err != nil { @@ -37749,8 +37749,8 @@ func decodeReactionsCreateForPullRequestReviewCommentResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReactionsCreateForPullRequestReviewCommentApplicationJSONCreated if err := func() error { if err := response.Decode(d); err != nil { @@ -37784,8 +37784,8 @@ func decodeReactionsCreateForPullRequestReviewCommentResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -37819,8 +37819,8 @@ func decodeReactionsCreateForPullRequestReviewCommentResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -37860,8 +37860,8 @@ func decodeReactionsCreateForReleaseResponse(resp *http.Response) (res Reactions if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReactionsCreateForReleaseApplicationJSONOK if err := func() error { if err := response.Decode(d); err != nil { @@ -37895,8 +37895,8 @@ func decodeReactionsCreateForReleaseResponse(resp *http.Response) (res Reactions if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReactionsCreateForReleaseApplicationJSONCreated if err := func() error { if err := response.Decode(d); err != nil { @@ -37930,8 +37930,8 @@ func decodeReactionsCreateForReleaseResponse(resp *http.Response) (res Reactions if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -37965,8 +37965,8 @@ func decodeReactionsCreateForReleaseResponse(resp *http.Response) (res Reactions if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -38006,8 +38006,8 @@ func decodeReactionsCreateForTeamDiscussionCommentInOrgResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReactionsCreateForTeamDiscussionCommentInOrgApplicationJSONOK if err := func() error { if err := response.Decode(d); err != nil { @@ -38041,8 +38041,8 @@ func decodeReactionsCreateForTeamDiscussionCommentInOrgResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReactionsCreateForTeamDiscussionCommentInOrgApplicationJSONCreated if err := func() error { if err := response.Decode(d); err != nil { @@ -38082,8 +38082,8 @@ func decodeReactionsCreateForTeamDiscussionCommentLegacyResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Reaction if err := func() error { if err := response.Decode(d); err != nil { @@ -38123,8 +38123,8 @@ func decodeReactionsCreateForTeamDiscussionInOrgResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReactionsCreateForTeamDiscussionInOrgApplicationJSONOK if err := func() error { if err := response.Decode(d); err != nil { @@ -38158,8 +38158,8 @@ func decodeReactionsCreateForTeamDiscussionInOrgResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReactionsCreateForTeamDiscussionInOrgApplicationJSONCreated if err := func() error { if err := response.Decode(d); err != nil { @@ -38199,8 +38199,8 @@ func decodeReactionsCreateForTeamDiscussionLegacyResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Reaction if err := func() error { if err := response.Decode(d); err != nil { @@ -38300,8 +38300,8 @@ func decodeReactionsDeleteLegacyResponse(resp *http.Response) (res ReactionsDele if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReactionsDeleteLegacyApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -38335,8 +38335,8 @@ func decodeReactionsDeleteLegacyResponse(resp *http.Response) (res ReactionsDele if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReactionsDeleteLegacyApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -38370,8 +38370,8 @@ func decodeReactionsDeleteLegacyResponse(resp *http.Response) (res ReactionsDele if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReactionsDeleteLegacyApplicationJSONGone if err := func() error { if err := response.Decode(d); err != nil { @@ -38405,8 +38405,8 @@ func decodeReactionsDeleteLegacyResponse(resp *http.Response) (res ReactionsDele if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -38446,8 +38446,8 @@ func decodeReactionsListForCommitCommentResponse(resp *http.Response) (res React if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Reaction if err := func() error { response = make([]Reaction, 0) @@ -38527,8 +38527,8 @@ func decodeReactionsListForCommitCommentResponse(resp *http.Response) (res React if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -38562,8 +38562,8 @@ func decodeReactionsListForCommitCommentResponse(resp *http.Response) (res React if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -38603,8 +38603,8 @@ func decodeReactionsListForIssueResponse(resp *http.Response) (res ReactionsList if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Reaction if err := func() error { response = make([]Reaction, 0) @@ -38684,8 +38684,8 @@ func decodeReactionsListForIssueResponse(resp *http.Response) (res ReactionsList if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReactionsListForIssueApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -38719,8 +38719,8 @@ func decodeReactionsListForIssueResponse(resp *http.Response) (res ReactionsList if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReactionsListForIssueApplicationJSONGone if err := func() error { if err := response.Decode(d); err != nil { @@ -38754,8 +38754,8 @@ func decodeReactionsListForIssueResponse(resp *http.Response) (res ReactionsList if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -38795,8 +38795,8 @@ func decodeReactionsListForIssueCommentResponse(resp *http.Response) (res Reacti if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Reaction if err := func() error { response = make([]Reaction, 0) @@ -38876,8 +38876,8 @@ func decodeReactionsListForIssueCommentResponse(resp *http.Response) (res Reacti if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -38911,8 +38911,8 @@ func decodeReactionsListForIssueCommentResponse(resp *http.Response) (res Reacti if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -38952,8 +38952,8 @@ func decodeReactionsListForPullRequestReviewCommentResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Reaction if err := func() error { response = make([]Reaction, 0) @@ -39033,8 +39033,8 @@ func decodeReactionsListForPullRequestReviewCommentResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -39068,8 +39068,8 @@ func decodeReactionsListForPullRequestReviewCommentResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -39109,8 +39109,8 @@ func decodeReactionsListForTeamDiscussionCommentInOrgResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Reaction if err := func() error { response = make([]Reaction, 0) @@ -39196,8 +39196,8 @@ func decodeReactionsListForTeamDiscussionCommentLegacyResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Reaction if err := func() error { response = make([]Reaction, 0) @@ -39283,8 +39283,8 @@ func decodeReactionsListForTeamDiscussionInOrgResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Reaction if err := func() error { response = make([]Reaction, 0) @@ -39370,8 +39370,8 @@ func decodeReactionsListForTeamDiscussionLegacyResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Reaction if err := func() error { response = make([]Reaction, 0) @@ -39463,8 +39463,8 @@ func decodeReposAcceptInvitationResponse(resp *http.Response) (res ReposAcceptIn if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposAcceptInvitationApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -39498,8 +39498,8 @@ func decodeReposAcceptInvitationResponse(resp *http.Response) (res ReposAcceptIn if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposAcceptInvitationApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -39533,8 +39533,8 @@ func decodeReposAcceptInvitationResponse(resp *http.Response) (res ReposAcceptIn if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposAcceptInvitationApplicationJSONConflict if err := func() error { if err := response.Decode(d); err != nil { @@ -39574,8 +39574,8 @@ func decodeReposAddAppAccessRestrictionsResponse(resp *http.Response) (res Repos if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposAddAppAccessRestrictionsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -39609,8 +39609,8 @@ func decodeReposAddAppAccessRestrictionsResponse(resp *http.Response) (res Repos if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -39650,8 +39650,8 @@ func decodeReposAddCollaboratorResponse(resp *http.Response) (res ReposAddCollab if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response RepositoryInvitation if err := func() error { if err := response.Decode(d); err != nil { @@ -39688,8 +39688,8 @@ func decodeReposAddCollaboratorResponse(resp *http.Response) (res ReposAddCollab if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -39723,8 +39723,8 @@ func decodeReposAddCollaboratorResponse(resp *http.Response) (res ReposAddCollab if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -39764,8 +39764,8 @@ func decodeReposAddStatusCheckContextsResponse(resp *http.Response) (res ReposAd if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposAddStatusCheckContextsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -39799,8 +39799,8 @@ func decodeReposAddStatusCheckContextsResponse(resp *http.Response) (res ReposAd if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposAddStatusCheckContextsApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -39834,8 +39834,8 @@ func decodeReposAddStatusCheckContextsResponse(resp *http.Response) (res ReposAd if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposAddStatusCheckContextsApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -39869,8 +39869,8 @@ func decodeReposAddStatusCheckContextsResponse(resp *http.Response) (res ReposAd if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -39910,8 +39910,8 @@ func decodeReposAddTeamAccessRestrictionsResponse(resp *http.Response) (res Repo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposAddTeamAccessRestrictionsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -39945,8 +39945,8 @@ func decodeReposAddTeamAccessRestrictionsResponse(resp *http.Response) (res Repo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -39986,8 +39986,8 @@ func decodeReposAddUserAccessRestrictionsResponse(resp *http.Response) (res Repo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposAddUserAccessRestrictionsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -40021,8 +40021,8 @@ func decodeReposAddUserAccessRestrictionsResponse(resp *http.Response) (res Repo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -40086,8 +40086,8 @@ func decodeReposCompareCommitsResponse(resp *http.Response) (res ReposCompareCom if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CommitComparison if err := func() error { if err := response.Decode(d); err != nil { @@ -40121,8 +40121,8 @@ func decodeReposCompareCommitsResponse(resp *http.Response) (res ReposCompareCom if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposCompareCommitsApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -40156,8 +40156,8 @@ func decodeReposCompareCommitsResponse(resp *http.Response) (res ReposCompareCom if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposCompareCommitsApplicationJSONInternalServerError if err := func() error { if err := response.Decode(d); err != nil { @@ -40197,8 +40197,8 @@ func decodeReposCreateAutolinkResponse(resp *http.Response) (res ReposCreateAuto if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Autolink if err := func() error { if err := response.Decode(d); err != nil { @@ -40270,8 +40270,8 @@ func decodeReposCreateAutolinkResponse(resp *http.Response) (res ReposCreateAuto if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -40311,8 +40311,8 @@ func decodeReposCreateCommitCommentResponse(resp *http.Response) (res ReposCreat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CommitComment if err := func() error { if err := response.Decode(d); err != nil { @@ -40384,8 +40384,8 @@ func decodeReposCreateCommitCommentResponse(resp *http.Response) (res ReposCreat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -40419,8 +40419,8 @@ func decodeReposCreateCommitCommentResponse(resp *http.Response) (res ReposCreat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -40460,8 +40460,8 @@ func decodeReposCreateCommitSignatureProtectionResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProtectedBranchAdminEnforced if err := func() error { if err := response.Decode(d); err != nil { @@ -40495,8 +40495,8 @@ func decodeReposCreateCommitSignatureProtectionResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -40536,8 +40536,8 @@ func decodeReposCreateCommitStatusResponse(resp *http.Response) (res *StatusHead if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Status if err := func() error { if err := response.Decode(d); err != nil { @@ -40615,8 +40615,8 @@ func decodeReposCreateDeployKeyResponse(resp *http.Response) (res ReposCreateDep if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response DeployKey if err := func() error { if err := response.Decode(d); err != nil { @@ -40688,8 +40688,8 @@ func decodeReposCreateDeployKeyResponse(resp *http.Response) (res ReposCreateDep if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -40729,8 +40729,8 @@ func decodeReposCreateDeploymentResponse(resp *http.Response) (res ReposCreateDe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Deployment if err := func() error { if err := response.Decode(d); err != nil { @@ -40764,8 +40764,8 @@ func decodeReposCreateDeploymentResponse(resp *http.Response) (res ReposCreateDe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposCreateDeploymentAccepted if err := func() error { if err := response.Decode(d); err != nil { @@ -40802,8 +40802,8 @@ func decodeReposCreateDeploymentResponse(resp *http.Response) (res ReposCreateDe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -40843,8 +40843,8 @@ func decodeReposCreateDeploymentStatusResponse(resp *http.Response) (res ReposCr if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response DeploymentStatus if err := func() error { if err := response.Decode(d); err != nil { @@ -40916,8 +40916,8 @@ func decodeReposCreateDeploymentStatusResponse(resp *http.Response) (res ReposCr if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -40960,8 +40960,8 @@ func decodeReposCreateDispatchEventResponse(resp *http.Response) (res ReposCreat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -41001,8 +41001,8 @@ func decodeReposCreateForAuthenticatedUserResponse(resp *http.Response) (res Rep if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Repository if err := func() error { if err := response.Decode(d); err != nil { @@ -41077,8 +41077,8 @@ func decodeReposCreateForAuthenticatedUserResponse(resp *http.Response) (res Rep if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposCreateForAuthenticatedUserApplicationJSONBadRequest if err := func() error { if err := response.Decode(d); err != nil { @@ -41112,8 +41112,8 @@ func decodeReposCreateForAuthenticatedUserResponse(resp *http.Response) (res Rep if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposCreateForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -41147,8 +41147,8 @@ func decodeReposCreateForAuthenticatedUserResponse(resp *http.Response) (res Rep if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposCreateForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -41182,8 +41182,8 @@ func decodeReposCreateForAuthenticatedUserResponse(resp *http.Response) (res Rep if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposCreateForAuthenticatedUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -41217,8 +41217,8 @@ func decodeReposCreateForAuthenticatedUserResponse(resp *http.Response) (res Rep if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -41258,8 +41258,8 @@ func decodeReposCreateForkResponse(resp *http.Response) (res ReposCreateForkRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response FullRepository if err := func() error { if err := response.Decode(d); err != nil { @@ -41293,8 +41293,8 @@ func decodeReposCreateForkResponse(resp *http.Response) (res ReposCreateForkRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposCreateForkApplicationJSONBadRequest if err := func() error { if err := response.Decode(d); err != nil { @@ -41328,8 +41328,8 @@ func decodeReposCreateForkResponse(resp *http.Response) (res ReposCreateForkRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposCreateForkApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -41363,8 +41363,8 @@ func decodeReposCreateForkResponse(resp *http.Response) (res ReposCreateForkRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposCreateForkApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -41398,8 +41398,8 @@ func decodeReposCreateForkResponse(resp *http.Response) (res ReposCreateForkRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -41439,8 +41439,8 @@ func decodeReposCreateInOrgResponse(resp *http.Response) (res ReposCreateInOrgRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Repository if err := func() error { if err := response.Decode(d); err != nil { @@ -41512,8 +41512,8 @@ func decodeReposCreateInOrgResponse(resp *http.Response) (res ReposCreateInOrgRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -41547,8 +41547,8 @@ func decodeReposCreateInOrgResponse(resp *http.Response) (res ReposCreateInOrgRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -41588,8 +41588,8 @@ func decodeReposCreateOrUpdateFileContentsResponse(resp *http.Response) (res Rep if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposCreateOrUpdateFileContentsApplicationJSONOK if err := func() error { if err := response.Decode(d); err != nil { @@ -41623,8 +41623,8 @@ func decodeReposCreateOrUpdateFileContentsResponse(resp *http.Response) (res Rep if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposCreateOrUpdateFileContentsApplicationJSONCreated if err := func() error { if err := response.Decode(d); err != nil { @@ -41658,8 +41658,8 @@ func decodeReposCreateOrUpdateFileContentsResponse(resp *http.Response) (res Rep if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposCreateOrUpdateFileContentsApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -41693,8 +41693,8 @@ func decodeReposCreateOrUpdateFileContentsResponse(resp *http.Response) (res Rep if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposCreateOrUpdateFileContentsApplicationJSONConflict if err := func() error { if err := response.Decode(d); err != nil { @@ -41728,8 +41728,8 @@ func decodeReposCreateOrUpdateFileContentsResponse(resp *http.Response) (res Rep if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -41769,8 +41769,8 @@ func decodeReposCreatePagesSiteResponse(resp *http.Response) (res ReposCreatePag if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Page if err := func() error { if err := response.Decode(d); err != nil { @@ -41804,8 +41804,8 @@ func decodeReposCreatePagesSiteResponse(resp *http.Response) (res ReposCreatePag if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -41839,8 +41839,8 @@ func decodeReposCreatePagesSiteResponse(resp *http.Response) (res ReposCreatePag if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -41874,8 +41874,8 @@ func decodeReposCreatePagesSiteResponse(resp *http.Response) (res ReposCreatePag if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -41915,8 +41915,8 @@ func decodeReposCreateReleaseResponse(resp *http.Response) (res ReposCreateRelea if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Release if err := func() error { if err := response.Decode(d); err != nil { @@ -41988,8 +41988,8 @@ func decodeReposCreateReleaseResponse(resp *http.Response) (res ReposCreateRelea if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -42023,8 +42023,8 @@ func decodeReposCreateReleaseResponse(resp *http.Response) (res ReposCreateRelea if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -42064,8 +42064,8 @@ func decodeReposCreateUsingTemplateResponse(resp *http.Response) (res *Repositor if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Repository if err := func() error { if err := response.Decode(d); err != nil { @@ -42143,8 +42143,8 @@ func decodeReposCreateWebhookResponse(resp *http.Response) (res ReposCreateWebho if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Hook if err := func() error { if err := response.Decode(d); err != nil { @@ -42216,8 +42216,8 @@ func decodeReposCreateWebhookResponse(resp *http.Response) (res ReposCreateWebho if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposCreateWebhookApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -42251,8 +42251,8 @@ func decodeReposCreateWebhookResponse(resp *http.Response) (res ReposCreateWebho if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposCreateWebhookApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -42286,8 +42286,8 @@ func decodeReposCreateWebhookResponse(resp *http.Response) (res ReposCreateWebho if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -42333,8 +42333,8 @@ func decodeReposDeclineInvitationResponse(resp *http.Response) (res ReposDecline if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposDeclineInvitationApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -42368,8 +42368,8 @@ func decodeReposDeclineInvitationResponse(resp *http.Response) (res ReposDecline if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposDeclineInvitationApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -42403,8 +42403,8 @@ func decodeReposDeclineInvitationResponse(resp *http.Response) (res ReposDecline if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposDeclineInvitationApplicationJSONConflict if err := func() error { if err := response.Decode(d); err != nil { @@ -42447,8 +42447,8 @@ func decodeReposDeleteResponse(resp *http.Response) (res ReposDeleteRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposDeleteApplicationJSONTemporaryRedirect if err := func() error { if err := response.Decode(d); err != nil { @@ -42482,8 +42482,8 @@ func decodeReposDeleteResponse(resp *http.Response) (res ReposDeleteRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposDeleteForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -42517,8 +42517,8 @@ func decodeReposDeleteResponse(resp *http.Response) (res ReposDeleteRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposDeleteApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -42570,8 +42570,8 @@ func decodeReposDeleteAdminBranchProtectionResponse(resp *http.Response) (res Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -42623,8 +42623,8 @@ func decodeReposDeleteAutolinkResponse(resp *http.Response) (res ReposDeleteAuto if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -42667,8 +42667,8 @@ func decodeReposDeleteBranchProtectionResponse(resp *http.Response) (res ReposDe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -42711,8 +42711,8 @@ func decodeReposDeleteCommitCommentResponse(resp *http.Response) (res ReposDelet if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -42755,8 +42755,8 @@ func decodeReposDeleteCommitSignatureProtectionResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -42808,8 +42808,8 @@ func decodeReposDeleteDeploymentResponse(resp *http.Response) (res ReposDeleteDe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -42843,8 +42843,8 @@ func decodeReposDeleteDeploymentResponse(resp *http.Response) (res ReposDeleteDe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationErrorSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -42884,8 +42884,8 @@ func decodeReposDeleteFileResponse(resp *http.Response) (res ReposDeleteFileRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response FileCommit if err := func() error { if err := response.Decode(d); err != nil { @@ -42919,8 +42919,8 @@ func decodeReposDeleteFileResponse(resp *http.Response) (res ReposDeleteFileRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposDeleteFileApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -42954,8 +42954,8 @@ func decodeReposDeleteFileResponse(resp *http.Response) (res ReposDeleteFileRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposDeleteFileApplicationJSONConflict if err := func() error { if err := response.Decode(d); err != nil { @@ -42989,8 +42989,8 @@ func decodeReposDeleteFileResponse(resp *http.Response) (res ReposDeleteFileRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -43024,8 +43024,8 @@ func decodeReposDeleteFileResponse(resp *http.Response) (res ReposDeleteFileRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -43077,8 +43077,8 @@ func decodeReposDeletePagesSiteResponse(resp *http.Response) (res ReposDeletePag if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -43112,8 +43112,8 @@ func decodeReposDeletePagesSiteResponse(resp *http.Response) (res ReposDeletePag if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -43147,8 +43147,8 @@ func decodeReposDeletePagesSiteResponse(resp *http.Response) (res ReposDeletePag if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -43191,8 +43191,8 @@ func decodeReposDeletePullRequestReviewProtectionResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -43253,8 +43253,8 @@ func decodeReposDeleteWebhookResponse(resp *http.Response) (res ReposDeleteWebho if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -43422,8 +43422,8 @@ func decodeReposEnableLfsForRepoResponse(resp *http.Response) (res ReposEnableLf if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Accepted if err := func() error { if err := response.Decode(d); err != nil { @@ -43475,8 +43475,8 @@ func decodeReposGetResponse(resp *http.Response) (res ReposGetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response FullRepository if err := func() error { if err := response.Decode(d); err != nil { @@ -43510,8 +43510,8 @@ func decodeReposGetResponse(resp *http.Response) (res ReposGetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposGetApplicationJSONMovedPermanently if err := func() error { if err := response.Decode(d); err != nil { @@ -43545,8 +43545,8 @@ func decodeReposGetResponse(resp *http.Response) (res ReposGetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposGetApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -43580,8 +43580,8 @@ func decodeReposGetResponse(resp *http.Response) (res ReposGetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposGetApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -43621,8 +43621,8 @@ func decodeReposGetAccessRestrictionsResponse(resp *http.Response) (res ReposGet if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BranchRestrictionPolicy if err := func() error { if err := response.Decode(d); err != nil { @@ -43656,8 +43656,8 @@ func decodeReposGetAccessRestrictionsResponse(resp *http.Response) (res ReposGet if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -43697,8 +43697,8 @@ func decodeReposGetAdminBranchProtectionResponse(resp *http.Response) (res *Prot if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProtectedBranchAdminEnforced if err := func() error { if err := response.Decode(d); err != nil { @@ -43738,8 +43738,8 @@ func decodeReposGetAllStatusCheckContextsResponse(resp *http.Response) (res Repo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposGetAllStatusCheckContextsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -43773,8 +43773,8 @@ func decodeReposGetAllStatusCheckContextsResponse(resp *http.Response) (res Repo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -43814,8 +43814,8 @@ func decodeReposGetAllTopicsResponse(resp *http.Response) (res ReposGetAllTopics if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Topic if err := func() error { if err := response.Decode(d); err != nil { @@ -43849,8 +43849,8 @@ func decodeReposGetAllTopicsResponse(resp *http.Response) (res ReposGetAllTopics if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -43884,8 +43884,8 @@ func decodeReposGetAllTopicsResponse(resp *http.Response) (res ReposGetAllTopics if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -43925,8 +43925,8 @@ func decodeReposGetAppsWithAccessToProtectedBranchResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposGetAppsWithAccessToProtectedBranchOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -43960,8 +43960,8 @@ func decodeReposGetAppsWithAccessToProtectedBranchResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -44001,8 +44001,8 @@ func decodeReposGetAutolinkResponse(resp *http.Response) (res ReposGetAutolinkRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Autolink if err := func() error { if err := response.Decode(d); err != nil { @@ -44036,8 +44036,8 @@ func decodeReposGetAutolinkResponse(resp *http.Response) (res ReposGetAutolinkRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -44077,8 +44077,8 @@ func decodeReposGetBranchResponse(resp *http.Response) (res ReposGetBranchRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BranchWithProtection if err := func() error { if err := response.Decode(d); err != nil { @@ -44112,8 +44112,8 @@ func decodeReposGetBranchResponse(resp *http.Response) (res ReposGetBranchRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposGetBranchApplicationJSONMovedPermanently if err := func() error { if err := response.Decode(d); err != nil { @@ -44147,8 +44147,8 @@ func decodeReposGetBranchResponse(resp *http.Response) (res ReposGetBranchRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposGetBranchApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -44182,8 +44182,8 @@ func decodeReposGetBranchResponse(resp *http.Response) (res ReposGetBranchRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -44223,8 +44223,8 @@ func decodeReposGetBranchProtectionResponse(resp *http.Response) (res ReposGetBr if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BranchProtection if err := func() error { if err := response.Decode(d); err != nil { @@ -44258,8 +44258,8 @@ func decodeReposGetBranchProtectionResponse(resp *http.Response) (res ReposGetBr if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -44299,8 +44299,8 @@ func decodeReposGetClonesResponse(resp *http.Response) (res ReposGetClonesRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CloneTraffic if err := func() error { if err := response.Decode(d); err != nil { @@ -44334,8 +44334,8 @@ func decodeReposGetClonesResponse(resp *http.Response) (res ReposGetClonesRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -44375,8 +44375,8 @@ func decodeReposGetCodeFrequencyStatsResponse(resp *http.Response) (res ReposGet if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposGetCodeFrequencyStatsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -44410,8 +44410,8 @@ func decodeReposGetCodeFrequencyStatsResponse(resp *http.Response) (res ReposGet if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Accepted if err := func() error { if err := response.Decode(d); err != nil { @@ -44454,8 +44454,8 @@ func decodeReposGetCollaboratorPermissionLevelResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response RepositoryCollaboratorPermission if err := func() error { if err := response.Decode(d); err != nil { @@ -44489,8 +44489,8 @@ func decodeReposGetCollaboratorPermissionLevelResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -44530,8 +44530,8 @@ func decodeReposGetCombinedStatusForRefResponse(resp *http.Response) (res ReposG if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CombinedCommitStatus if err := func() error { if err := response.Decode(d); err != nil { @@ -44565,8 +44565,8 @@ func decodeReposGetCombinedStatusForRefResponse(resp *http.Response) (res ReposG if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -44606,8 +44606,8 @@ func decodeReposGetCommitResponse(resp *http.Response) (res ReposGetCommitRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Commit if err := func() error { if err := response.Decode(d); err != nil { @@ -44641,8 +44641,8 @@ func decodeReposGetCommitResponse(resp *http.Response) (res ReposGetCommitRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposGetCommitApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -44676,8 +44676,8 @@ func decodeReposGetCommitResponse(resp *http.Response) (res ReposGetCommitRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -44711,8 +44711,8 @@ func decodeReposGetCommitResponse(resp *http.Response) (res ReposGetCommitRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposGetCommitApplicationJSONInternalServerError if err := func() error { if err := response.Decode(d); err != nil { @@ -44752,8 +44752,8 @@ func decodeReposGetCommitActivityStatsResponse(resp *http.Response) (res ReposGe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposGetCommitActivityStatsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -44787,8 +44787,8 @@ func decodeReposGetCommitActivityStatsResponse(resp *http.Response) (res ReposGe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Accepted if err := func() error { if err := response.Decode(d); err != nil { @@ -44831,8 +44831,8 @@ func decodeReposGetCommitCommentResponse(resp *http.Response) (res ReposGetCommi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CommitComment if err := func() error { if err := response.Decode(d); err != nil { @@ -44866,8 +44866,8 @@ func decodeReposGetCommitCommentResponse(resp *http.Response) (res ReposGetCommi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -44907,8 +44907,8 @@ func decodeReposGetCommitSignatureProtectionResponse(resp *http.Response) (res R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProtectedBranchAdminEnforced if err := func() error { if err := response.Decode(d); err != nil { @@ -44942,8 +44942,8 @@ func decodeReposGetCommitSignatureProtectionResponse(resp *http.Response) (res R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -44983,8 +44983,8 @@ func decodeReposGetCommunityProfileMetricsResponse(resp *http.Response) (res *Co if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CommunityProfile if err := func() error { if err := response.Decode(d); err != nil { @@ -45024,8 +45024,8 @@ func decodeReposGetContributorsStatsResponse(resp *http.Response) (res ReposGetC if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposGetContributorsStatsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -45059,8 +45059,8 @@ func decodeReposGetContributorsStatsResponse(resp *http.Response) (res ReposGetC if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Accepted if err := func() error { if err := response.Decode(d); err != nil { @@ -45103,8 +45103,8 @@ func decodeReposGetDeployKeyResponse(resp *http.Response) (res ReposGetDeployKey if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response DeployKey if err := func() error { if err := response.Decode(d); err != nil { @@ -45138,8 +45138,8 @@ func decodeReposGetDeployKeyResponse(resp *http.Response) (res ReposGetDeployKey if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -45179,8 +45179,8 @@ func decodeReposGetDeploymentResponse(resp *http.Response) (res ReposGetDeployme if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Deployment if err := func() error { if err := response.Decode(d); err != nil { @@ -45214,8 +45214,8 @@ func decodeReposGetDeploymentResponse(resp *http.Response) (res ReposGetDeployme if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -45255,8 +45255,8 @@ func decodeReposGetDeploymentStatusResponse(resp *http.Response) (res ReposGetDe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response DeploymentStatus if err := func() error { if err := response.Decode(d); err != nil { @@ -45290,8 +45290,8 @@ func decodeReposGetDeploymentStatusResponse(resp *http.Response) (res ReposGetDe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -45325,8 +45325,8 @@ func decodeReposGetDeploymentStatusResponse(resp *http.Response) (res ReposGetDe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -45366,8 +45366,8 @@ func decodeReposGetLatestPagesBuildResponse(resp *http.Response) (res *PageBuild if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PageBuild if err := func() error { if err := response.Decode(d); err != nil { @@ -45407,8 +45407,8 @@ func decodeReposGetLatestReleaseResponse(resp *http.Response) (res *Release, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Release if err := func() error { if err := response.Decode(d); err != nil { @@ -45448,8 +45448,8 @@ func decodeReposGetPagesResponse(resp *http.Response) (res ReposGetPagesRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Page if err := func() error { if err := response.Decode(d); err != nil { @@ -45483,8 +45483,8 @@ func decodeReposGetPagesResponse(resp *http.Response) (res ReposGetPagesRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -45524,8 +45524,8 @@ func decodeReposGetPagesBuildResponse(resp *http.Response) (res *PageBuild, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PageBuild if err := func() error { if err := response.Decode(d); err != nil { @@ -45565,8 +45565,8 @@ func decodeReposGetPagesHealthCheckResponse(resp *http.Response) (res ReposGetPa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PagesHealthCheck if err := func() error { if err := response.Decode(d); err != nil { @@ -45600,8 +45600,8 @@ func decodeReposGetPagesHealthCheckResponse(resp *http.Response) (res ReposGetPa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response EmptyObject if err := func() error { if err := response.Decode(d); err != nil { @@ -45638,8 +45638,8 @@ func decodeReposGetPagesHealthCheckResponse(resp *http.Response) (res ReposGetPa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -45682,8 +45682,8 @@ func decodeReposGetParticipationStatsResponse(resp *http.Response) (res ReposGet if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ParticipationStats if err := func() error { if err := response.Decode(d); err != nil { @@ -45717,8 +45717,8 @@ func decodeReposGetParticipationStatsResponse(resp *http.Response) (res ReposGet if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -45758,8 +45758,8 @@ func decodeReposGetPullRequestReviewProtectionResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProtectedBranchPullRequestReview if err := func() error { if err := response.Decode(d); err != nil { @@ -45799,8 +45799,8 @@ func decodeReposGetPunchCardStatsResponse(resp *http.Response) (res ReposGetPunc if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposGetPunchCardStatsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -45843,8 +45843,8 @@ func decodeReposGetReadmeResponse(resp *http.Response) (res ReposGetReadmeRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ContentFile if err := func() error { if err := response.Decode(d); err != nil { @@ -45878,8 +45878,8 @@ func decodeReposGetReadmeResponse(resp *http.Response) (res ReposGetReadmeRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -45913,8 +45913,8 @@ func decodeReposGetReadmeResponse(resp *http.Response) (res ReposGetReadmeRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -45954,8 +45954,8 @@ func decodeReposGetReadmeInDirectoryResponse(resp *http.Response) (res ReposGetR if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ContentFile if err := func() error { if err := response.Decode(d); err != nil { @@ -45989,8 +45989,8 @@ func decodeReposGetReadmeInDirectoryResponse(resp *http.Response) (res ReposGetR if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -46024,8 +46024,8 @@ func decodeReposGetReadmeInDirectoryResponse(resp *http.Response) (res ReposGetR if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -46065,8 +46065,8 @@ func decodeReposGetReleaseResponse(resp *http.Response) (res ReposGetReleaseRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Release if err := func() error { if err := response.Decode(d); err != nil { @@ -46100,8 +46100,8 @@ func decodeReposGetReleaseResponse(resp *http.Response) (res ReposGetReleaseRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -46141,8 +46141,8 @@ func decodeReposGetReleaseAssetResponse(resp *http.Response) (res ReposGetReleas if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReleaseAsset if err := func() error { if err := response.Decode(d); err != nil { @@ -46179,8 +46179,8 @@ func decodeReposGetReleaseAssetResponse(resp *http.Response) (res ReposGetReleas if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -46214,8 +46214,8 @@ func decodeReposGetReleaseAssetResponse(resp *http.Response) (res ReposGetReleas if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -46255,8 +46255,8 @@ func decodeReposGetReleaseByTagResponse(resp *http.Response) (res ReposGetReleas if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Release if err := func() error { if err := response.Decode(d); err != nil { @@ -46290,8 +46290,8 @@ func decodeReposGetReleaseByTagResponse(resp *http.Response) (res ReposGetReleas if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -46331,8 +46331,8 @@ func decodeReposGetStatusChecksProtectionResponse(resp *http.Response) (res Repo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response StatusCheckPolicy if err := func() error { if err := response.Decode(d); err != nil { @@ -46366,8 +46366,8 @@ func decodeReposGetStatusChecksProtectionResponse(resp *http.Response) (res Repo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -46407,8 +46407,8 @@ func decodeReposGetTeamsWithAccessToProtectedBranchResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposGetTeamsWithAccessToProtectedBranchOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -46442,8 +46442,8 @@ func decodeReposGetTeamsWithAccessToProtectedBranchResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -46483,8 +46483,8 @@ func decodeReposGetTopPathsResponse(resp *http.Response) (res ReposGetTopPathsRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposGetTopPathsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -46518,8 +46518,8 @@ func decodeReposGetTopPathsResponse(resp *http.Response) (res ReposGetTopPathsRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -46559,8 +46559,8 @@ func decodeReposGetTopReferrersResponse(resp *http.Response) (res ReposGetTopRef if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposGetTopReferrersOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -46594,8 +46594,8 @@ func decodeReposGetTopReferrersResponse(resp *http.Response) (res ReposGetTopRef if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -46635,8 +46635,8 @@ func decodeReposGetUsersWithAccessToProtectedBranchResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposGetUsersWithAccessToProtectedBranchOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -46670,8 +46670,8 @@ func decodeReposGetUsersWithAccessToProtectedBranchResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -46711,8 +46711,8 @@ func decodeReposGetViewsResponse(resp *http.Response) (res ReposGetViewsRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ViewTraffic if err := func() error { if err := response.Decode(d); err != nil { @@ -46746,8 +46746,8 @@ func decodeReposGetViewsResponse(resp *http.Response) (res ReposGetViewsRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -46787,8 +46787,8 @@ func decodeReposGetWebhookResponse(resp *http.Response) (res ReposGetWebhookRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Hook if err := func() error { if err := response.Decode(d); err != nil { @@ -46822,8 +46822,8 @@ func decodeReposGetWebhookResponse(resp *http.Response) (res ReposGetWebhookRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -46863,8 +46863,8 @@ func decodeReposGetWebhookConfigForRepoResponse(resp *http.Response) (res *Webho if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response WebhookConfig if err := func() error { if err := response.Decode(d); err != nil { @@ -46904,8 +46904,8 @@ func decodeReposGetWebhookDeliveryResponse(resp *http.Response) (res ReposGetWeb if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response HookDelivery if err := func() error { if err := response.Decode(d); err != nil { @@ -46939,8 +46939,8 @@ func decodeReposGetWebhookDeliveryResponse(resp *http.Response) (res ReposGetWeb if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -46974,8 +46974,8 @@ func decodeReposGetWebhookDeliveryResponse(resp *http.Response) (res ReposGetWeb if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -47015,8 +47015,8 @@ func decodeReposListAutolinksResponse(resp *http.Response) (res []Autolink, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Autolink if err := func() error { response = make([]Autolink, 0) @@ -47064,8 +47064,8 @@ func decodeReposListBranchesResponse(resp *http.Response) (res ReposListBranches if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []ShortBranch if err := func() error { response = make([]ShortBranch, 0) @@ -47145,8 +47145,8 @@ func decodeReposListBranchesResponse(resp *http.Response) (res ReposListBranches if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -47186,8 +47186,8 @@ func decodeReposListBranchesForHeadCommitResponse(resp *http.Response) (res Repo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposListBranchesForHeadCommitOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -47221,8 +47221,8 @@ func decodeReposListBranchesForHeadCommitResponse(resp *http.Response) (res Repo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -47262,8 +47262,8 @@ func decodeReposListCollaboratorsResponse(resp *http.Response) (res ReposListCol if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Collaborator if err := func() error { response = make([]Collaborator, 0) @@ -47343,8 +47343,8 @@ func decodeReposListCollaboratorsResponse(resp *http.Response) (res ReposListCol if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -47384,8 +47384,8 @@ func decodeReposListCommentsForCommitResponse(resp *http.Response) (res *ReposLi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []CommitComment if err := func() error { response = make([]CommitComment, 0) @@ -47471,8 +47471,8 @@ func decodeReposListCommitCommentsForRepoResponse(resp *http.Response) (res *Rep if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []CommitComment if err := func() error { response = make([]CommitComment, 0) @@ -47558,8 +47558,8 @@ func decodeReposListCommitStatusesForRefResponse(resp *http.Response) (res Repos if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Status if err := func() error { response = make([]Status, 0) @@ -47639,8 +47639,8 @@ func decodeReposListCommitStatusesForRefResponse(resp *http.Response) (res Repos if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -47680,8 +47680,8 @@ func decodeReposListCommitsResponse(resp *http.Response) (res ReposListCommitsRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Commit if err := func() error { response = make([]Commit, 0) @@ -47761,8 +47761,8 @@ func decodeReposListCommitsResponse(resp *http.Response) (res ReposListCommitsRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposListCommitsApplicationJSONBadRequest if err := func() error { if err := response.Decode(d); err != nil { @@ -47796,8 +47796,8 @@ func decodeReposListCommitsResponse(resp *http.Response) (res ReposListCommitsRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposListCommitsApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -47831,8 +47831,8 @@ func decodeReposListCommitsResponse(resp *http.Response) (res ReposListCommitsRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposListCommitsApplicationJSONConflict if err := func() error { if err := response.Decode(d); err != nil { @@ -47866,8 +47866,8 @@ func decodeReposListCommitsResponse(resp *http.Response) (res ReposListCommitsRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposListCommitsApplicationJSONInternalServerError if err := func() error { if err := response.Decode(d); err != nil { @@ -47907,8 +47907,8 @@ func decodeReposListContributorsResponse(resp *http.Response) (res ReposListCont if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Contributor if err := func() error { response = make([]Contributor, 0) @@ -47991,8 +47991,8 @@ func decodeReposListContributorsResponse(resp *http.Response) (res ReposListCont if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposListContributorsApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -48026,8 +48026,8 @@ func decodeReposListContributorsResponse(resp *http.Response) (res ReposListCont if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposListContributorsApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -48067,8 +48067,8 @@ func decodeReposListDeployKeysResponse(resp *http.Response) (res *ReposListDeplo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []DeployKey if err := func() error { response = make([]DeployKey, 0) @@ -48154,8 +48154,8 @@ func decodeReposListDeploymentStatusesResponse(resp *http.Response) (res ReposLi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []DeploymentStatus if err := func() error { response = make([]DeploymentStatus, 0) @@ -48235,8 +48235,8 @@ func decodeReposListDeploymentStatusesResponse(resp *http.Response) (res ReposLi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -48276,8 +48276,8 @@ func decodeReposListDeploymentsResponse(resp *http.Response) (res *ReposListDepl if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Deployment if err := func() error { response = make([]Deployment, 0) @@ -48363,8 +48363,8 @@ func decodeReposListForAuthenticatedUserResponse(resp *http.Response) (res Repos if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposListForAuthenticatedUserOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -48401,8 +48401,8 @@ func decodeReposListForAuthenticatedUserResponse(resp *http.Response) (res Repos if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposListForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -48436,8 +48436,8 @@ func decodeReposListForAuthenticatedUserResponse(resp *http.Response) (res Repos if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposListForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -48471,8 +48471,8 @@ func decodeReposListForAuthenticatedUserResponse(resp *http.Response) (res Repos if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -48512,8 +48512,8 @@ func decodeReposListForOrgResponse(resp *http.Response) (res *ReposListForOrgOKH if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []MinimalRepository if err := func() error { response = make([]MinimalRepository, 0) @@ -48599,8 +48599,8 @@ func decodeReposListForUserResponse(resp *http.Response) (res *ReposListForUserO if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []MinimalRepository if err := func() error { response = make([]MinimalRepository, 0) @@ -48686,8 +48686,8 @@ func decodeReposListForksResponse(resp *http.Response) (res ReposListForksRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []MinimalRepository if err := func() error { response = make([]MinimalRepository, 0) @@ -48767,8 +48767,8 @@ func decodeReposListForksResponse(resp *http.Response) (res ReposListForksRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -48808,8 +48808,8 @@ func decodeReposListInvitationsResponse(resp *http.Response) (res *ReposListInvi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []RepositoryInvitation if err := func() error { response = make([]RepositoryInvitation, 0) @@ -48895,8 +48895,8 @@ func decodeReposListInvitationsForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []RepositoryInvitation if err := func() error { response = make([]RepositoryInvitation, 0) @@ -48979,8 +48979,8 @@ func decodeReposListInvitationsForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposListInvitationsForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -49014,8 +49014,8 @@ func decodeReposListInvitationsForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposListInvitationsForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -49049,8 +49049,8 @@ func decodeReposListInvitationsForAuthenticatedUserResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposListInvitationsForAuthenticatedUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -49090,8 +49090,8 @@ func decodeReposListLanguagesResponse(resp *http.Response) (res Language, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Language if err := func() error { if err := response.Decode(d); err != nil { @@ -49131,8 +49131,8 @@ func decodeReposListPagesBuildsResponse(resp *http.Response) (res *ReposListPage if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []PageBuild if err := func() error { response = make([]PageBuild, 0) @@ -49218,8 +49218,8 @@ func decodeReposListPublicResponse(resp *http.Response) (res ReposListPublicRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []MinimalRepository if err := func() error { response = make([]MinimalRepository, 0) @@ -49302,8 +49302,8 @@ func decodeReposListPublicResponse(resp *http.Response) (res ReposListPublicRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -49343,8 +49343,8 @@ func decodeReposListPullRequestsAssociatedWithCommitResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []PullRequestSimple if err := func() error { response = make([]PullRequestSimple, 0) @@ -49430,8 +49430,8 @@ func decodeReposListReleaseAssetsResponse(resp *http.Response) (res *ReposListRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []ReleaseAsset if err := func() error { response = make([]ReleaseAsset, 0) @@ -49517,8 +49517,8 @@ func decodeReposListReleasesResponse(resp *http.Response) (res ReposListReleases if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Release if err := func() error { response = make([]Release, 0) @@ -49598,8 +49598,8 @@ func decodeReposListReleasesResponse(resp *http.Response) (res ReposListReleases if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -49639,8 +49639,8 @@ func decodeReposListTagsResponse(resp *http.Response) (res *ReposListTagsOKHeade if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Tag if err := func() error { response = make([]Tag, 0) @@ -49726,8 +49726,8 @@ func decodeReposListTeamsResponse(resp *http.Response) (res *ReposListTeamsOKHea if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Team if err := func() error { response = make([]Team, 0) @@ -49813,8 +49813,8 @@ func decodeReposListWebhookDeliveriesResponse(resp *http.Response) (res ReposLis if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposListWebhookDeliveriesOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -49848,8 +49848,8 @@ func decodeReposListWebhookDeliveriesResponse(resp *http.Response) (res ReposLis if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -49883,8 +49883,8 @@ func decodeReposListWebhookDeliveriesResponse(resp *http.Response) (res ReposLis if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -49924,8 +49924,8 @@ func decodeReposListWebhooksResponse(resp *http.Response) (res ReposListWebhooks if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Hook if err := func() error { response = make([]Hook, 0) @@ -50005,8 +50005,8 @@ func decodeReposListWebhooksResponse(resp *http.Response) (res ReposListWebhooks if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -50046,8 +50046,8 @@ func decodeReposMergeResponse(resp *http.Response) (res ReposMergeRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Commit if err := func() error { if err := response.Decode(d); err != nil { @@ -50084,8 +50084,8 @@ func decodeReposMergeResponse(resp *http.Response) (res ReposMergeRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -50125,8 +50125,8 @@ func decodeReposMergeResponse(resp *http.Response) (res ReposMergeRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -50166,8 +50166,8 @@ func decodeReposMergeUpstreamResponse(resp *http.Response) (res ReposMergeUpstre if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MergedUpstream if err := func() error { if err := response.Decode(d); err != nil { @@ -50216,8 +50216,8 @@ func decodeReposPingWebhookResponse(resp *http.Response) (res ReposPingWebhookRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -50257,8 +50257,8 @@ func decodeReposRedeliverWebhookDeliveryResponse(resp *http.Response) (res Repos if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Accepted if err := func() error { if err := response.Decode(d); err != nil { @@ -50292,8 +50292,8 @@ func decodeReposRedeliverWebhookDeliveryResponse(resp *http.Response) (res Repos if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -50327,8 +50327,8 @@ func decodeReposRedeliverWebhookDeliveryResponse(resp *http.Response) (res Repos if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -50368,8 +50368,8 @@ func decodeReposRemoveAppAccessRestrictionsResponse(resp *http.Response) (res Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposRemoveAppAccessRestrictionsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -50403,8 +50403,8 @@ func decodeReposRemoveAppAccessRestrictionsResponse(resp *http.Response) (res Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -50453,8 +50453,8 @@ func decodeReposRemoveStatusCheckContextsResponse(resp *http.Response) (res Repo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposRemoveStatusCheckContextsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -50488,8 +50488,8 @@ func decodeReposRemoveStatusCheckContextsResponse(resp *http.Response) (res Repo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -50523,8 +50523,8 @@ func decodeReposRemoveStatusCheckContextsResponse(resp *http.Response) (res Repo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -50573,8 +50573,8 @@ func decodeReposRemoveTeamAccessRestrictionsResponse(resp *http.Response) (res R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposRemoveTeamAccessRestrictionsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -50608,8 +50608,8 @@ func decodeReposRemoveTeamAccessRestrictionsResponse(resp *http.Response) (res R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -50649,8 +50649,8 @@ func decodeReposRemoveUserAccessRestrictionsResponse(resp *http.Response) (res R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposRemoveUserAccessRestrictionsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -50684,8 +50684,8 @@ func decodeReposRemoveUserAccessRestrictionsResponse(resp *http.Response) (res R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -50725,8 +50725,8 @@ func decodeReposRenameBranchResponse(resp *http.Response) (res ReposRenameBranch if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BranchWithProtection if err := func() error { if err := response.Decode(d); err != nil { @@ -50760,8 +50760,8 @@ func decodeReposRenameBranchResponse(resp *http.Response) (res ReposRenameBranch if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposRenameBranchApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -50795,8 +50795,8 @@ func decodeReposRenameBranchResponse(resp *http.Response) (res ReposRenameBranch if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposRenameBranchApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -50830,8 +50830,8 @@ func decodeReposRenameBranchResponse(resp *http.Response) (res ReposRenameBranch if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -50871,8 +50871,8 @@ func decodeReposReplaceAllTopicsResponse(resp *http.Response) (res ReposReplaceA if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Topic if err := func() error { if err := response.Decode(d); err != nil { @@ -50906,8 +50906,8 @@ func decodeReposReplaceAllTopicsResponse(resp *http.Response) (res ReposReplaceA if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -50941,8 +50941,8 @@ func decodeReposReplaceAllTopicsResponse(resp *http.Response) (res ReposReplaceA if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -50976,8 +50976,8 @@ func decodeReposReplaceAllTopicsResponse(resp *http.Response) (res ReposReplaceA if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationErrorSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -51017,8 +51017,8 @@ func decodeReposRequestPagesBuildResponse(resp *http.Response) (res *PageBuildSt if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PageBuildStatus if err := func() error { if err := response.Decode(d); err != nil { @@ -51058,8 +51058,8 @@ func decodeReposSetAdminBranchProtectionResponse(resp *http.Response) (res *Prot if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProtectedBranchAdminEnforced if err := func() error { if err := response.Decode(d); err != nil { @@ -51099,8 +51099,8 @@ func decodeReposSetAppAccessRestrictionsResponse(resp *http.Response) (res Repos if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposSetAppAccessRestrictionsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -51134,8 +51134,8 @@ func decodeReposSetAppAccessRestrictionsResponse(resp *http.Response) (res Repos if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -51175,8 +51175,8 @@ func decodeReposSetStatusCheckContextsResponse(resp *http.Response) (res ReposSe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposSetStatusCheckContextsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -51210,8 +51210,8 @@ func decodeReposSetStatusCheckContextsResponse(resp *http.Response) (res ReposSe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -51245,8 +51245,8 @@ func decodeReposSetStatusCheckContextsResponse(resp *http.Response) (res ReposSe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -51286,8 +51286,8 @@ func decodeReposSetTeamAccessRestrictionsResponse(resp *http.Response) (res Repo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposSetTeamAccessRestrictionsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -51321,8 +51321,8 @@ func decodeReposSetTeamAccessRestrictionsResponse(resp *http.Response) (res Repo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -51362,8 +51362,8 @@ func decodeReposSetUserAccessRestrictionsResponse(resp *http.Response) (res Repo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposSetUserAccessRestrictionsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -51397,8 +51397,8 @@ func decodeReposSetUserAccessRestrictionsResponse(resp *http.Response) (res Repo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -51441,8 +51441,8 @@ func decodeReposTestPushWebhookResponse(resp *http.Response) (res ReposTestPushW if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -51482,8 +51482,8 @@ func decodeReposTransferResponse(resp *http.Response) (res *MinimalRepository, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MinimalRepository if err := func() error { if err := response.Decode(d); err != nil { @@ -51523,8 +51523,8 @@ func decodeReposUpdateResponse(resp *http.Response) (res ReposUpdateRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response FullRepository if err := func() error { if err := response.Decode(d); err != nil { @@ -51558,8 +51558,8 @@ func decodeReposUpdateResponse(resp *http.Response) (res ReposUpdateRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposUpdateApplicationJSONTemporaryRedirect if err := func() error { if err := response.Decode(d); err != nil { @@ -51593,8 +51593,8 @@ func decodeReposUpdateResponse(resp *http.Response) (res ReposUpdateRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposUpdateApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -51628,8 +51628,8 @@ func decodeReposUpdateResponse(resp *http.Response) (res ReposUpdateRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposUpdateApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -51663,8 +51663,8 @@ func decodeReposUpdateResponse(resp *http.Response) (res ReposUpdateRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -51704,8 +51704,8 @@ func decodeReposUpdateBranchProtectionResponse(resp *http.Response) (res ReposUp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProtectedBranch if err := func() error { if err := response.Decode(d); err != nil { @@ -51739,8 +51739,8 @@ func decodeReposUpdateBranchProtectionResponse(resp *http.Response) (res ReposUp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposUpdateBranchProtectionApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -51774,8 +51774,8 @@ func decodeReposUpdateBranchProtectionResponse(resp *http.Response) (res ReposUp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReposUpdateBranchProtectionApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -51809,8 +51809,8 @@ func decodeReposUpdateBranchProtectionResponse(resp *http.Response) (res ReposUp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationErrorSimple if err := func() error { if err := response.Decode(d); err != nil { @@ -51850,8 +51850,8 @@ func decodeReposUpdateCommitCommentResponse(resp *http.Response) (res ReposUpdat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CommitComment if err := func() error { if err := response.Decode(d); err != nil { @@ -51885,8 +51885,8 @@ func decodeReposUpdateCommitCommentResponse(resp *http.Response) (res ReposUpdat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -51926,8 +51926,8 @@ func decodeReposUpdateInvitationResponse(resp *http.Response) (res *RepositoryIn if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response RepositoryInvitation if err := func() error { if err := response.Decode(d); err != nil { @@ -51967,8 +51967,8 @@ func decodeReposUpdatePullRequestReviewProtectionResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProtectedBranchPullRequestReview if err := func() error { if err := response.Decode(d); err != nil { @@ -52002,8 +52002,8 @@ func decodeReposUpdatePullRequestReviewProtectionResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -52043,8 +52043,8 @@ func decodeReposUpdateReleaseResponse(resp *http.Response) (res ReposUpdateRelea if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Release if err := func() error { if err := response.Decode(d); err != nil { @@ -52078,8 +52078,8 @@ func decodeReposUpdateReleaseResponse(resp *http.Response) (res ReposUpdateRelea if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -52119,8 +52119,8 @@ func decodeReposUpdateReleaseAssetResponse(resp *http.Response) (res *ReleaseAss if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReleaseAsset if err := func() error { if err := response.Decode(d); err != nil { @@ -52160,8 +52160,8 @@ func decodeReposUpdateStatusCheckProtectionResponse(resp *http.Response) (res Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response StatusCheckPolicy if err := func() error { if err := response.Decode(d); err != nil { @@ -52195,8 +52195,8 @@ func decodeReposUpdateStatusCheckProtectionResponse(resp *http.Response) (res Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -52230,8 +52230,8 @@ func decodeReposUpdateStatusCheckProtectionResponse(resp *http.Response) (res Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -52271,8 +52271,8 @@ func decodeReposUpdateWebhookResponse(resp *http.Response) (res ReposUpdateWebho if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Hook if err := func() error { if err := response.Decode(d); err != nil { @@ -52306,8 +52306,8 @@ func decodeReposUpdateWebhookResponse(resp *http.Response) (res ReposUpdateWebho if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -52341,8 +52341,8 @@ func decodeReposUpdateWebhookResponse(resp *http.Response) (res ReposUpdateWebho if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -52382,8 +52382,8 @@ func decodeReposUpdateWebhookConfigForRepoResponse(resp *http.Response) (res *We if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response WebhookConfig if err := func() error { if err := response.Decode(d); err != nil { @@ -52423,8 +52423,8 @@ func decodeReposUploadReleaseAssetResponse(resp *http.Response) (res *ReleaseAss if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReleaseAsset if err := func() error { if err := response.Decode(d); err != nil { @@ -52470,8 +52470,8 @@ func decodeScimDeleteUserFromOrgResponse(resp *http.Response) (res ScimDeleteUse if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ScimDeleteUserFromOrgApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -52505,8 +52505,8 @@ func decodeScimDeleteUserFromOrgResponse(resp *http.Response) (res ScimDeleteUse if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ScimDeleteUserFromOrgApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -52546,8 +52546,8 @@ func decodeSearchCodeResponse(resp *http.Response) (res SearchCodeRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response SearchCodeOK if err := func() error { if err := response.Decode(d); err != nil { @@ -52584,8 +52584,8 @@ func decodeSearchCodeResponse(resp *http.Response) (res SearchCodeRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -52619,8 +52619,8 @@ func decodeSearchCodeResponse(resp *http.Response) (res SearchCodeRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -52654,8 +52654,8 @@ func decodeSearchCodeResponse(resp *http.Response) (res SearchCodeRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -52695,8 +52695,8 @@ func decodeSearchCommitsResponse(resp *http.Response) (res SearchCommitsRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response SearchCommitsOK if err := func() error { if err := response.Decode(d); err != nil { @@ -52733,8 +52733,8 @@ func decodeSearchCommitsResponse(resp *http.Response) (res SearchCommitsRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -52774,8 +52774,8 @@ func decodeSearchIssuesAndPullRequestsResponse(resp *http.Response) (res SearchI if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response SearchIssuesAndPullRequestsOK if err := func() error { if err := response.Decode(d); err != nil { @@ -52812,8 +52812,8 @@ func decodeSearchIssuesAndPullRequestsResponse(resp *http.Response) (res SearchI if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -52847,8 +52847,8 @@ func decodeSearchIssuesAndPullRequestsResponse(resp *http.Response) (res SearchI if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -52882,8 +52882,8 @@ func decodeSearchIssuesAndPullRequestsResponse(resp *http.Response) (res SearchI if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -52923,8 +52923,8 @@ func decodeSearchLabelsResponse(resp *http.Response) (res SearchLabelsRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response SearchLabelsOK if err := func() error { if err := response.Decode(d); err != nil { @@ -52961,8 +52961,8 @@ func decodeSearchLabelsResponse(resp *http.Response) (res SearchLabelsRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response SearchLabelsApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -52996,8 +52996,8 @@ func decodeSearchLabelsResponse(resp *http.Response) (res SearchLabelsRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response SearchLabelsApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -53031,8 +53031,8 @@ func decodeSearchLabelsResponse(resp *http.Response) (res SearchLabelsRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -53072,8 +53072,8 @@ func decodeSearchReposResponse(resp *http.Response) (res SearchReposRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response SearchReposOK if err := func() error { if err := response.Decode(d); err != nil { @@ -53110,8 +53110,8 @@ func decodeSearchReposResponse(resp *http.Response) (res SearchReposRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -53145,8 +53145,8 @@ func decodeSearchReposResponse(resp *http.Response) (res SearchReposRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -53186,8 +53186,8 @@ func decodeSearchTopicsResponse(resp *http.Response) (res SearchTopicsRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response SearchTopicsOK if err := func() error { if err := response.Decode(d); err != nil { @@ -53224,8 +53224,8 @@ func decodeSearchTopicsResponse(resp *http.Response) (res SearchTopicsRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -53265,8 +53265,8 @@ func decodeSearchUsersResponse(resp *http.Response) (res SearchUsersRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response SearchUsersOK if err := func() error { if err := response.Decode(d); err != nil { @@ -53303,8 +53303,8 @@ func decodeSearchUsersResponse(resp *http.Response) (res SearchUsersRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -53338,8 +53338,8 @@ func decodeSearchUsersResponse(resp *http.Response) (res SearchUsersRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -53379,8 +53379,8 @@ func decodeSecretScanningGetAlertResponse(resp *http.Response) (res SecretScanni if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response SecretScanningAlert if err := func() error { if err := response.Decode(d); err != nil { @@ -53417,8 +53417,8 @@ func decodeSecretScanningGetAlertResponse(resp *http.Response) (res SecretScanni if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -53458,8 +53458,8 @@ func decodeSecretScanningListAlertsForOrgResponse(resp *http.Response) (res Secr if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []OrganizationSecretScanningAlert if err := func() error { response = make([]OrganizationSecretScanningAlert, 0) @@ -53539,8 +53539,8 @@ func decodeSecretScanningListAlertsForOrgResponse(resp *http.Response) (res Secr if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -53574,8 +53574,8 @@ func decodeSecretScanningListAlertsForOrgResponse(resp *http.Response) (res Secr if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -53615,8 +53615,8 @@ func decodeSecretScanningListAlertsForRepoResponse(resp *http.Response) (res Sec if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response SecretScanningListAlertsForRepoOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -53653,8 +53653,8 @@ func decodeSecretScanningListAlertsForRepoResponse(resp *http.Response) (res Sec if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -53694,8 +53694,8 @@ func decodeSecretScanningUpdateAlertResponse(resp *http.Response) (res SecretSca if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response SecretScanningAlert if err := func() error { if err := response.Decode(d); err != nil { @@ -53735,8 +53735,8 @@ func decodeSecretScanningUpdateAlertResponse(resp *http.Response) (res SecretSca if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ServiceUnavailable if err := func() error { if err := response.Decode(d); err != nil { @@ -53779,8 +53779,8 @@ func decodeTeamsAddMemberLegacyResponse(resp *http.Response) (res TeamsAddMember if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -53826,8 +53826,8 @@ func decodeTeamsAddOrUpdateMembershipForUserInOrgResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamMembership if err := func() error { if err := response.Decode(d); err != nil { @@ -53873,8 +53873,8 @@ func decodeTeamsAddOrUpdateMembershipForUserLegacyResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamMembership if err := func() error { if err := response.Decode(d); err != nil { @@ -53911,8 +53911,8 @@ func decodeTeamsAddOrUpdateMembershipForUserLegacyResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -53958,8 +53958,8 @@ func decodeTeamsAddOrUpdateProjectPermissionsInOrgResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamsAddOrUpdateProjectPermissionsInOrgForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -54002,8 +54002,8 @@ func decodeTeamsAddOrUpdateProjectPermissionsLegacyResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamsAddOrUpdateProjectPermissionsLegacyForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -54037,8 +54037,8 @@ func decodeTeamsAddOrUpdateProjectPermissionsLegacyResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -54072,8 +54072,8 @@ func decodeTeamsAddOrUpdateProjectPermissionsLegacyResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -54125,8 +54125,8 @@ func decodeTeamsAddOrUpdateRepoPermissionsLegacyResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -54160,8 +54160,8 @@ func decodeTeamsAddOrUpdateRepoPermissionsLegacyResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -54201,8 +54201,8 @@ func decodeTeamsCheckPermissionsForProjectInOrgResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamProject if err := func() error { if err := response.Decode(d); err != nil { @@ -54245,8 +54245,8 @@ func decodeTeamsCheckPermissionsForProjectLegacyResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamProject if err := func() error { if err := response.Decode(d); err != nil { @@ -54289,8 +54289,8 @@ func decodeTeamsCheckPermissionsForRepoInOrgResponse(resp *http.Response) (res T if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamRepository if err := func() error { if err := response.Decode(d); err != nil { @@ -54336,8 +54336,8 @@ func decodeTeamsCheckPermissionsForRepoLegacyResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamRepository if err := func() error { if err := response.Decode(d); err != nil { @@ -54383,8 +54383,8 @@ func decodeTeamsCreateResponse(resp *http.Response) (res TeamsCreateRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamFull if err := func() error { if err := response.Decode(d); err != nil { @@ -54418,8 +54418,8 @@ func decodeTeamsCreateResponse(resp *http.Response) (res TeamsCreateRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -54453,8 +54453,8 @@ func decodeTeamsCreateResponse(resp *http.Response) (res TeamsCreateRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -54494,8 +54494,8 @@ func decodeTeamsCreateDiscussionCommentInOrgResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamDiscussionComment if err := func() error { if err := response.Decode(d); err != nil { @@ -54535,8 +54535,8 @@ func decodeTeamsCreateDiscussionCommentLegacyResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamDiscussionComment if err := func() error { if err := response.Decode(d); err != nil { @@ -54576,8 +54576,8 @@ func decodeTeamsCreateDiscussionInOrgResponse(resp *http.Response) (res *TeamDis if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamDiscussion if err := func() error { if err := response.Decode(d); err != nil { @@ -54617,8 +54617,8 @@ func decodeTeamsCreateDiscussionLegacyResponse(resp *http.Response) (res *TeamDi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamDiscussion if err := func() error { if err := response.Decode(d); err != nil { @@ -54658,8 +54658,8 @@ func decodeTeamsCreateOrUpdateIdpGroupConnectionsInOrgResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GroupMapping if err := func() error { if err := response.Decode(d); err != nil { @@ -54699,8 +54699,8 @@ func decodeTeamsCreateOrUpdateIdpGroupConnectionsLegacyResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GroupMapping if err := func() error { if err := response.Decode(d); err != nil { @@ -54734,8 +54734,8 @@ func decodeTeamsCreateOrUpdateIdpGroupConnectionsLegacyResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -54769,8 +54769,8 @@ func decodeTeamsCreateOrUpdateIdpGroupConnectionsLegacyResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -54858,8 +54858,8 @@ func decodeTeamsDeleteLegacyResponse(resp *http.Response) (res TeamsDeleteLegacy if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -54893,8 +54893,8 @@ func decodeTeamsDeleteLegacyResponse(resp *http.Response) (res TeamsDeleteLegacy if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -54934,8 +54934,8 @@ func decodeTeamsGetByNameResponse(resp *http.Response) (res TeamsGetByNameRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamFull if err := func() error { if err := response.Decode(d); err != nil { @@ -54969,8 +54969,8 @@ func decodeTeamsGetByNameResponse(resp *http.Response) (res TeamsGetByNameRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -55010,8 +55010,8 @@ func decodeTeamsGetDiscussionCommentInOrgResponse(resp *http.Response) (res *Tea if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamDiscussionComment if err := func() error { if err := response.Decode(d); err != nil { @@ -55051,8 +55051,8 @@ func decodeTeamsGetDiscussionCommentLegacyResponse(resp *http.Response) (res *Te if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamDiscussionComment if err := func() error { if err := response.Decode(d); err != nil { @@ -55092,8 +55092,8 @@ func decodeTeamsGetDiscussionInOrgResponse(resp *http.Response) (res *TeamDiscus if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamDiscussion if err := func() error { if err := response.Decode(d); err != nil { @@ -55133,8 +55133,8 @@ func decodeTeamsGetDiscussionLegacyResponse(resp *http.Response) (res *TeamDiscu if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamDiscussion if err := func() error { if err := response.Decode(d); err != nil { @@ -55174,8 +55174,8 @@ func decodeTeamsGetLegacyResponse(resp *http.Response) (res TeamsGetLegacyRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamFull if err := func() error { if err := response.Decode(d); err != nil { @@ -55209,8 +55209,8 @@ func decodeTeamsGetLegacyResponse(resp *http.Response) (res TeamsGetLegacyRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -55262,8 +55262,8 @@ func decodeTeamsGetMembershipForUserInOrgResponse(resp *http.Response) (res Team if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamMembership if err := func() error { if err := response.Decode(d); err != nil { @@ -55306,8 +55306,8 @@ func decodeTeamsGetMembershipForUserLegacyResponse(resp *http.Response) (res Tea if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamMembership if err := func() error { if err := response.Decode(d); err != nil { @@ -55341,8 +55341,8 @@ func decodeTeamsGetMembershipForUserLegacyResponse(resp *http.Response) (res Tea if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -55382,8 +55382,8 @@ func decodeTeamsListResponse(resp *http.Response) (res TeamsListRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Team if err := func() error { response = make([]Team, 0) @@ -55463,8 +55463,8 @@ func decodeTeamsListResponse(resp *http.Response) (res TeamsListRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -55504,8 +55504,8 @@ func decodeTeamsListChildInOrgResponse(resp *http.Response) (res *TeamsListChild if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Team if err := func() error { response = make([]Team, 0) @@ -55591,8 +55591,8 @@ func decodeTeamsListChildLegacyResponse(resp *http.Response) (res TeamsListChild if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Team if err := func() error { response = make([]Team, 0) @@ -55672,8 +55672,8 @@ func decodeTeamsListChildLegacyResponse(resp *http.Response) (res TeamsListChild if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamsListChildLegacyApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -55707,8 +55707,8 @@ func decodeTeamsListChildLegacyResponse(resp *http.Response) (res TeamsListChild if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamsListChildLegacyApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -55742,8 +55742,8 @@ func decodeTeamsListChildLegacyResponse(resp *http.Response) (res TeamsListChild if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -55783,8 +55783,8 @@ func decodeTeamsListDiscussionCommentsInOrgResponse(resp *http.Response) (res *T if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []TeamDiscussionComment if err := func() error { response = make([]TeamDiscussionComment, 0) @@ -55870,8 +55870,8 @@ func decodeTeamsListDiscussionCommentsLegacyResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []TeamDiscussionComment if err := func() error { response = make([]TeamDiscussionComment, 0) @@ -55957,8 +55957,8 @@ func decodeTeamsListDiscussionsInOrgResponse(resp *http.Response) (res *TeamsLis if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []TeamDiscussion if err := func() error { response = make([]TeamDiscussion, 0) @@ -56044,8 +56044,8 @@ func decodeTeamsListDiscussionsLegacyResponse(resp *http.Response) (res *TeamsLi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []TeamDiscussion if err := func() error { response = make([]TeamDiscussion, 0) @@ -56131,8 +56131,8 @@ func decodeTeamsListForAuthenticatedUserResponse(resp *http.Response) (res Teams if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []TeamFull if err := func() error { response = make([]TeamFull, 0) @@ -56215,8 +56215,8 @@ func decodeTeamsListForAuthenticatedUserResponse(resp *http.Response) (res Teams if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamsListForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -56250,8 +56250,8 @@ func decodeTeamsListForAuthenticatedUserResponse(resp *http.Response) (res Teams if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamsListForAuthenticatedUserApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -56291,8 +56291,8 @@ func decodeTeamsListIdpGroupsForLegacyResponse(resp *http.Response) (res TeamsLi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GroupMapping if err := func() error { if err := response.Decode(d); err != nil { @@ -56326,8 +56326,8 @@ func decodeTeamsListIdpGroupsForLegacyResponse(resp *http.Response) (res TeamsLi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamsListIdpGroupsForLegacyApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -56361,8 +56361,8 @@ func decodeTeamsListIdpGroupsForLegacyResponse(resp *http.Response) (res TeamsLi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamsListIdpGroupsForLegacyApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -56402,8 +56402,8 @@ func decodeTeamsListIdpGroupsForOrgResponse(resp *http.Response) (res *GroupMapp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GroupMapping if err := func() error { if err := response.Decode(d); err != nil { @@ -56481,8 +56481,8 @@ func decodeTeamsListIdpGroupsInOrgResponse(resp *http.Response) (res *GroupMappi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GroupMapping if err := func() error { if err := response.Decode(d); err != nil { @@ -56522,8 +56522,8 @@ func decodeTeamsListMembersInOrgResponse(resp *http.Response) (res *TeamsListMem if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []SimpleUser if err := func() error { response = make([]SimpleUser, 0) @@ -56609,8 +56609,8 @@ func decodeTeamsListMembersLegacyResponse(resp *http.Response) (res TeamsListMem if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []SimpleUser if err := func() error { response = make([]SimpleUser, 0) @@ -56690,8 +56690,8 @@ func decodeTeamsListMembersLegacyResponse(resp *http.Response) (res TeamsListMem if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -56731,8 +56731,8 @@ func decodeTeamsListPendingInvitationsInOrgResponse(resp *http.Response) (res *T if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []OrganizationInvitation if err := func() error { response = make([]OrganizationInvitation, 0) @@ -56818,8 +56818,8 @@ func decodeTeamsListPendingInvitationsLegacyResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []OrganizationInvitation if err := func() error { response = make([]OrganizationInvitation, 0) @@ -56905,8 +56905,8 @@ func decodeTeamsListProjectsInOrgResponse(resp *http.Response) (res *TeamsListPr if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []TeamProject if err := func() error { response = make([]TeamProject, 0) @@ -56992,8 +56992,8 @@ func decodeTeamsListProjectsLegacyResponse(resp *http.Response) (res TeamsListPr if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []TeamProject if err := func() error { response = make([]TeamProject, 0) @@ -57073,8 +57073,8 @@ func decodeTeamsListProjectsLegacyResponse(resp *http.Response) (res TeamsListPr if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -57114,8 +57114,8 @@ func decodeTeamsListReposInOrgResponse(resp *http.Response) (res *TeamsListRepos if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []MinimalRepository if err := func() error { response = make([]MinimalRepository, 0) @@ -57201,8 +57201,8 @@ func decodeTeamsListReposLegacyResponse(resp *http.Response) (res TeamsListRepos if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []MinimalRepository if err := func() error { response = make([]MinimalRepository, 0) @@ -57282,8 +57282,8 @@ func decodeTeamsListReposLegacyResponse(resp *http.Response) (res TeamsListRepos if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -57371,8 +57371,8 @@ func decodeTeamsRemoveProjectLegacyResponse(resp *http.Response) (res TeamsRemov if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -57406,8 +57406,8 @@ func decodeTeamsRemoveProjectLegacyResponse(resp *http.Response) (res TeamsRemov if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -57441,8 +57441,8 @@ func decodeTeamsRemoveProjectLegacyResponse(resp *http.Response) (res TeamsRemov if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -57500,8 +57500,8 @@ func decodeTeamsUpdateDiscussionCommentInOrgResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamDiscussionComment if err := func() error { if err := response.Decode(d); err != nil { @@ -57541,8 +57541,8 @@ func decodeTeamsUpdateDiscussionCommentLegacyResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamDiscussionComment if err := func() error { if err := response.Decode(d); err != nil { @@ -57582,8 +57582,8 @@ func decodeTeamsUpdateDiscussionInOrgResponse(resp *http.Response) (res *TeamDis if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamDiscussion if err := func() error { if err := response.Decode(d); err != nil { @@ -57623,8 +57623,8 @@ func decodeTeamsUpdateDiscussionLegacyResponse(resp *http.Response) (res *TeamDi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamDiscussion if err := func() error { if err := response.Decode(d); err != nil { @@ -57664,8 +57664,8 @@ func decodeTeamsUpdateInOrgResponse(resp *http.Response) (res *TeamFull, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamFull if err := func() error { if err := response.Decode(d); err != nil { @@ -57705,8 +57705,8 @@ func decodeTeamsUpdateLegacyResponse(resp *http.Response) (res TeamsUpdateLegacy if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamsUpdateLegacyApplicationJSONOK if err := func() error { if err := response.Decode(d); err != nil { @@ -57740,8 +57740,8 @@ func decodeTeamsUpdateLegacyResponse(resp *http.Response) (res TeamsUpdateLegacy if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamsUpdateLegacyApplicationJSONCreated if err := func() error { if err := response.Decode(d); err != nil { @@ -57775,8 +57775,8 @@ func decodeTeamsUpdateLegacyResponse(resp *http.Response) (res TeamsUpdateLegacy if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamsUpdateLegacyApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -57810,8 +57810,8 @@ func decodeTeamsUpdateLegacyResponse(resp *http.Response) (res TeamsUpdateLegacy if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TeamsUpdateLegacyApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -57845,8 +57845,8 @@ func decodeTeamsUpdateLegacyResponse(resp *http.Response) (res TeamsUpdateLegacy if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -57886,8 +57886,8 @@ func decodeUsersAddEmailForAuthenticatedResponse(resp *http.Response) (res Users if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersAddEmailForAuthenticatedCreatedApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -57924,8 +57924,8 @@ func decodeUsersAddEmailForAuthenticatedResponse(resp *http.Response) (res Users if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersAddEmailForAuthenticatedApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -57959,8 +57959,8 @@ func decodeUsersAddEmailForAuthenticatedResponse(resp *http.Response) (res Users if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersAddEmailForAuthenticatedApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -57994,8 +57994,8 @@ func decodeUsersAddEmailForAuthenticatedResponse(resp *http.Response) (res Users if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersAddEmailForAuthenticatedApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -58029,8 +58029,8 @@ func decodeUsersAddEmailForAuthenticatedResponse(resp *http.Response) (res Users if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -58076,8 +58076,8 @@ func decodeUsersBlockResponse(resp *http.Response) (res UsersBlockRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersBlockApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -58111,8 +58111,8 @@ func decodeUsersBlockResponse(resp *http.Response) (res UsersBlockRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersBlockApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -58146,8 +58146,8 @@ func decodeUsersBlockResponse(resp *http.Response) (res UsersBlockRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersBlockApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -58181,8 +58181,8 @@ func decodeUsersBlockResponse(resp *http.Response) (res UsersBlockRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -58228,8 +58228,8 @@ func decodeUsersCheckBlockedResponse(resp *http.Response) (res UsersCheckBlocked if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersCheckBlockedApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -58263,8 +58263,8 @@ func decodeUsersCheckBlockedResponse(resp *http.Response) (res UsersCheckBlocked if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersCheckBlockedApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -58298,8 +58298,8 @@ func decodeUsersCheckBlockedResponse(resp *http.Response) (res UsersCheckBlocked if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersCheckBlockedApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -58357,8 +58357,8 @@ func decodeUsersCheckPersonIsFollowedByAuthenticatedResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersCheckPersonIsFollowedByAuthenticatedApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -58392,8 +58392,8 @@ func decodeUsersCheckPersonIsFollowedByAuthenticatedResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersCheckPersonIsFollowedByAuthenticatedApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -58427,8 +58427,8 @@ func decodeUsersCheckPersonIsFollowedByAuthenticatedResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersCheckPersonIsFollowedByAuthenticatedApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -58468,8 +58468,8 @@ func decodeUsersCreateGpgKeyForAuthenticatedResponse(resp *http.Response) (res U if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GpgKey if err := func() error { if err := response.Decode(d); err != nil { @@ -58506,8 +58506,8 @@ func decodeUsersCreateGpgKeyForAuthenticatedResponse(resp *http.Response) (res U if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersCreateGpgKeyForAuthenticatedApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -58541,8 +58541,8 @@ func decodeUsersCreateGpgKeyForAuthenticatedResponse(resp *http.Response) (res U if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersCreateGpgKeyForAuthenticatedApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -58576,8 +58576,8 @@ func decodeUsersCreateGpgKeyForAuthenticatedResponse(resp *http.Response) (res U if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersCreateGpgKeyForAuthenticatedApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -58611,8 +58611,8 @@ func decodeUsersCreateGpgKeyForAuthenticatedResponse(resp *http.Response) (res U if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -58652,8 +58652,8 @@ func decodeUsersCreatePublicSSHKeyForAuthenticatedResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Key if err := func() error { if err := response.Decode(d); err != nil { @@ -58690,8 +58690,8 @@ func decodeUsersCreatePublicSSHKeyForAuthenticatedResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersCreatePublicSSHKeyForAuthenticatedApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -58725,8 +58725,8 @@ func decodeUsersCreatePublicSSHKeyForAuthenticatedResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersCreatePublicSSHKeyForAuthenticatedApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -58760,8 +58760,8 @@ func decodeUsersCreatePublicSSHKeyForAuthenticatedResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersCreatePublicSSHKeyForAuthenticatedApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -58795,8 +58795,8 @@ func decodeUsersCreatePublicSSHKeyForAuthenticatedResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -58842,8 +58842,8 @@ func decodeUsersDeleteEmailForAuthenticatedResponse(resp *http.Response) (res Us if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersDeleteEmailForAuthenticatedApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -58877,8 +58877,8 @@ func decodeUsersDeleteEmailForAuthenticatedResponse(resp *http.Response) (res Us if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersDeleteEmailForAuthenticatedApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -58912,8 +58912,8 @@ func decodeUsersDeleteEmailForAuthenticatedResponse(resp *http.Response) (res Us if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersDeleteEmailForAuthenticatedApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -58947,8 +58947,8 @@ func decodeUsersDeleteEmailForAuthenticatedResponse(resp *http.Response) (res Us if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -58994,8 +58994,8 @@ func decodeUsersDeleteGpgKeyForAuthenticatedResponse(resp *http.Response) (res U if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersDeleteGpgKeyForAuthenticatedApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -59029,8 +59029,8 @@ func decodeUsersDeleteGpgKeyForAuthenticatedResponse(resp *http.Response) (res U if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersDeleteGpgKeyForAuthenticatedApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -59064,8 +59064,8 @@ func decodeUsersDeleteGpgKeyForAuthenticatedResponse(resp *http.Response) (res U if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersDeleteGpgKeyForAuthenticatedApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -59099,8 +59099,8 @@ func decodeUsersDeleteGpgKeyForAuthenticatedResponse(resp *http.Response) (res U if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -59146,8 +59146,8 @@ func decodeUsersDeletePublicSSHKeyForAuthenticatedResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersDeletePublicSSHKeyForAuthenticatedApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -59181,8 +59181,8 @@ func decodeUsersDeletePublicSSHKeyForAuthenticatedResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersDeletePublicSSHKeyForAuthenticatedApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -59216,8 +59216,8 @@ func decodeUsersDeletePublicSSHKeyForAuthenticatedResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersDeletePublicSSHKeyForAuthenticatedApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -59263,8 +59263,8 @@ func decodeUsersFollowResponse(resp *http.Response) (res UsersFollowRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersFollowApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -59298,8 +59298,8 @@ func decodeUsersFollowResponse(resp *http.Response) (res UsersFollowRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersFollowApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -59333,8 +59333,8 @@ func decodeUsersFollowResponse(resp *http.Response) (res UsersFollowRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersFollowApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -59374,8 +59374,8 @@ func decodeUsersGetAuthenticatedResponse(resp *http.Response) (res UsersGetAuthe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersGetAuthenticatedOK if err := func() error { if err := response.Decode(d); err != nil { @@ -59412,8 +59412,8 @@ func decodeUsersGetAuthenticatedResponse(resp *http.Response) (res UsersGetAuthe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersGetAuthenticatedApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -59447,8 +59447,8 @@ func decodeUsersGetAuthenticatedResponse(resp *http.Response) (res UsersGetAuthe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersGetAuthenticatedApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -59488,8 +59488,8 @@ func decodeUsersGetByUsernameResponse(resp *http.Response) (res UsersGetByUserna if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersGetByUsernameOK if err := func() error { if err := response.Decode(d); err != nil { @@ -59523,8 +59523,8 @@ func decodeUsersGetByUsernameResponse(resp *http.Response) (res UsersGetByUserna if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Accepted if err := func() error { if err := response.Decode(d); err != nil { @@ -59558,8 +59558,8 @@ func decodeUsersGetByUsernameResponse(resp *http.Response) (res UsersGetByUserna if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -59599,8 +59599,8 @@ func decodeUsersGetContextForUserResponse(resp *http.Response) (res UsersGetCont if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Hovercard if err := func() error { if err := response.Decode(d); err != nil { @@ -59634,8 +59634,8 @@ func decodeUsersGetContextForUserResponse(resp *http.Response) (res UsersGetCont if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response BasicError if err := func() error { if err := response.Decode(d); err != nil { @@ -59669,8 +59669,8 @@ func decodeUsersGetContextForUserResponse(resp *http.Response) (res UsersGetCont if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -59710,8 +59710,8 @@ func decodeUsersGetGpgKeyForAuthenticatedResponse(resp *http.Response) (res User if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GpgKey if err := func() error { if err := response.Decode(d); err != nil { @@ -59748,8 +59748,8 @@ func decodeUsersGetGpgKeyForAuthenticatedResponse(resp *http.Response) (res User if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersGetGpgKeyForAuthenticatedApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -59783,8 +59783,8 @@ func decodeUsersGetGpgKeyForAuthenticatedResponse(resp *http.Response) (res User if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersGetGpgKeyForAuthenticatedApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -59818,8 +59818,8 @@ func decodeUsersGetGpgKeyForAuthenticatedResponse(resp *http.Response) (res User if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersGetGpgKeyForAuthenticatedApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -59859,8 +59859,8 @@ func decodeUsersGetPublicSSHKeyForAuthenticatedResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Key if err := func() error { if err := response.Decode(d); err != nil { @@ -59897,8 +59897,8 @@ func decodeUsersGetPublicSSHKeyForAuthenticatedResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersGetPublicSSHKeyForAuthenticatedApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -59932,8 +59932,8 @@ func decodeUsersGetPublicSSHKeyForAuthenticatedResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersGetPublicSSHKeyForAuthenticatedApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -59967,8 +59967,8 @@ func decodeUsersGetPublicSSHKeyForAuthenticatedResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersGetPublicSSHKeyForAuthenticatedApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -60008,8 +60008,8 @@ func decodeUsersListResponse(resp *http.Response) (res UsersListRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []SimpleUser if err := func() error { response = make([]SimpleUser, 0) @@ -60098,8 +60098,8 @@ func decodeUsersListBlockedByAuthenticatedResponse(resp *http.Response) (res Use if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersListBlockedByAuthenticatedOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -60136,8 +60136,8 @@ func decodeUsersListBlockedByAuthenticatedResponse(resp *http.Response) (res Use if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersListBlockedByAuthenticatedApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -60171,8 +60171,8 @@ func decodeUsersListBlockedByAuthenticatedResponse(resp *http.Response) (res Use if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersListBlockedByAuthenticatedApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -60206,8 +60206,8 @@ func decodeUsersListBlockedByAuthenticatedResponse(resp *http.Response) (res Use if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersListBlockedByAuthenticatedApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -60241,8 +60241,8 @@ func decodeUsersListBlockedByAuthenticatedResponse(resp *http.Response) (res Use if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PreviewHeaderMissing if err := func() error { if err := response.Decode(d); err != nil { @@ -60282,8 +60282,8 @@ func decodeUsersListEmailsForAuthenticatedResponse(resp *http.Response) (res Use if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Email if err := func() error { response = make([]Email, 0) @@ -60366,8 +60366,8 @@ func decodeUsersListEmailsForAuthenticatedResponse(resp *http.Response) (res Use if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersListEmailsForAuthenticatedApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -60401,8 +60401,8 @@ func decodeUsersListEmailsForAuthenticatedResponse(resp *http.Response) (res Use if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersListEmailsForAuthenticatedApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -60436,8 +60436,8 @@ func decodeUsersListEmailsForAuthenticatedResponse(resp *http.Response) (res Use if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersListEmailsForAuthenticatedApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -60477,8 +60477,8 @@ func decodeUsersListFollowedByAuthenticatedResponse(resp *http.Response) (res Us if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []SimpleUser if err := func() error { response = make([]SimpleUser, 0) @@ -60561,8 +60561,8 @@ func decodeUsersListFollowedByAuthenticatedResponse(resp *http.Response) (res Us if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersListFollowedByAuthenticatedApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -60596,8 +60596,8 @@ func decodeUsersListFollowedByAuthenticatedResponse(resp *http.Response) (res Us if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersListFollowedByAuthenticatedApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -60637,8 +60637,8 @@ func decodeUsersListFollowersForAuthenticatedUserResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []SimpleUser if err := func() error { response = make([]SimpleUser, 0) @@ -60721,8 +60721,8 @@ func decodeUsersListFollowersForAuthenticatedUserResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersListFollowersForAuthenticatedUserApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -60756,8 +60756,8 @@ func decodeUsersListFollowersForAuthenticatedUserResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersListFollowersForAuthenticatedUserApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -60797,8 +60797,8 @@ func decodeUsersListFollowersForUserResponse(resp *http.Response) (res *UsersLis if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []SimpleUser if err := func() error { response = make([]SimpleUser, 0) @@ -60884,8 +60884,8 @@ func decodeUsersListFollowingForUserResponse(resp *http.Response) (res *UsersLis if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []SimpleUser if err := func() error { response = make([]SimpleUser, 0) @@ -60971,8 +60971,8 @@ func decodeUsersListGpgKeysForAuthenticatedResponse(resp *http.Response) (res Us if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []GpgKey if err := func() error { response = make([]GpgKey, 0) @@ -61055,8 +61055,8 @@ func decodeUsersListGpgKeysForAuthenticatedResponse(resp *http.Response) (res Us if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersListGpgKeysForAuthenticatedApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -61090,8 +61090,8 @@ func decodeUsersListGpgKeysForAuthenticatedResponse(resp *http.Response) (res Us if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersListGpgKeysForAuthenticatedApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -61125,8 +61125,8 @@ func decodeUsersListGpgKeysForAuthenticatedResponse(resp *http.Response) (res Us if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersListGpgKeysForAuthenticatedApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -61166,8 +61166,8 @@ func decodeUsersListGpgKeysForUserResponse(resp *http.Response) (res *UsersListG if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []GpgKey if err := func() error { response = make([]GpgKey, 0) @@ -61253,8 +61253,8 @@ func decodeUsersListPublicEmailsForAuthenticatedResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Email if err := func() error { response = make([]Email, 0) @@ -61337,8 +61337,8 @@ func decodeUsersListPublicEmailsForAuthenticatedResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersListPublicEmailsForAuthenticatedApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -61372,8 +61372,8 @@ func decodeUsersListPublicEmailsForAuthenticatedResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersListPublicEmailsForAuthenticatedApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -61407,8 +61407,8 @@ func decodeUsersListPublicEmailsForAuthenticatedResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersListPublicEmailsForAuthenticatedApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -61448,8 +61448,8 @@ func decodeUsersListPublicKeysForUserResponse(resp *http.Response) (res *UsersLi if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []KeySimple if err := func() error { response = make([]KeySimple, 0) @@ -61535,8 +61535,8 @@ func decodeUsersListPublicSSHKeysForAuthenticatedResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []Key if err := func() error { response = make([]Key, 0) @@ -61619,8 +61619,8 @@ func decodeUsersListPublicSSHKeysForAuthenticatedResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersListPublicSSHKeysForAuthenticatedApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -61654,8 +61654,8 @@ func decodeUsersListPublicSSHKeysForAuthenticatedResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersListPublicSSHKeysForAuthenticatedApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -61689,8 +61689,8 @@ func decodeUsersListPublicSSHKeysForAuthenticatedResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersListPublicSSHKeysForAuthenticatedApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -61730,8 +61730,8 @@ func decodeUsersSetPrimaryEmailVisibilityForAuthenticatedResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersSetPrimaryEmailVisibilityForAuthenticatedOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -61768,8 +61768,8 @@ func decodeUsersSetPrimaryEmailVisibilityForAuthenticatedResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersSetPrimaryEmailVisibilityForAuthenticatedApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -61803,8 +61803,8 @@ func decodeUsersSetPrimaryEmailVisibilityForAuthenticatedResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersSetPrimaryEmailVisibilityForAuthenticatedApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -61838,8 +61838,8 @@ func decodeUsersSetPrimaryEmailVisibilityForAuthenticatedResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersSetPrimaryEmailVisibilityForAuthenticatedApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -61873,8 +61873,8 @@ func decodeUsersSetPrimaryEmailVisibilityForAuthenticatedResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { @@ -61920,8 +61920,8 @@ func decodeUsersUnblockResponse(resp *http.Response) (res UsersUnblockRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersUnblockApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -61955,8 +61955,8 @@ func decodeUsersUnblockResponse(resp *http.Response) (res UsersUnblockRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersUnblockApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -61990,8 +61990,8 @@ func decodeUsersUnblockResponse(resp *http.Response) (res UsersUnblockRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersUnblockApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -62037,8 +62037,8 @@ func decodeUsersUnfollowResponse(resp *http.Response) (res UsersUnfollowRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersUnfollowApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -62072,8 +62072,8 @@ func decodeUsersUnfollowResponse(resp *http.Response) (res UsersUnfollowRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersUnfollowApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -62107,8 +62107,8 @@ func decodeUsersUnfollowResponse(resp *http.Response) (res UsersUnfollowRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersUnfollowApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -62148,8 +62148,8 @@ func decodeUsersUpdateAuthenticatedResponse(resp *http.Response) (res UsersUpdat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PrivateUser if err := func() error { if err := response.Decode(d); err != nil { @@ -62186,8 +62186,8 @@ func decodeUsersUpdateAuthenticatedResponse(resp *http.Response) (res UsersUpdat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersUpdateAuthenticatedApplicationJSONUnauthorized if err := func() error { if err := response.Decode(d); err != nil { @@ -62221,8 +62221,8 @@ func decodeUsersUpdateAuthenticatedResponse(resp *http.Response) (res UsersUpdat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersUpdateAuthenticatedApplicationJSONForbidden if err := func() error { if err := response.Decode(d); err != nil { @@ -62256,8 +62256,8 @@ func decodeUsersUpdateAuthenticatedResponse(resp *http.Response) (res UsersUpdat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UsersUpdateAuthenticatedApplicationJSONNotFound if err := func() error { if err := response.Decode(d); err != nil { @@ -62291,8 +62291,8 @@ func decodeUsersUpdateAuthenticatedResponse(resp *http.Response) (res UsersUpdat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ValidationError if err := func() error { if err := response.Decode(d); err != nil { diff --git a/examples/ex_gotd/oas_request_decoders_gen.go b/examples/ex_gotd/oas_request_decoders_gen.go index 7b97755b9..0dbc5261c 100644 --- a/examples/ex_gotd/oas_request_decoders_gen.go +++ b/examples/ex_gotd/oas_request_decoders_gen.go @@ -44,8 +44,6 @@ func (s *Server) decodeAddStickerToSetRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request AddStickerToSet buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56,6 +54,8 @@ func (s *Server) decodeAddStickerToSetRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request AddStickerToSet if err := func() error { if err := request.Decode(d); err != nil { return err @@ -115,8 +115,6 @@ func (s *Server) decodeAnswerCallbackQueryRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request AnswerCallbackQuery buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -127,6 +125,8 @@ func (s *Server) decodeAnswerCallbackQueryRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request AnswerCallbackQuery if err := func() error { if err := request.Decode(d); err != nil { return err @@ -186,8 +186,6 @@ func (s *Server) decodeAnswerInlineQueryRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request AnswerInlineQuery buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -198,6 +196,8 @@ func (s *Server) decodeAnswerInlineQueryRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request AnswerInlineQuery if err := func() error { if err := request.Decode(d); err != nil { return err @@ -257,8 +257,6 @@ func (s *Server) decodeAnswerPreCheckoutQueryRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request AnswerPreCheckoutQuery buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -269,6 +267,8 @@ func (s *Server) decodeAnswerPreCheckoutQueryRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request AnswerPreCheckoutQuery if err := func() error { if err := request.Decode(d); err != nil { return err @@ -320,8 +320,6 @@ func (s *Server) decodeAnswerShippingQueryRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request AnswerShippingQuery buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -332,6 +330,8 @@ func (s *Server) decodeAnswerShippingQueryRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request AnswerShippingQuery if err := func() error { if err := request.Decode(d); err != nil { return err @@ -391,8 +391,6 @@ func (s *Server) decodeAnswerWebAppQueryRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request AnswerWebAppQuery buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -403,6 +401,8 @@ func (s *Server) decodeAnswerWebAppQueryRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request AnswerWebAppQuery if err := func() error { if err := request.Decode(d); err != nil { return err @@ -462,8 +462,6 @@ func (s *Server) decodeApproveChatJoinRequestRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ApproveChatJoinRequest buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -474,6 +472,8 @@ func (s *Server) decodeApproveChatJoinRequestRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ApproveChatJoinRequest if err := func() error { if err := request.Decode(d); err != nil { return err @@ -525,8 +525,6 @@ func (s *Server) decodeBanChatMemberRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request BanChatMember buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -537,6 +535,8 @@ func (s *Server) decodeBanChatMemberRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request BanChatMember if err := func() error { if err := request.Decode(d); err != nil { return err @@ -588,8 +588,6 @@ func (s *Server) decodeBanChatSenderChatRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request BanChatSenderChat buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -600,6 +598,8 @@ func (s *Server) decodeBanChatSenderChatRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request BanChatSenderChat if err := func() error { if err := request.Decode(d); err != nil { return err @@ -651,8 +651,6 @@ func (s *Server) decodeCopyMessageRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request CopyMessage buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -663,6 +661,8 @@ func (s *Server) decodeCopyMessageRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request CopyMessage if err := func() error { if err := request.Decode(d); err != nil { return err @@ -722,8 +722,6 @@ func (s *Server) decodeCreateChatInviteLinkRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request CreateChatInviteLink buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -734,6 +732,8 @@ func (s *Server) decodeCreateChatInviteLinkRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request CreateChatInviteLink if err := func() error { if err := request.Decode(d); err != nil { return err @@ -793,8 +793,6 @@ func (s *Server) decodeCreateNewStickerSetRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request CreateNewStickerSet buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -805,6 +803,8 @@ func (s *Server) decodeCreateNewStickerSetRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request CreateNewStickerSet if err := func() error { if err := request.Decode(d); err != nil { return err @@ -864,8 +864,6 @@ func (s *Server) decodeDeclineChatJoinRequestRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request DeclineChatJoinRequest buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -876,6 +874,8 @@ func (s *Server) decodeDeclineChatJoinRequestRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request DeclineChatJoinRequest if err := func() error { if err := request.Decode(d); err != nil { return err @@ -927,8 +927,6 @@ func (s *Server) decodeDeleteChatPhotoRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request DeleteChatPhoto buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -939,6 +937,8 @@ func (s *Server) decodeDeleteChatPhotoRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request DeleteChatPhoto if err := func() error { if err := request.Decode(d); err != nil { return err @@ -990,8 +990,6 @@ func (s *Server) decodeDeleteChatStickerSetRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request DeleteChatStickerSet buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1002,6 +1000,8 @@ func (s *Server) decodeDeleteChatStickerSetRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request DeleteChatStickerSet if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1053,8 +1053,6 @@ func (s *Server) decodeDeleteMessageRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request DeleteMessage buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1065,6 +1063,8 @@ func (s *Server) decodeDeleteMessageRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request DeleteMessage if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1119,8 +1119,6 @@ func (s *Server) decodeDeleteMyCommandsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptDeleteMyCommands buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1131,6 +1129,8 @@ func (s *Server) decodeDeleteMyCommandsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptDeleteMyCommands if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -1183,8 +1183,6 @@ func (s *Server) decodeDeleteStickerFromSetRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request DeleteStickerFromSet buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1195,6 +1193,8 @@ func (s *Server) decodeDeleteStickerFromSetRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request DeleteStickerFromSet if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1249,8 +1249,6 @@ func (s *Server) decodeDeleteWebhookRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptDeleteWebhook buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1261,6 +1259,8 @@ func (s *Server) decodeDeleteWebhookRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptDeleteWebhook if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -1313,8 +1313,6 @@ func (s *Server) decodeEditChatInviteLinkRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EditChatInviteLink buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1325,6 +1323,8 @@ func (s *Server) decodeEditChatInviteLinkRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request EditChatInviteLink if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1384,8 +1384,6 @@ func (s *Server) decodeEditMessageCaptionRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EditMessageCaption buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1396,6 +1394,8 @@ func (s *Server) decodeEditMessageCaptionRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request EditMessageCaption if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1455,8 +1455,6 @@ func (s *Server) decodeEditMessageLiveLocationRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EditMessageLiveLocation buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1467,6 +1465,8 @@ func (s *Server) decodeEditMessageLiveLocationRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request EditMessageLiveLocation if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1526,8 +1526,6 @@ func (s *Server) decodeEditMessageMediaRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EditMessageMedia buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1538,6 +1536,8 @@ func (s *Server) decodeEditMessageMediaRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request EditMessageMedia if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1597,8 +1597,6 @@ func (s *Server) decodeEditMessageReplyMarkupRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EditMessageReplyMarkup buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1609,6 +1607,8 @@ func (s *Server) decodeEditMessageReplyMarkupRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request EditMessageReplyMarkup if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1668,8 +1668,6 @@ func (s *Server) decodeEditMessageTextRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EditMessageText buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1680,6 +1678,8 @@ func (s *Server) decodeEditMessageTextRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request EditMessageText if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1739,8 +1739,6 @@ func (s *Server) decodeExportChatInviteLinkRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ExportChatInviteLink buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1751,6 +1749,8 @@ func (s *Server) decodeExportChatInviteLinkRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ExportChatInviteLink if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1802,8 +1802,6 @@ func (s *Server) decodeForwardMessageRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ForwardMessage buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1814,6 +1812,8 @@ func (s *Server) decodeForwardMessageRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ForwardMessage if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1865,8 +1865,6 @@ func (s *Server) decodeGetChatRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GetChat buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1877,6 +1875,8 @@ func (s *Server) decodeGetChatRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GetChat if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1928,8 +1928,6 @@ func (s *Server) decodeGetChatAdministratorsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GetChatAdministrators buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1940,6 +1938,8 @@ func (s *Server) decodeGetChatAdministratorsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GetChatAdministrators if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1991,8 +1991,6 @@ func (s *Server) decodeGetChatMemberRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GetChatMember buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2003,6 +2001,8 @@ func (s *Server) decodeGetChatMemberRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GetChatMember if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2054,8 +2054,6 @@ func (s *Server) decodeGetChatMemberCountRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GetChatMemberCount buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2066,6 +2064,8 @@ func (s *Server) decodeGetChatMemberCountRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GetChatMemberCount if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2120,8 +2120,6 @@ func (s *Server) decodeGetChatMenuButtonRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptGetChatMenuButton buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2132,6 +2130,8 @@ func (s *Server) decodeGetChatMenuButtonRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptGetChatMenuButton if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -2184,8 +2184,6 @@ func (s *Server) decodeGetFileRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GetFile buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2196,6 +2194,8 @@ func (s *Server) decodeGetFileRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GetFile if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2247,8 +2247,6 @@ func (s *Server) decodeGetGameHighScoresRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GetGameHighScores buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2259,6 +2257,8 @@ func (s *Server) decodeGetGameHighScoresRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GetGameHighScores if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2313,8 +2313,6 @@ func (s *Server) decodeGetMyCommandsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptGetMyCommands buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2325,6 +2323,8 @@ func (s *Server) decodeGetMyCommandsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptGetMyCommands if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -2380,8 +2380,6 @@ func (s *Server) decodeGetMyDefaultAdministratorRightsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptGetMyDefaultAdministratorRights buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2392,6 +2390,8 @@ func (s *Server) decodeGetMyDefaultAdministratorRightsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptGetMyDefaultAdministratorRights if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -2444,8 +2444,6 @@ func (s *Server) decodeGetStickerSetRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GetStickerSet buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2456,6 +2454,8 @@ func (s *Server) decodeGetStickerSetRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GetStickerSet if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2510,8 +2510,6 @@ func (s *Server) decodeGetUpdatesRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptGetUpdates buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2522,6 +2520,8 @@ func (s *Server) decodeGetUpdatesRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptGetUpdates if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -2589,8 +2589,6 @@ func (s *Server) decodeGetUserProfilePhotosRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GetUserProfilePhotos buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2601,6 +2599,8 @@ func (s *Server) decodeGetUserProfilePhotosRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GetUserProfilePhotos if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2660,8 +2660,6 @@ func (s *Server) decodeLeaveChatRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request LeaveChat buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2672,6 +2670,8 @@ func (s *Server) decodeLeaveChatRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request LeaveChat if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2723,8 +2723,6 @@ func (s *Server) decodePinChatMessageRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request PinChatMessage buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2735,6 +2733,8 @@ func (s *Server) decodePinChatMessageRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request PinChatMessage if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2786,8 +2786,6 @@ func (s *Server) decodePromoteChatMemberRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request PromoteChatMember buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2798,6 +2796,8 @@ func (s *Server) decodePromoteChatMemberRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request PromoteChatMember if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2849,8 +2849,6 @@ func (s *Server) decodeRestrictChatMemberRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request RestrictChatMember buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2861,6 +2859,8 @@ func (s *Server) decodeRestrictChatMemberRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request RestrictChatMember if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2912,8 +2912,6 @@ func (s *Server) decodeRevokeChatInviteLinkRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request RevokeChatInviteLink buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2924,6 +2922,8 @@ func (s *Server) decodeRevokeChatInviteLinkRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request RevokeChatInviteLink if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2975,8 +2975,6 @@ func (s *Server) decodeSendAnimationRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendAnimation buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2987,6 +2985,8 @@ func (s *Server) decodeSendAnimationRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendAnimation if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3046,8 +3046,6 @@ func (s *Server) decodeSendAudioRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendAudio buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3058,6 +3056,8 @@ func (s *Server) decodeSendAudioRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendAudio if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3117,8 +3117,6 @@ func (s *Server) decodeSendChatActionRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendChatAction buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3129,6 +3127,8 @@ func (s *Server) decodeSendChatActionRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendChatAction if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3180,8 +3180,6 @@ func (s *Server) decodeSendContactRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendContact buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3192,6 +3190,8 @@ func (s *Server) decodeSendContactRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendContact if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3251,8 +3251,6 @@ func (s *Server) decodeSendDiceRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendDice buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3263,6 +3261,8 @@ func (s *Server) decodeSendDiceRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendDice if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3322,8 +3322,6 @@ func (s *Server) decodeSendDocumentRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendDocument buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3334,6 +3332,8 @@ func (s *Server) decodeSendDocumentRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendDocument if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3393,8 +3393,6 @@ func (s *Server) decodeSendGameRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendGame buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3405,6 +3403,8 @@ func (s *Server) decodeSendGameRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendGame if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3464,8 +3464,6 @@ func (s *Server) decodeSendInvoiceRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendInvoice buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3476,6 +3474,8 @@ func (s *Server) decodeSendInvoiceRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendInvoice if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3535,8 +3535,6 @@ func (s *Server) decodeSendLocationRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendLocation buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3547,6 +3545,8 @@ func (s *Server) decodeSendLocationRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendLocation if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3606,8 +3606,6 @@ func (s *Server) decodeSendMediaGroupRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendMediaGroup buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3618,6 +3616,8 @@ func (s *Server) decodeSendMediaGroupRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendMediaGroup if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3677,8 +3677,6 @@ func (s *Server) decodeSendMessageRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendMessage buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3689,6 +3687,8 @@ func (s *Server) decodeSendMessageRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendMessage if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3748,8 +3748,6 @@ func (s *Server) decodeSendPhotoRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendPhoto buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3760,6 +3758,8 @@ func (s *Server) decodeSendPhotoRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendPhoto if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3819,8 +3819,6 @@ func (s *Server) decodeSendPollRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendPoll buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3831,6 +3829,8 @@ func (s *Server) decodeSendPollRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendPoll if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3890,8 +3890,6 @@ func (s *Server) decodeSendStickerRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendSticker buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3902,6 +3900,8 @@ func (s *Server) decodeSendStickerRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendSticker if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3961,8 +3961,6 @@ func (s *Server) decodeSendVenueRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendVenue buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3973,6 +3971,8 @@ func (s *Server) decodeSendVenueRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendVenue if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4032,8 +4032,6 @@ func (s *Server) decodeSendVideoRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendVideo buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4044,6 +4042,8 @@ func (s *Server) decodeSendVideoRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendVideo if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4103,8 +4103,6 @@ func (s *Server) decodeSendVideoNoteRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendVideoNote buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4115,6 +4113,8 @@ func (s *Server) decodeSendVideoNoteRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendVideoNote if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4174,8 +4174,6 @@ func (s *Server) decodeSendVoiceRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendVoice buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4186,6 +4184,8 @@ func (s *Server) decodeSendVoiceRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendVoice if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4245,8 +4245,6 @@ func (s *Server) decodeSetChatAdministratorCustomTitleRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetChatAdministratorCustomTitle buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4257,6 +4255,8 @@ func (s *Server) decodeSetChatAdministratorCustomTitleRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetChatAdministratorCustomTitle if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4316,8 +4316,6 @@ func (s *Server) decodeSetChatDescriptionRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetChatDescription buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4328,6 +4326,8 @@ func (s *Server) decodeSetChatDescriptionRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetChatDescription if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4390,8 +4390,6 @@ func (s *Server) decodeSetChatMenuButtonRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptSetChatMenuButton buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4402,6 +4400,8 @@ func (s *Server) decodeSetChatMenuButtonRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptSetChatMenuButton if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -4454,8 +4454,6 @@ func (s *Server) decodeSetChatPermissionsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetChatPermissions buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4466,6 +4464,8 @@ func (s *Server) decodeSetChatPermissionsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetChatPermissions if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4517,8 +4517,6 @@ func (s *Server) decodeSetChatPhotoRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetChatPhoto buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4529,6 +4527,8 @@ func (s *Server) decodeSetChatPhotoRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetChatPhoto if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4580,8 +4580,6 @@ func (s *Server) decodeSetChatStickerSetRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetChatStickerSet buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4592,6 +4590,8 @@ func (s *Server) decodeSetChatStickerSetRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetChatStickerSet if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4643,8 +4643,6 @@ func (s *Server) decodeSetChatTitleRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetChatTitle buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4655,6 +4653,8 @@ func (s *Server) decodeSetChatTitleRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetChatTitle if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4714,8 +4714,6 @@ func (s *Server) decodeSetGameScoreRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetGameScore buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4726,6 +4724,8 @@ func (s *Server) decodeSetGameScoreRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetGameScore if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4777,8 +4777,6 @@ func (s *Server) decodeSetMyCommandsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetMyCommands buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4789,6 +4787,8 @@ func (s *Server) decodeSetMyCommandsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetMyCommands if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4851,8 +4851,6 @@ func (s *Server) decodeSetMyDefaultAdministratorRightsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptSetMyDefaultAdministratorRights buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4863,6 +4861,8 @@ func (s *Server) decodeSetMyDefaultAdministratorRightsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptSetMyDefaultAdministratorRights if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -4915,8 +4915,6 @@ func (s *Server) decodeSetPassportDataErrorsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetPassportDataErrors buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4927,6 +4925,8 @@ func (s *Server) decodeSetPassportDataErrorsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetPassportDataErrors if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4986,8 +4986,6 @@ func (s *Server) decodeSetStickerPositionInSetRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetStickerPositionInSet buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4998,6 +4996,8 @@ func (s *Server) decodeSetStickerPositionInSetRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetStickerPositionInSet if err := func() error { if err := request.Decode(d); err != nil { return err @@ -5049,8 +5049,6 @@ func (s *Server) decodeSetStickerSetThumbRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetStickerSetThumb buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5061,6 +5059,8 @@ func (s *Server) decodeSetStickerSetThumbRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetStickerSetThumb if err := func() error { if err := request.Decode(d); err != nil { return err @@ -5112,8 +5112,6 @@ func (s *Server) decodeSetWebhookRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetWebhook buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5124,6 +5122,8 @@ func (s *Server) decodeSetWebhookRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetWebhook if err := func() error { if err := request.Decode(d); err != nil { return err @@ -5175,8 +5175,6 @@ func (s *Server) decodeStopMessageLiveLocationRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request StopMessageLiveLocation buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5187,6 +5185,8 @@ func (s *Server) decodeStopMessageLiveLocationRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request StopMessageLiveLocation if err := func() error { if err := request.Decode(d); err != nil { return err @@ -5246,8 +5246,6 @@ func (s *Server) decodeStopPollRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request StopPoll buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5258,6 +5256,8 @@ func (s *Server) decodeStopPollRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request StopPoll if err := func() error { if err := request.Decode(d); err != nil { return err @@ -5317,8 +5317,6 @@ func (s *Server) decodeUnbanChatMemberRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request UnbanChatMember buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5329,6 +5327,8 @@ func (s *Server) decodeUnbanChatMemberRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request UnbanChatMember if err := func() error { if err := request.Decode(d); err != nil { return err @@ -5380,8 +5380,6 @@ func (s *Server) decodeUnbanChatSenderChatRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request UnbanChatSenderChat buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5392,6 +5390,8 @@ func (s *Server) decodeUnbanChatSenderChatRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request UnbanChatSenderChat if err := func() error { if err := request.Decode(d); err != nil { return err @@ -5443,8 +5443,6 @@ func (s *Server) decodeUnpinAllChatMessagesRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request UnpinAllChatMessages buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5455,6 +5453,8 @@ func (s *Server) decodeUnpinAllChatMessagesRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request UnpinAllChatMessages if err := func() error { if err := request.Decode(d); err != nil { return err @@ -5506,8 +5506,6 @@ func (s *Server) decodeUnpinChatMessageRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request UnpinChatMessage buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5518,6 +5516,8 @@ func (s *Server) decodeUnpinChatMessageRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request UnpinChatMessage if err := func() error { if err := request.Decode(d); err != nil { return err @@ -5569,8 +5569,6 @@ func (s *Server) decodeUploadStickerFileRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request UploadStickerFile buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5581,6 +5579,8 @@ func (s *Server) decodeUploadStickerFileRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request UploadStickerFile if err := func() error { if err := request.Decode(d); err != nil { return err diff --git a/examples/ex_gotd/oas_response_decoders_gen.go b/examples/ex_gotd/oas_response_decoders_gen.go index 36b0ac8d8..eae260b1e 100644 --- a/examples/ex_gotd/oas_response_decoders_gen.go +++ b/examples/ex_gotd/oas_response_decoders_gen.go @@ -28,8 +28,8 @@ func decodeAddStickerToSetResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -64,8 +64,8 @@ func decodeAddStickerToSetResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -111,8 +111,8 @@ func decodeAnswerCallbackQueryResponse(resp *http.Response) (res *Result, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -147,8 +147,8 @@ func decodeAnswerCallbackQueryResponse(resp *http.Response) (res *Result, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -194,8 +194,8 @@ func decodeAnswerInlineQueryResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -230,8 +230,8 @@ func decodeAnswerInlineQueryResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -277,8 +277,8 @@ func decodeAnswerPreCheckoutQueryResponse(resp *http.Response) (res *Result, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -313,8 +313,8 @@ func decodeAnswerPreCheckoutQueryResponse(resp *http.Response) (res *Result, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -360,8 +360,8 @@ func decodeAnswerShippingQueryResponse(resp *http.Response) (res *Result, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -396,8 +396,8 @@ func decodeAnswerShippingQueryResponse(resp *http.Response) (res *Result, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -443,8 +443,8 @@ func decodeAnswerWebAppQueryResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -479,8 +479,8 @@ func decodeAnswerWebAppQueryResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -526,8 +526,8 @@ func decodeApproveChatJoinRequestResponse(resp *http.Response) (res *Result, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -562,8 +562,8 @@ func decodeApproveChatJoinRequestResponse(resp *http.Response) (res *Result, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -609,8 +609,8 @@ func decodeBanChatMemberResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -645,8 +645,8 @@ func decodeBanChatMemberResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -692,8 +692,8 @@ func decodeBanChatSenderChatResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -728,8 +728,8 @@ func decodeBanChatSenderChatResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -775,8 +775,8 @@ func decodeCloseResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -811,8 +811,8 @@ func decodeCloseResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -858,8 +858,8 @@ func decodeCopyMessageResponse(resp *http.Response) (res *ResultMessageId, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessageId if err := func() error { if err := response.Decode(d); err != nil { @@ -894,8 +894,8 @@ func decodeCopyMessageResponse(resp *http.Response) (res *ResultMessageId, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -941,8 +941,8 @@ func decodeCreateChatInviteLinkResponse(resp *http.Response) (res *ResultChatInv if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultChatInviteLink if err := func() error { if err := response.Decode(d); err != nil { @@ -977,8 +977,8 @@ func decodeCreateChatInviteLinkResponse(resp *http.Response) (res *ResultChatInv if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1024,8 +1024,8 @@ func decodeCreateNewStickerSetResponse(resp *http.Response) (res *Result, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -1060,8 +1060,8 @@ func decodeCreateNewStickerSetResponse(resp *http.Response) (res *Result, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1107,8 +1107,8 @@ func decodeDeclineChatJoinRequestResponse(resp *http.Response) (res *Result, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -1143,8 +1143,8 @@ func decodeDeclineChatJoinRequestResponse(resp *http.Response) (res *Result, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1190,8 +1190,8 @@ func decodeDeleteChatPhotoResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -1226,8 +1226,8 @@ func decodeDeleteChatPhotoResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1273,8 +1273,8 @@ func decodeDeleteChatStickerSetResponse(resp *http.Response) (res *Result, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -1309,8 +1309,8 @@ func decodeDeleteChatStickerSetResponse(resp *http.Response) (res *Result, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1356,8 +1356,8 @@ func decodeDeleteMessageResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -1392,8 +1392,8 @@ func decodeDeleteMessageResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1439,8 +1439,8 @@ func decodeDeleteMyCommandsResponse(resp *http.Response) (res *Result, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -1475,8 +1475,8 @@ func decodeDeleteMyCommandsResponse(resp *http.Response) (res *Result, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1522,8 +1522,8 @@ func decodeDeleteStickerFromSetResponse(resp *http.Response) (res *Result, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -1558,8 +1558,8 @@ func decodeDeleteStickerFromSetResponse(resp *http.Response) (res *Result, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1605,8 +1605,8 @@ func decodeDeleteWebhookResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -1641,8 +1641,8 @@ func decodeDeleteWebhookResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1688,8 +1688,8 @@ func decodeEditChatInviteLinkResponse(resp *http.Response) (res *ResultChatInvit if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultChatInviteLink if err := func() error { if err := response.Decode(d); err != nil { @@ -1724,8 +1724,8 @@ func decodeEditChatInviteLinkResponse(resp *http.Response) (res *ResultChatInvit if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1771,8 +1771,8 @@ func decodeEditMessageCaptionResponse(resp *http.Response) (res *ResultMessageOr if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessageOrBoolean if err := func() error { if err := response.Decode(d); err != nil { @@ -1807,8 +1807,8 @@ func decodeEditMessageCaptionResponse(resp *http.Response) (res *ResultMessageOr if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1854,8 +1854,8 @@ func decodeEditMessageLiveLocationResponse(resp *http.Response) (res *ResultMess if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessageOrBoolean if err := func() error { if err := response.Decode(d); err != nil { @@ -1890,8 +1890,8 @@ func decodeEditMessageLiveLocationResponse(resp *http.Response) (res *ResultMess if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1937,8 +1937,8 @@ func decodeEditMessageMediaResponse(resp *http.Response) (res *ResultMessageOrBo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessageOrBoolean if err := func() error { if err := response.Decode(d); err != nil { @@ -1973,8 +1973,8 @@ func decodeEditMessageMediaResponse(resp *http.Response) (res *ResultMessageOrBo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2020,8 +2020,8 @@ func decodeEditMessageReplyMarkupResponse(resp *http.Response) (res *ResultMessa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessageOrBoolean if err := func() error { if err := response.Decode(d); err != nil { @@ -2056,8 +2056,8 @@ func decodeEditMessageReplyMarkupResponse(resp *http.Response) (res *ResultMessa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2103,8 +2103,8 @@ func decodeEditMessageTextResponse(resp *http.Response) (res *ResultMessageOrBoo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessageOrBoolean if err := func() error { if err := response.Decode(d); err != nil { @@ -2139,8 +2139,8 @@ func decodeEditMessageTextResponse(resp *http.Response) (res *ResultMessageOrBoo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2186,8 +2186,8 @@ func decodeExportChatInviteLinkResponse(resp *http.Response) (res *ResultString, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultString if err := func() error { if err := response.Decode(d); err != nil { @@ -2222,8 +2222,8 @@ func decodeExportChatInviteLinkResponse(resp *http.Response) (res *ResultString, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2269,8 +2269,8 @@ func decodeForwardMessageResponse(resp *http.Response) (res *ResultMessage, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -2305,8 +2305,8 @@ func decodeForwardMessageResponse(resp *http.Response) (res *ResultMessage, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2352,8 +2352,8 @@ func decodeGetChatResponse(resp *http.Response) (res *ResultChat, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultChat if err := func() error { if err := response.Decode(d); err != nil { @@ -2388,8 +2388,8 @@ func decodeGetChatResponse(resp *http.Response) (res *ResultChat, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2435,8 +2435,8 @@ func decodeGetChatAdministratorsResponse(resp *http.Response) (res *ResultArrayO if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultArrayOfChatMember if err := func() error { if err := response.Decode(d); err != nil { @@ -2471,8 +2471,8 @@ func decodeGetChatAdministratorsResponse(resp *http.Response) (res *ResultArrayO if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2518,8 +2518,8 @@ func decodeGetChatMemberResponse(resp *http.Response) (res *ResultChatMember, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultChatMember if err := func() error { if err := response.Decode(d); err != nil { @@ -2554,8 +2554,8 @@ func decodeGetChatMemberResponse(resp *http.Response) (res *ResultChatMember, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2601,8 +2601,8 @@ func decodeGetChatMemberCountResponse(resp *http.Response) (res *ResultInt, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultInt if err := func() error { if err := response.Decode(d); err != nil { @@ -2637,8 +2637,8 @@ func decodeGetChatMemberCountResponse(resp *http.Response) (res *ResultInt, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2684,8 +2684,8 @@ func decodeGetChatMenuButtonResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -2720,8 +2720,8 @@ func decodeGetChatMenuButtonResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2767,8 +2767,8 @@ func decodeGetFileResponse(resp *http.Response) (res *ResultFile, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultFile if err := func() error { if err := response.Decode(d); err != nil { @@ -2803,8 +2803,8 @@ func decodeGetFileResponse(resp *http.Response) (res *ResultFile, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2850,8 +2850,8 @@ func decodeGetGameHighScoresResponse(resp *http.Response) (res *ResultArrayOfGam if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultArrayOfGameHighScore if err := func() error { if err := response.Decode(d); err != nil { @@ -2886,8 +2886,8 @@ func decodeGetGameHighScoresResponse(resp *http.Response) (res *ResultArrayOfGam if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2933,8 +2933,8 @@ func decodeGetMeResponse(resp *http.Response) (res *ResultUser, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultUser if err := func() error { if err := response.Decode(d); err != nil { @@ -2969,8 +2969,8 @@ func decodeGetMeResponse(resp *http.Response) (res *ResultUser, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3016,8 +3016,8 @@ func decodeGetMyCommandsResponse(resp *http.Response) (res *ResultArrayOfBotComm if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultArrayOfBotCommand if err := func() error { if err := response.Decode(d); err != nil { @@ -3052,8 +3052,8 @@ func decodeGetMyCommandsResponse(resp *http.Response) (res *ResultArrayOfBotComm if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3099,8 +3099,8 @@ func decodeGetMyDefaultAdministratorRightsResponse(resp *http.Response) (res *Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -3135,8 +3135,8 @@ func decodeGetMyDefaultAdministratorRightsResponse(resp *http.Response) (res *Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3182,8 +3182,8 @@ func decodeGetStickerSetResponse(resp *http.Response) (res *ResultStickerSet, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultStickerSet if err := func() error { if err := response.Decode(d); err != nil { @@ -3218,8 +3218,8 @@ func decodeGetStickerSetResponse(resp *http.Response) (res *ResultStickerSet, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3265,8 +3265,8 @@ func decodeGetUpdatesResponse(resp *http.Response) (res *ResultArrayOfUpdate, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultArrayOfUpdate if err := func() error { if err := response.Decode(d); err != nil { @@ -3301,8 +3301,8 @@ func decodeGetUpdatesResponse(resp *http.Response) (res *ResultArrayOfUpdate, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3348,8 +3348,8 @@ func decodeGetUserProfilePhotosResponse(resp *http.Response) (res *ResultUserPro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultUserProfilePhotos if err := func() error { if err := response.Decode(d); err != nil { @@ -3384,8 +3384,8 @@ func decodeGetUserProfilePhotosResponse(resp *http.Response) (res *ResultUserPro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3431,8 +3431,8 @@ func decodeGetWebhookInfoResponse(resp *http.Response) (res *ResultWebhookInfo, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultWebhookInfo if err := func() error { if err := response.Decode(d); err != nil { @@ -3467,8 +3467,8 @@ func decodeGetWebhookInfoResponse(resp *http.Response) (res *ResultWebhookInfo, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3514,8 +3514,8 @@ func decodeLeaveChatResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -3550,8 +3550,8 @@ func decodeLeaveChatResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3597,8 +3597,8 @@ func decodeLogOutResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -3633,8 +3633,8 @@ func decodeLogOutResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3680,8 +3680,8 @@ func decodePinChatMessageResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -3716,8 +3716,8 @@ func decodePinChatMessageResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3763,8 +3763,8 @@ func decodePromoteChatMemberResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -3799,8 +3799,8 @@ func decodePromoteChatMemberResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3846,8 +3846,8 @@ func decodeRestrictChatMemberResponse(resp *http.Response) (res *Result, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -3882,8 +3882,8 @@ func decodeRestrictChatMemberResponse(resp *http.Response) (res *Result, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3929,8 +3929,8 @@ func decodeRevokeChatInviteLinkResponse(resp *http.Response) (res *ResultChatInv if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultChatInviteLink if err := func() error { if err := response.Decode(d); err != nil { @@ -3965,8 +3965,8 @@ func decodeRevokeChatInviteLinkResponse(resp *http.Response) (res *ResultChatInv if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4012,8 +4012,8 @@ func decodeSendAnimationResponse(resp *http.Response) (res *ResultMessage, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4048,8 +4048,8 @@ func decodeSendAnimationResponse(resp *http.Response) (res *ResultMessage, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4095,8 +4095,8 @@ func decodeSendAudioResponse(resp *http.Response) (res *ResultMessage, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4131,8 +4131,8 @@ func decodeSendAudioResponse(resp *http.Response) (res *ResultMessage, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4178,8 +4178,8 @@ func decodeSendChatActionResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -4214,8 +4214,8 @@ func decodeSendChatActionResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4261,8 +4261,8 @@ func decodeSendContactResponse(resp *http.Response) (res *ResultMessage, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4297,8 +4297,8 @@ func decodeSendContactResponse(resp *http.Response) (res *ResultMessage, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4344,8 +4344,8 @@ func decodeSendDiceResponse(resp *http.Response) (res *ResultMessage, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4380,8 +4380,8 @@ func decodeSendDiceResponse(resp *http.Response) (res *ResultMessage, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4427,8 +4427,8 @@ func decodeSendDocumentResponse(resp *http.Response) (res *ResultMessage, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4463,8 +4463,8 @@ func decodeSendDocumentResponse(resp *http.Response) (res *ResultMessage, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4510,8 +4510,8 @@ func decodeSendGameResponse(resp *http.Response) (res *ResultMessage, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4546,8 +4546,8 @@ func decodeSendGameResponse(resp *http.Response) (res *ResultMessage, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4593,8 +4593,8 @@ func decodeSendInvoiceResponse(resp *http.Response) (res *ResultMessage, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4629,8 +4629,8 @@ func decodeSendInvoiceResponse(resp *http.Response) (res *ResultMessage, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4676,8 +4676,8 @@ func decodeSendLocationResponse(resp *http.Response) (res *ResultMessage, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4712,8 +4712,8 @@ func decodeSendLocationResponse(resp *http.Response) (res *ResultMessage, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4759,8 +4759,8 @@ func decodeSendMediaGroupResponse(resp *http.Response) (res *ResultArrayOfMessag if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultArrayOfMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4795,8 +4795,8 @@ func decodeSendMediaGroupResponse(resp *http.Response) (res *ResultArrayOfMessag if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4842,8 +4842,8 @@ func decodeSendMessageResponse(resp *http.Response) (res *ResultMessage, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4878,8 +4878,8 @@ func decodeSendMessageResponse(resp *http.Response) (res *ResultMessage, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4925,8 +4925,8 @@ func decodeSendPhotoResponse(resp *http.Response) (res *ResultMessage, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4961,8 +4961,8 @@ func decodeSendPhotoResponse(resp *http.Response) (res *ResultMessage, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5008,8 +5008,8 @@ func decodeSendPollResponse(resp *http.Response) (res *ResultMessage, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -5044,8 +5044,8 @@ func decodeSendPollResponse(resp *http.Response) (res *ResultMessage, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5091,8 +5091,8 @@ func decodeSendStickerResponse(resp *http.Response) (res *ResultMessage, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -5127,8 +5127,8 @@ func decodeSendStickerResponse(resp *http.Response) (res *ResultMessage, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5174,8 +5174,8 @@ func decodeSendVenueResponse(resp *http.Response) (res *ResultMessage, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -5210,8 +5210,8 @@ func decodeSendVenueResponse(resp *http.Response) (res *ResultMessage, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5257,8 +5257,8 @@ func decodeSendVideoResponse(resp *http.Response) (res *ResultMessage, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -5293,8 +5293,8 @@ func decodeSendVideoResponse(resp *http.Response) (res *ResultMessage, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5340,8 +5340,8 @@ func decodeSendVideoNoteResponse(resp *http.Response) (res *ResultMessage, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -5376,8 +5376,8 @@ func decodeSendVideoNoteResponse(resp *http.Response) (res *ResultMessage, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5423,8 +5423,8 @@ func decodeSendVoiceResponse(resp *http.Response) (res *ResultMessage, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -5459,8 +5459,8 @@ func decodeSendVoiceResponse(resp *http.Response) (res *ResultMessage, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5506,8 +5506,8 @@ func decodeSetChatAdministratorCustomTitleResponse(resp *http.Response) (res *Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -5542,8 +5542,8 @@ func decodeSetChatAdministratorCustomTitleResponse(resp *http.Response) (res *Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5589,8 +5589,8 @@ func decodeSetChatDescriptionResponse(resp *http.Response) (res *Result, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -5625,8 +5625,8 @@ func decodeSetChatDescriptionResponse(resp *http.Response) (res *Result, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5672,8 +5672,8 @@ func decodeSetChatMenuButtonResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -5708,8 +5708,8 @@ func decodeSetChatMenuButtonResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5755,8 +5755,8 @@ func decodeSetChatPermissionsResponse(resp *http.Response) (res *Result, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -5791,8 +5791,8 @@ func decodeSetChatPermissionsResponse(resp *http.Response) (res *Result, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5838,8 +5838,8 @@ func decodeSetChatPhotoResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -5874,8 +5874,8 @@ func decodeSetChatPhotoResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5921,8 +5921,8 @@ func decodeSetChatStickerSetResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -5957,8 +5957,8 @@ func decodeSetChatStickerSetResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6004,8 +6004,8 @@ func decodeSetChatTitleResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -6040,8 +6040,8 @@ func decodeSetChatTitleResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6087,8 +6087,8 @@ func decodeSetGameScoreResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -6123,8 +6123,8 @@ func decodeSetGameScoreResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6170,8 +6170,8 @@ func decodeSetMyCommandsResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -6206,8 +6206,8 @@ func decodeSetMyCommandsResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6253,8 +6253,8 @@ func decodeSetMyDefaultAdministratorRightsResponse(resp *http.Response) (res *Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -6289,8 +6289,8 @@ func decodeSetMyDefaultAdministratorRightsResponse(resp *http.Response) (res *Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6336,8 +6336,8 @@ func decodeSetPassportDataErrorsResponse(resp *http.Response) (res *Result, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -6372,8 +6372,8 @@ func decodeSetPassportDataErrorsResponse(resp *http.Response) (res *Result, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6419,8 +6419,8 @@ func decodeSetStickerPositionInSetResponse(resp *http.Response) (res *Result, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -6455,8 +6455,8 @@ func decodeSetStickerPositionInSetResponse(resp *http.Response) (res *Result, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6502,8 +6502,8 @@ func decodeSetStickerSetThumbResponse(resp *http.Response) (res *Result, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -6538,8 +6538,8 @@ func decodeSetStickerSetThumbResponse(resp *http.Response) (res *Result, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6585,8 +6585,8 @@ func decodeSetWebhookResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -6621,8 +6621,8 @@ func decodeSetWebhookResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6668,8 +6668,8 @@ func decodeStopMessageLiveLocationResponse(resp *http.Response) (res *ResultMess if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessageOrBoolean if err := func() error { if err := response.Decode(d); err != nil { @@ -6704,8 +6704,8 @@ func decodeStopMessageLiveLocationResponse(resp *http.Response) (res *ResultMess if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6751,8 +6751,8 @@ func decodeStopPollResponse(resp *http.Response) (res *ResultPoll, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultPoll if err := func() error { if err := response.Decode(d); err != nil { @@ -6787,8 +6787,8 @@ func decodeStopPollResponse(resp *http.Response) (res *ResultPoll, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6834,8 +6834,8 @@ func decodeUnbanChatMemberResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -6870,8 +6870,8 @@ func decodeUnbanChatMemberResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6917,8 +6917,8 @@ func decodeUnbanChatSenderChatResponse(resp *http.Response) (res *Result, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -6953,8 +6953,8 @@ func decodeUnbanChatSenderChatResponse(resp *http.Response) (res *Result, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7000,8 +7000,8 @@ func decodeUnpinAllChatMessagesResponse(resp *http.Response) (res *Result, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -7036,8 +7036,8 @@ func decodeUnpinAllChatMessagesResponse(resp *http.Response) (res *Result, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7083,8 +7083,8 @@ func decodeUnpinChatMessageResponse(resp *http.Response) (res *Result, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -7119,8 +7119,8 @@ func decodeUnpinChatMessageResponse(resp *http.Response) (res *Result, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7166,8 +7166,8 @@ func decodeUploadStickerFileResponse(resp *http.Response) (res *ResultFile, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultFile if err := func() error { if err := response.Decode(d); err != nil { @@ -7202,8 +7202,8 @@ func decodeUploadStickerFileResponse(resp *http.Response) (res *ResultFile, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { diff --git a/examples/ex_k8s/oas_response_decoders_gen.go b/examples/ex_k8s/oas_response_decoders_gen.go index 1f82bd10d..55ce0a870 100644 --- a/examples/ex_k8s/oas_response_decoders_gen.go +++ b/examples/ex_k8s/oas_response_decoders_gen.go @@ -1374,8 +1374,8 @@ func decodeGetAPIVersionsResponse(resp *http.Response) (res GetAPIVersionsRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIGroupList if err := func() error { if err := response.Decode(d); err != nil { @@ -1418,8 +1418,8 @@ func decodeGetAdmissionregistrationAPIGroupResponse(resp *http.Response) (res Ge if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -1462,8 +1462,8 @@ func decodeGetAdmissionregistrationV1APIResourcesResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -1506,8 +1506,8 @@ func decodeGetApiextensionsAPIGroupResponse(resp *http.Response) (res GetApiexte if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -1550,8 +1550,8 @@ func decodeGetApiextensionsV1APIResourcesResponse(resp *http.Response) (res GetA if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -1594,8 +1594,8 @@ func decodeGetApiregistrationAPIGroupResponse(resp *http.Response) (res GetApire if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -1638,8 +1638,8 @@ func decodeGetApiregistrationV1APIResourcesResponse(resp *http.Response) (res Ge if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -1682,8 +1682,8 @@ func decodeGetAppsAPIGroupResponse(resp *http.Response) (res GetAppsAPIGroupRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -1726,8 +1726,8 @@ func decodeGetAppsV1APIResourcesResponse(resp *http.Response) (res GetAppsV1APIR if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -1770,8 +1770,8 @@ func decodeGetAuthenticationAPIGroupResponse(resp *http.Response) (res GetAuthen if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -1814,8 +1814,8 @@ func decodeGetAuthenticationV1APIResourcesResponse(resp *http.Response) (res Get if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -1858,8 +1858,8 @@ func decodeGetAuthorizationAPIGroupResponse(resp *http.Response) (res GetAuthori if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -1902,8 +1902,8 @@ func decodeGetAuthorizationV1APIResourcesResponse(resp *http.Response) (res GetA if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -1946,8 +1946,8 @@ func decodeGetAutoscalingAPIGroupResponse(resp *http.Response) (res GetAutoscali if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -1990,8 +1990,8 @@ func decodeGetAutoscalingV1APIResourcesResponse(resp *http.Response) (res GetAut if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -2034,8 +2034,8 @@ func decodeGetAutoscalingV2beta1APIResourcesResponse(resp *http.Response) (res G if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -2078,8 +2078,8 @@ func decodeGetAutoscalingV2beta2APIResourcesResponse(resp *http.Response) (res G if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -2122,8 +2122,8 @@ func decodeGetBatchAPIGroupResponse(resp *http.Response) (res GetBatchAPIGroupRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -2166,8 +2166,8 @@ func decodeGetBatchV1APIResourcesResponse(resp *http.Response) (res GetBatchV1AP if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -2210,8 +2210,8 @@ func decodeGetBatchV1beta1APIResourcesResponse(resp *http.Response) (res GetBatc if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -2254,8 +2254,8 @@ func decodeGetCertificatesAPIGroupResponse(resp *http.Response) (res GetCertific if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -2298,8 +2298,8 @@ func decodeGetCertificatesV1APIResourcesResponse(resp *http.Response) (res GetCe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -2342,8 +2342,8 @@ func decodeGetCodeVersionResponse(resp *http.Response) (res GetCodeVersionRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgVersionInfo if err := func() error { if err := response.Decode(d); err != nil { @@ -2386,8 +2386,8 @@ func decodeGetCoordinationAPIGroupResponse(resp *http.Response) (res GetCoordina if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -2430,8 +2430,8 @@ func decodeGetCoordinationV1APIResourcesResponse(resp *http.Response) (res GetCo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -2474,8 +2474,8 @@ func decodeGetCoreAPIVersionsResponse(resp *http.Response) (res GetCoreAPIVersio if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIVersions if err := func() error { if err := response.Decode(d); err != nil { @@ -2518,8 +2518,8 @@ func decodeGetCoreV1APIResourcesResponse(resp *http.Response) (res GetCoreV1APIR if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -2562,8 +2562,8 @@ func decodeGetDiscoveryAPIGroupResponse(resp *http.Response) (res GetDiscoveryAP if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -2606,8 +2606,8 @@ func decodeGetDiscoveryV1APIResourcesResponse(resp *http.Response) (res GetDisco if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -2650,8 +2650,8 @@ func decodeGetDiscoveryV1beta1APIResourcesResponse(resp *http.Response) (res Get if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -2694,8 +2694,8 @@ func decodeGetEventsAPIGroupResponse(resp *http.Response) (res GetEventsAPIGroup if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -2738,8 +2738,8 @@ func decodeGetEventsV1APIResourcesResponse(resp *http.Response) (res GetEventsV1 if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -2782,8 +2782,8 @@ func decodeGetEventsV1beta1APIResourcesResponse(resp *http.Response) (res GetEve if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -2826,8 +2826,8 @@ func decodeGetFlowcontrolApiserverAPIGroupResponse(resp *http.Response) (res Get if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -2870,8 +2870,8 @@ func decodeGetFlowcontrolApiserverV1beta1APIResourcesResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -2914,8 +2914,8 @@ func decodeGetFlowcontrolApiserverV1beta2APIResourcesResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -2958,8 +2958,8 @@ func decodeGetInternalApiserverAPIGroupResponse(resp *http.Response) (res GetInt if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -3002,8 +3002,8 @@ func decodeGetInternalApiserverV1alpha1APIResourcesResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -3046,8 +3046,8 @@ func decodeGetNetworkingAPIGroupResponse(resp *http.Response) (res GetNetworking if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -3090,8 +3090,8 @@ func decodeGetNetworkingV1APIResourcesResponse(resp *http.Response) (res GetNetw if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -3134,8 +3134,8 @@ func decodeGetNodeAPIGroupResponse(resp *http.Response) (res GetNodeAPIGroupRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -3178,8 +3178,8 @@ func decodeGetNodeV1APIResourcesResponse(resp *http.Response) (res GetNodeV1APIR if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -3222,8 +3222,8 @@ func decodeGetNodeV1alpha1APIResourcesResponse(resp *http.Response) (res GetNode if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -3266,8 +3266,8 @@ func decodeGetNodeV1beta1APIResourcesResponse(resp *http.Response) (res GetNodeV if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -3310,8 +3310,8 @@ func decodeGetPolicyAPIGroupResponse(resp *http.Response) (res GetPolicyAPIGroup if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -3354,8 +3354,8 @@ func decodeGetPolicyV1APIResourcesResponse(resp *http.Response) (res GetPolicyV1 if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -3398,8 +3398,8 @@ func decodeGetPolicyV1beta1APIResourcesResponse(resp *http.Response) (res GetPol if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -3442,8 +3442,8 @@ func decodeGetRbacAuthorizationAPIGroupResponse(resp *http.Response) (res GetRba if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -3486,8 +3486,8 @@ func decodeGetRbacAuthorizationV1APIResourcesResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -3530,8 +3530,8 @@ func decodeGetSchedulingAPIGroupResponse(resp *http.Response) (res GetScheduling if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -3574,8 +3574,8 @@ func decodeGetSchedulingV1APIResourcesResponse(resp *http.Response) (res GetSche if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -3618,8 +3618,8 @@ func decodeGetServiceAccountIssuerOpenIDConfigurationResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response GetServiceAccountIssuerOpenIDConfigurationOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -3690,8 +3690,8 @@ func decodeGetStorageAPIGroupResponse(resp *http.Response) (res GetStorageAPIGro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIGroup if err := func() error { if err := response.Decode(d); err != nil { @@ -3734,8 +3734,8 @@ func decodeGetStorageV1APIResourcesResponse(resp *http.Response) (res GetStorage if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -3778,8 +3778,8 @@ func decodeGetStorageV1alpha1APIResourcesResponse(resp *http.Response) (res GetS if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -3822,8 +3822,8 @@ func decodeGetStorageV1beta1APIResourcesResponse(resp *http.Response) (res GetSt if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1APIResourceList if err := func() error { if err := response.Decode(d); err != nil { @@ -3866,8 +3866,8 @@ func decodeListAdmissionregistrationV1MutatingWebhookConfigurationResponse(resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAdmissionregistrationV1MutatingWebhookConfigurationList if err := func() error { if err := response.Decode(d); err != nil { @@ -3910,8 +3910,8 @@ func decodeListAdmissionregistrationV1ValidatingWebhookConfigurationResponse(res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAdmissionregistrationV1ValidatingWebhookConfigurationList if err := func() error { if err := response.Decode(d); err != nil { @@ -3954,8 +3954,8 @@ func decodeListApiextensionsV1CustomResourceDefinitionResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinitionList if err := func() error { if err := response.Decode(d); err != nil { @@ -3998,8 +3998,8 @@ func decodeListApiregistrationV1APIServiceResponse(resp *http.Response) (res Lis if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sKubeAggregatorPkgApisApiregistrationV1APIServiceList if err := func() error { if err := response.Decode(d); err != nil { @@ -4042,8 +4042,8 @@ func decodeListAppsV1ControllerRevisionForAllNamespacesResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAppsV1ControllerRevisionList if err := func() error { if err := response.Decode(d); err != nil { @@ -4086,8 +4086,8 @@ func decodeListAppsV1DaemonSetForAllNamespacesResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAppsV1DaemonSetList if err := func() error { if err := response.Decode(d); err != nil { @@ -4130,8 +4130,8 @@ func decodeListAppsV1DeploymentForAllNamespacesResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAppsV1DeploymentList if err := func() error { if err := response.Decode(d); err != nil { @@ -4174,8 +4174,8 @@ func decodeListAppsV1NamespacedControllerRevisionResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAppsV1ControllerRevisionList if err := func() error { if err := response.Decode(d); err != nil { @@ -4218,8 +4218,8 @@ func decodeListAppsV1NamespacedDaemonSetResponse(resp *http.Response) (res ListA if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAppsV1DaemonSetList if err := func() error { if err := response.Decode(d); err != nil { @@ -4262,8 +4262,8 @@ func decodeListAppsV1NamespacedDeploymentResponse(resp *http.Response) (res List if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAppsV1DeploymentList if err := func() error { if err := response.Decode(d); err != nil { @@ -4306,8 +4306,8 @@ func decodeListAppsV1NamespacedReplicaSetResponse(resp *http.Response) (res List if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAppsV1ReplicaSetList if err := func() error { if err := response.Decode(d); err != nil { @@ -4350,8 +4350,8 @@ func decodeListAppsV1NamespacedStatefulSetResponse(resp *http.Response) (res Lis if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAppsV1StatefulSetList if err := func() error { if err := response.Decode(d); err != nil { @@ -4394,8 +4394,8 @@ func decodeListAppsV1ReplicaSetForAllNamespacesResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAppsV1ReplicaSetList if err := func() error { if err := response.Decode(d); err != nil { @@ -4438,8 +4438,8 @@ func decodeListAppsV1StatefulSetForAllNamespacesResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAppsV1StatefulSetList if err := func() error { if err := response.Decode(d); err != nil { @@ -4482,8 +4482,8 @@ func decodeListAutoscalingV1HorizontalPodAutoscalerForAllNamespacesResponse(resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAutoscalingV1HorizontalPodAutoscalerList if err := func() error { if err := response.Decode(d); err != nil { @@ -4526,8 +4526,8 @@ func decodeListAutoscalingV1NamespacedHorizontalPodAutoscalerResponse(resp *http if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAutoscalingV1HorizontalPodAutoscalerList if err := func() error { if err := response.Decode(d); err != nil { @@ -4570,8 +4570,8 @@ func decodeListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespacesResponse if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAutoscalingV2beta1HorizontalPodAutoscalerList if err := func() error { if err := response.Decode(d); err != nil { @@ -4614,8 +4614,8 @@ func decodeListAutoscalingV2beta1NamespacedHorizontalPodAutoscalerResponse(resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAutoscalingV2beta1HorizontalPodAutoscalerList if err := func() error { if err := response.Decode(d); err != nil { @@ -4658,8 +4658,8 @@ func decodeListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespacesResponse if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAutoscalingV2beta2HorizontalPodAutoscalerList if err := func() error { if err := response.Decode(d); err != nil { @@ -4702,8 +4702,8 @@ func decodeListAutoscalingV2beta2NamespacedHorizontalPodAutoscalerResponse(resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAutoscalingV2beta2HorizontalPodAutoscalerList if err := func() error { if err := response.Decode(d); err != nil { @@ -4746,8 +4746,8 @@ func decodeListBatchV1CronJobForAllNamespacesResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIBatchV1CronJobList if err := func() error { if err := response.Decode(d); err != nil { @@ -4790,8 +4790,8 @@ func decodeListBatchV1JobForAllNamespacesResponse(resp *http.Response) (res List if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIBatchV1JobList if err := func() error { if err := response.Decode(d); err != nil { @@ -4834,8 +4834,8 @@ func decodeListBatchV1NamespacedCronJobResponse(resp *http.Response) (res ListBa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIBatchV1CronJobList if err := func() error { if err := response.Decode(d); err != nil { @@ -4878,8 +4878,8 @@ func decodeListBatchV1NamespacedJobResponse(resp *http.Response) (res ListBatchV if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIBatchV1JobList if err := func() error { if err := response.Decode(d); err != nil { @@ -4922,8 +4922,8 @@ func decodeListBatchV1beta1CronJobForAllNamespacesResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIBatchV1beta1CronJobList if err := func() error { if err := response.Decode(d); err != nil { @@ -4966,8 +4966,8 @@ func decodeListBatchV1beta1NamespacedCronJobResponse(resp *http.Response) (res L if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIBatchV1beta1CronJobList if err := func() error { if err := response.Decode(d); err != nil { @@ -5010,8 +5010,8 @@ func decodeListCertificatesV1CertificateSigningRequestResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICertificatesV1CertificateSigningRequestList if err := func() error { if err := response.Decode(d); err != nil { @@ -5054,8 +5054,8 @@ func decodeListCoordinationV1LeaseForAllNamespacesResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoordinationV1LeaseList if err := func() error { if err := response.Decode(d); err != nil { @@ -5098,8 +5098,8 @@ func decodeListCoordinationV1NamespacedLeaseResponse(resp *http.Response) (res L if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoordinationV1LeaseList if err := func() error { if err := response.Decode(d); err != nil { @@ -5142,8 +5142,8 @@ func decodeListCoreV1ComponentStatusResponse(resp *http.Response) (res ListCoreV if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1ComponentStatusList if err := func() error { if err := response.Decode(d); err != nil { @@ -5186,8 +5186,8 @@ func decodeListCoreV1ConfigMapForAllNamespacesResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1ConfigMapList if err := func() error { if err := response.Decode(d); err != nil { @@ -5230,8 +5230,8 @@ func decodeListCoreV1EndpointsForAllNamespacesResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1EndpointsList if err := func() error { if err := response.Decode(d); err != nil { @@ -5274,8 +5274,8 @@ func decodeListCoreV1EventForAllNamespacesResponse(resp *http.Response) (res Lis if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1EventList if err := func() error { if err := response.Decode(d); err != nil { @@ -5318,8 +5318,8 @@ func decodeListCoreV1LimitRangeForAllNamespacesResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1LimitRangeList if err := func() error { if err := response.Decode(d); err != nil { @@ -5362,8 +5362,8 @@ func decodeListCoreV1NamespaceResponse(resp *http.Response) (res ListCoreV1Names if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1NamespaceList if err := func() error { if err := response.Decode(d); err != nil { @@ -5406,8 +5406,8 @@ func decodeListCoreV1NamespacedConfigMapResponse(resp *http.Response) (res ListC if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1ConfigMapList if err := func() error { if err := response.Decode(d); err != nil { @@ -5450,8 +5450,8 @@ func decodeListCoreV1NamespacedEndpointsResponse(resp *http.Response) (res ListC if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1EndpointsList if err := func() error { if err := response.Decode(d); err != nil { @@ -5494,8 +5494,8 @@ func decodeListCoreV1NamespacedEventResponse(resp *http.Response) (res ListCoreV if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1EventList if err := func() error { if err := response.Decode(d); err != nil { @@ -5538,8 +5538,8 @@ func decodeListCoreV1NamespacedLimitRangeResponse(resp *http.Response) (res List if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1LimitRangeList if err := func() error { if err := response.Decode(d); err != nil { @@ -5582,8 +5582,8 @@ func decodeListCoreV1NamespacedPersistentVolumeClaimResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1PersistentVolumeClaimList if err := func() error { if err := response.Decode(d); err != nil { @@ -5626,8 +5626,8 @@ func decodeListCoreV1NamespacedPodResponse(resp *http.Response) (res ListCoreV1N if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1PodList if err := func() error { if err := response.Decode(d); err != nil { @@ -5670,8 +5670,8 @@ func decodeListCoreV1NamespacedPodTemplateResponse(resp *http.Response) (res Lis if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1PodTemplateList if err := func() error { if err := response.Decode(d); err != nil { @@ -5714,8 +5714,8 @@ func decodeListCoreV1NamespacedReplicationControllerResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1ReplicationControllerList if err := func() error { if err := response.Decode(d); err != nil { @@ -5758,8 +5758,8 @@ func decodeListCoreV1NamespacedResourceQuotaResponse(resp *http.Response) (res L if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1ResourceQuotaList if err := func() error { if err := response.Decode(d); err != nil { @@ -5802,8 +5802,8 @@ func decodeListCoreV1NamespacedSecretResponse(resp *http.Response) (res ListCore if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1SecretList if err := func() error { if err := response.Decode(d); err != nil { @@ -5846,8 +5846,8 @@ func decodeListCoreV1NamespacedServiceResponse(resp *http.Response) (res ListCor if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1ServiceList if err := func() error { if err := response.Decode(d); err != nil { @@ -5890,8 +5890,8 @@ func decodeListCoreV1NamespacedServiceAccountResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1ServiceAccountList if err := func() error { if err := response.Decode(d); err != nil { @@ -5934,8 +5934,8 @@ func decodeListCoreV1NodeResponse(resp *http.Response) (res ListCoreV1NodeRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1NodeList if err := func() error { if err := response.Decode(d); err != nil { @@ -5978,8 +5978,8 @@ func decodeListCoreV1PersistentVolumeResponse(resp *http.Response) (res ListCore if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1PersistentVolumeList if err := func() error { if err := response.Decode(d); err != nil { @@ -6022,8 +6022,8 @@ func decodeListCoreV1PersistentVolumeClaimForAllNamespacesResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1PersistentVolumeClaimList if err := func() error { if err := response.Decode(d); err != nil { @@ -6066,8 +6066,8 @@ func decodeListCoreV1PodForAllNamespacesResponse(resp *http.Response) (res ListC if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1PodList if err := func() error { if err := response.Decode(d); err != nil { @@ -6110,8 +6110,8 @@ func decodeListCoreV1PodTemplateForAllNamespacesResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1PodTemplateList if err := func() error { if err := response.Decode(d); err != nil { @@ -6154,8 +6154,8 @@ func decodeListCoreV1ReplicationControllerForAllNamespacesResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1ReplicationControllerList if err := func() error { if err := response.Decode(d); err != nil { @@ -6198,8 +6198,8 @@ func decodeListCoreV1ResourceQuotaForAllNamespacesResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1ResourceQuotaList if err := func() error { if err := response.Decode(d); err != nil { @@ -6242,8 +6242,8 @@ func decodeListCoreV1SecretForAllNamespacesResponse(resp *http.Response) (res Li if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1SecretList if err := func() error { if err := response.Decode(d); err != nil { @@ -6286,8 +6286,8 @@ func decodeListCoreV1ServiceAccountForAllNamespacesResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1ServiceAccountList if err := func() error { if err := response.Decode(d); err != nil { @@ -6330,8 +6330,8 @@ func decodeListCoreV1ServiceForAllNamespacesResponse(resp *http.Response) (res L if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1ServiceList if err := func() error { if err := response.Decode(d); err != nil { @@ -6374,8 +6374,8 @@ func decodeListDiscoveryV1EndpointSliceForAllNamespacesResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIDiscoveryV1EndpointSliceList if err := func() error { if err := response.Decode(d); err != nil { @@ -6418,8 +6418,8 @@ func decodeListDiscoveryV1NamespacedEndpointSliceResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIDiscoveryV1EndpointSliceList if err := func() error { if err := response.Decode(d); err != nil { @@ -6462,8 +6462,8 @@ func decodeListDiscoveryV1beta1EndpointSliceForAllNamespacesResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIDiscoveryV1beta1EndpointSliceList if err := func() error { if err := response.Decode(d); err != nil { @@ -6506,8 +6506,8 @@ func decodeListDiscoveryV1beta1NamespacedEndpointSliceResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIDiscoveryV1beta1EndpointSliceList if err := func() error { if err := response.Decode(d); err != nil { @@ -6550,8 +6550,8 @@ func decodeListEventsV1EventForAllNamespacesResponse(resp *http.Response) (res L if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIEventsV1EventList if err := func() error { if err := response.Decode(d); err != nil { @@ -6594,8 +6594,8 @@ func decodeListEventsV1NamespacedEventResponse(resp *http.Response) (res ListEve if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIEventsV1EventList if err := func() error { if err := response.Decode(d); err != nil { @@ -6638,8 +6638,8 @@ func decodeListEventsV1beta1EventForAllNamespacesResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIEventsV1beta1EventList if err := func() error { if err := response.Decode(d); err != nil { @@ -6682,8 +6682,8 @@ func decodeListEventsV1beta1NamespacedEventResponse(resp *http.Response) (res Li if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIEventsV1beta1EventList if err := func() error { if err := response.Decode(d); err != nil { @@ -6726,8 +6726,8 @@ func decodeListFlowcontrolApiserverV1beta1FlowSchemaResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIFlowcontrolV1beta1FlowSchemaList if err := func() error { if err := response.Decode(d); err != nil { @@ -6770,8 +6770,8 @@ func decodeListFlowcontrolApiserverV1beta1PriorityLevelConfigurationResponse(res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIFlowcontrolV1beta1PriorityLevelConfigurationList if err := func() error { if err := response.Decode(d); err != nil { @@ -6814,8 +6814,8 @@ func decodeListFlowcontrolApiserverV1beta2FlowSchemaResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIFlowcontrolV1beta2FlowSchemaList if err := func() error { if err := response.Decode(d); err != nil { @@ -6858,8 +6858,8 @@ func decodeListFlowcontrolApiserverV1beta2PriorityLevelConfigurationResponse(res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIFlowcontrolV1beta2PriorityLevelConfigurationList if err := func() error { if err := response.Decode(d); err != nil { @@ -6902,8 +6902,8 @@ func decodeListInternalApiserverV1alpha1StorageVersionResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIApiserverinternalV1alpha1StorageVersionList if err := func() error { if err := response.Decode(d); err != nil { @@ -6946,8 +6946,8 @@ func decodeListNetworkingV1IngressClassResponse(resp *http.Response) (res ListNe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPINetworkingV1IngressClassList if err := func() error { if err := response.Decode(d); err != nil { @@ -6990,8 +6990,8 @@ func decodeListNetworkingV1IngressForAllNamespacesResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPINetworkingV1IngressList if err := func() error { if err := response.Decode(d); err != nil { @@ -7034,8 +7034,8 @@ func decodeListNetworkingV1NamespacedIngressResponse(resp *http.Response) (res L if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPINetworkingV1IngressList if err := func() error { if err := response.Decode(d); err != nil { @@ -7078,8 +7078,8 @@ func decodeListNetworkingV1NamespacedNetworkPolicyResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPINetworkingV1NetworkPolicyList if err := func() error { if err := response.Decode(d); err != nil { @@ -7122,8 +7122,8 @@ func decodeListNetworkingV1NetworkPolicyForAllNamespacesResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPINetworkingV1NetworkPolicyList if err := func() error { if err := response.Decode(d); err != nil { @@ -7166,8 +7166,8 @@ func decodeListNodeV1RuntimeClassResponse(resp *http.Response) (res ListNodeV1Ru if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPINodeV1RuntimeClassList if err := func() error { if err := response.Decode(d); err != nil { @@ -7210,8 +7210,8 @@ func decodeListNodeV1alpha1RuntimeClassResponse(resp *http.Response) (res ListNo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPINodeV1alpha1RuntimeClassList if err := func() error { if err := response.Decode(d); err != nil { @@ -7254,8 +7254,8 @@ func decodeListNodeV1beta1RuntimeClassResponse(resp *http.Response) (res ListNod if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPINodeV1beta1RuntimeClassList if err := func() error { if err := response.Decode(d); err != nil { @@ -7298,8 +7298,8 @@ func decodeListPolicyV1NamespacedPodDisruptionBudgetResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIPolicyV1PodDisruptionBudgetList if err := func() error { if err := response.Decode(d); err != nil { @@ -7342,8 +7342,8 @@ func decodeListPolicyV1PodDisruptionBudgetForAllNamespacesResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIPolicyV1PodDisruptionBudgetList if err := func() error { if err := response.Decode(d); err != nil { @@ -7386,8 +7386,8 @@ func decodeListPolicyV1beta1NamespacedPodDisruptionBudgetResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIPolicyV1beta1PodDisruptionBudgetList if err := func() error { if err := response.Decode(d); err != nil { @@ -7430,8 +7430,8 @@ func decodeListPolicyV1beta1PodDisruptionBudgetForAllNamespacesResponse(resp *ht if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIPolicyV1beta1PodDisruptionBudgetList if err := func() error { if err := response.Decode(d); err != nil { @@ -7474,8 +7474,8 @@ func decodeListPolicyV1beta1PodSecurityPolicyResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIPolicyV1beta1PodSecurityPolicyList if err := func() error { if err := response.Decode(d); err != nil { @@ -7518,8 +7518,8 @@ func decodeListRbacAuthorizationV1ClusterRoleResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIRbacV1ClusterRoleList if err := func() error { if err := response.Decode(d); err != nil { @@ -7562,8 +7562,8 @@ func decodeListRbacAuthorizationV1ClusterRoleBindingResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIRbacV1ClusterRoleBindingList if err := func() error { if err := response.Decode(d); err != nil { @@ -7606,8 +7606,8 @@ func decodeListRbacAuthorizationV1NamespacedRoleResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIRbacV1RoleList if err := func() error { if err := response.Decode(d); err != nil { @@ -7650,8 +7650,8 @@ func decodeListRbacAuthorizationV1NamespacedRoleBindingResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIRbacV1RoleBindingList if err := func() error { if err := response.Decode(d); err != nil { @@ -7694,8 +7694,8 @@ func decodeListRbacAuthorizationV1RoleBindingForAllNamespacesResponse(resp *http if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIRbacV1RoleBindingList if err := func() error { if err := response.Decode(d); err != nil { @@ -7738,8 +7738,8 @@ func decodeListRbacAuthorizationV1RoleForAllNamespacesResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIRbacV1RoleList if err := func() error { if err := response.Decode(d); err != nil { @@ -7782,8 +7782,8 @@ func decodeListSchedulingV1PriorityClassResponse(resp *http.Response) (res ListS if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPISchedulingV1PriorityClassList if err := func() error { if err := response.Decode(d); err != nil { @@ -7826,8 +7826,8 @@ func decodeListStorageV1CSIDriverResponse(resp *http.Response) (res ListStorageV if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIStorageV1CSIDriverList if err := func() error { if err := response.Decode(d); err != nil { @@ -7870,8 +7870,8 @@ func decodeListStorageV1CSINodeResponse(resp *http.Response) (res ListStorageV1C if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIStorageV1CSINodeList if err := func() error { if err := response.Decode(d); err != nil { @@ -7914,8 +7914,8 @@ func decodeListStorageV1StorageClassResponse(resp *http.Response) (res ListStora if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIStorageV1StorageClassList if err := func() error { if err := response.Decode(d); err != nil { @@ -7958,8 +7958,8 @@ func decodeListStorageV1VolumeAttachmentResponse(resp *http.Response) (res ListS if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIStorageV1VolumeAttachmentList if err := func() error { if err := response.Decode(d); err != nil { @@ -8002,8 +8002,8 @@ func decodeListStorageV1alpha1CSIStorageCapacityForAllNamespacesResponse(resp *h if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIStorageV1alpha1CSIStorageCapacityList if err := func() error { if err := response.Decode(d); err != nil { @@ -8046,8 +8046,8 @@ func decodeListStorageV1alpha1NamespacedCSIStorageCapacityResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIStorageV1alpha1CSIStorageCapacityList if err := func() error { if err := response.Decode(d); err != nil { @@ -8090,8 +8090,8 @@ func decodeListStorageV1beta1CSIStorageCapacityForAllNamespacesResponse(resp *ht if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIStorageV1beta1CSIStorageCapacityList if err := func() error { if err := response.Decode(d); err != nil { @@ -8134,8 +8134,8 @@ func decodeListStorageV1beta1NamespacedCSIStorageCapacityResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIStorageV1beta1CSIStorageCapacityList if err := func() error { if err := response.Decode(d); err != nil { @@ -8196,8 +8196,8 @@ func decodeReadAdmissionregistrationV1MutatingWebhookConfigurationResponse(resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAdmissionregistrationV1MutatingWebhookConfiguration if err := func() error { if err := response.Decode(d); err != nil { @@ -8240,8 +8240,8 @@ func decodeReadAdmissionregistrationV1ValidatingWebhookConfigurationResponse(res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAdmissionregistrationV1ValidatingWebhookConfiguration if err := func() error { if err := response.Decode(d); err != nil { @@ -8284,8 +8284,8 @@ func decodeReadApiextensionsV1CustomResourceDefinitionResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition if err := func() error { if err := response.Decode(d); err != nil { @@ -8328,8 +8328,8 @@ func decodeReadApiextensionsV1CustomResourceDefinitionStatusResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApiextensionsApiserverPkgApisApiextensionsV1CustomResourceDefinition if err := func() error { if err := response.Decode(d); err != nil { @@ -8372,8 +8372,8 @@ func decodeReadApiregistrationV1APIServiceResponse(resp *http.Response) (res Rea if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sKubeAggregatorPkgApisApiregistrationV1APIService if err := func() error { if err := response.Decode(d); err != nil { @@ -8416,8 +8416,8 @@ func decodeReadApiregistrationV1APIServiceStatusResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sKubeAggregatorPkgApisApiregistrationV1APIService if err := func() error { if err := response.Decode(d); err != nil { @@ -8460,8 +8460,8 @@ func decodeReadAppsV1NamespacedControllerRevisionResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAppsV1ControllerRevision if err := func() error { if err := response.Decode(d); err != nil { @@ -8504,8 +8504,8 @@ func decodeReadAppsV1NamespacedDaemonSetResponse(resp *http.Response) (res ReadA if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAppsV1DaemonSet if err := func() error { if err := response.Decode(d); err != nil { @@ -8548,8 +8548,8 @@ func decodeReadAppsV1NamespacedDaemonSetStatusResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAppsV1DaemonSet if err := func() error { if err := response.Decode(d); err != nil { @@ -8592,8 +8592,8 @@ func decodeReadAppsV1NamespacedDeploymentResponse(resp *http.Response) (res Read if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAppsV1Deployment if err := func() error { if err := response.Decode(d); err != nil { @@ -8636,8 +8636,8 @@ func decodeReadAppsV1NamespacedDeploymentScaleResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAutoscalingV1Scale if err := func() error { if err := response.Decode(d); err != nil { @@ -8680,8 +8680,8 @@ func decodeReadAppsV1NamespacedDeploymentStatusResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAppsV1Deployment if err := func() error { if err := response.Decode(d); err != nil { @@ -8724,8 +8724,8 @@ func decodeReadAppsV1NamespacedReplicaSetResponse(resp *http.Response) (res Read if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAppsV1ReplicaSet if err := func() error { if err := response.Decode(d); err != nil { @@ -8768,8 +8768,8 @@ func decodeReadAppsV1NamespacedReplicaSetScaleResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAutoscalingV1Scale if err := func() error { if err := response.Decode(d); err != nil { @@ -8812,8 +8812,8 @@ func decodeReadAppsV1NamespacedReplicaSetStatusResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAppsV1ReplicaSet if err := func() error { if err := response.Decode(d); err != nil { @@ -8856,8 +8856,8 @@ func decodeReadAppsV1NamespacedStatefulSetResponse(resp *http.Response) (res Rea if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAppsV1StatefulSet if err := func() error { if err := response.Decode(d); err != nil { @@ -8900,8 +8900,8 @@ func decodeReadAppsV1NamespacedStatefulSetScaleResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAutoscalingV1Scale if err := func() error { if err := response.Decode(d); err != nil { @@ -8944,8 +8944,8 @@ func decodeReadAppsV1NamespacedStatefulSetStatusResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAppsV1StatefulSet if err := func() error { if err := response.Decode(d); err != nil { @@ -8988,8 +8988,8 @@ func decodeReadAutoscalingV1NamespacedHorizontalPodAutoscalerResponse(resp *http if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAutoscalingV1HorizontalPodAutoscaler if err := func() error { if err := response.Decode(d); err != nil { @@ -9032,8 +9032,8 @@ func decodeReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatusResponse(resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAutoscalingV1HorizontalPodAutoscaler if err := func() error { if err := response.Decode(d); err != nil { @@ -9076,8 +9076,8 @@ func decodeReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerResponse(resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAutoscalingV2beta1HorizontalPodAutoscaler if err := func() error { if err := response.Decode(d); err != nil { @@ -9120,8 +9120,8 @@ func decodeReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatusResponse if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAutoscalingV2beta1HorizontalPodAutoscaler if err := func() error { if err := response.Decode(d); err != nil { @@ -9164,8 +9164,8 @@ func decodeReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerResponse(resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAutoscalingV2beta2HorizontalPodAutoscaler if err := func() error { if err := response.Decode(d); err != nil { @@ -9208,8 +9208,8 @@ func decodeReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatusResponse if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAutoscalingV2beta2HorizontalPodAutoscaler if err := func() error { if err := response.Decode(d); err != nil { @@ -9252,8 +9252,8 @@ func decodeReadBatchV1NamespacedCronJobResponse(resp *http.Response) (res ReadBa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIBatchV1CronJob if err := func() error { if err := response.Decode(d); err != nil { @@ -9296,8 +9296,8 @@ func decodeReadBatchV1NamespacedCronJobStatusResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIBatchV1CronJob if err := func() error { if err := response.Decode(d); err != nil { @@ -9340,8 +9340,8 @@ func decodeReadBatchV1NamespacedJobResponse(resp *http.Response) (res ReadBatchV if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIBatchV1Job if err := func() error { if err := response.Decode(d); err != nil { @@ -9384,8 +9384,8 @@ func decodeReadBatchV1NamespacedJobStatusResponse(resp *http.Response) (res Read if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIBatchV1Job if err := func() error { if err := response.Decode(d); err != nil { @@ -9428,8 +9428,8 @@ func decodeReadBatchV1beta1NamespacedCronJobResponse(resp *http.Response) (res R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIBatchV1beta1CronJob if err := func() error { if err := response.Decode(d); err != nil { @@ -9472,8 +9472,8 @@ func decodeReadBatchV1beta1NamespacedCronJobStatusResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIBatchV1beta1CronJob if err := func() error { if err := response.Decode(d); err != nil { @@ -9516,8 +9516,8 @@ func decodeReadCertificatesV1CertificateSigningRequestResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICertificatesV1CertificateSigningRequest if err := func() error { if err := response.Decode(d); err != nil { @@ -9560,8 +9560,8 @@ func decodeReadCertificatesV1CertificateSigningRequestApprovalResponse(resp *htt if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICertificatesV1CertificateSigningRequest if err := func() error { if err := response.Decode(d); err != nil { @@ -9604,8 +9604,8 @@ func decodeReadCertificatesV1CertificateSigningRequestStatusResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICertificatesV1CertificateSigningRequest if err := func() error { if err := response.Decode(d); err != nil { @@ -9648,8 +9648,8 @@ func decodeReadCoordinationV1NamespacedLeaseResponse(resp *http.Response) (res R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoordinationV1Lease if err := func() error { if err := response.Decode(d); err != nil { @@ -9692,8 +9692,8 @@ func decodeReadCoreV1ComponentStatusResponse(resp *http.Response) (res ReadCoreV if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1ComponentStatus if err := func() error { if err := response.Decode(d); err != nil { @@ -9736,8 +9736,8 @@ func decodeReadCoreV1NamespaceResponse(resp *http.Response) (res ReadCoreV1Names if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1Namespace if err := func() error { if err := response.Decode(d); err != nil { @@ -9780,8 +9780,8 @@ func decodeReadCoreV1NamespaceStatusResponse(resp *http.Response) (res ReadCoreV if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1Namespace if err := func() error { if err := response.Decode(d); err != nil { @@ -9824,8 +9824,8 @@ func decodeReadCoreV1NamespacedConfigMapResponse(resp *http.Response) (res ReadC if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1ConfigMap if err := func() error { if err := response.Decode(d); err != nil { @@ -9868,8 +9868,8 @@ func decodeReadCoreV1NamespacedEndpointsResponse(resp *http.Response) (res ReadC if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1Endpoints if err := func() error { if err := response.Decode(d); err != nil { @@ -9912,8 +9912,8 @@ func decodeReadCoreV1NamespacedEventResponse(resp *http.Response) (res ReadCoreV if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1Event if err := func() error { if err := response.Decode(d); err != nil { @@ -9956,8 +9956,8 @@ func decodeReadCoreV1NamespacedLimitRangeResponse(resp *http.Response) (res Read if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1LimitRange if err := func() error { if err := response.Decode(d); err != nil { @@ -10000,8 +10000,8 @@ func decodeReadCoreV1NamespacedPersistentVolumeClaimResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1PersistentVolumeClaim if err := func() error { if err := response.Decode(d); err != nil { @@ -10044,8 +10044,8 @@ func decodeReadCoreV1NamespacedPersistentVolumeClaimStatusResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1PersistentVolumeClaim if err := func() error { if err := response.Decode(d); err != nil { @@ -10088,8 +10088,8 @@ func decodeReadCoreV1NamespacedPodResponse(resp *http.Response) (res ReadCoreV1N if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1Pod if err := func() error { if err := response.Decode(d); err != nil { @@ -10132,8 +10132,8 @@ func decodeReadCoreV1NamespacedPodEphemeralcontainersResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1Pod if err := func() error { if err := response.Decode(d); err != nil { @@ -10176,8 +10176,8 @@ func decodeReadCoreV1NamespacedPodLogResponse(resp *http.Response) (res ReadCore if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ReadCoreV1NamespacedPodLogOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -10247,8 +10247,8 @@ func decodeReadCoreV1NamespacedPodStatusResponse(resp *http.Response) (res ReadC if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1Pod if err := func() error { if err := response.Decode(d); err != nil { @@ -10291,8 +10291,8 @@ func decodeReadCoreV1NamespacedPodTemplateResponse(resp *http.Response) (res Rea if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1PodTemplate if err := func() error { if err := response.Decode(d); err != nil { @@ -10335,8 +10335,8 @@ func decodeReadCoreV1NamespacedReplicationControllerResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1ReplicationController if err := func() error { if err := response.Decode(d); err != nil { @@ -10379,8 +10379,8 @@ func decodeReadCoreV1NamespacedReplicationControllerScaleResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIAutoscalingV1Scale if err := func() error { if err := response.Decode(d); err != nil { @@ -10423,8 +10423,8 @@ func decodeReadCoreV1NamespacedReplicationControllerStatusResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1ReplicationController if err := func() error { if err := response.Decode(d); err != nil { @@ -10467,8 +10467,8 @@ func decodeReadCoreV1NamespacedResourceQuotaResponse(resp *http.Response) (res R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1ResourceQuota if err := func() error { if err := response.Decode(d); err != nil { @@ -10511,8 +10511,8 @@ func decodeReadCoreV1NamespacedResourceQuotaStatusResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1ResourceQuota if err := func() error { if err := response.Decode(d); err != nil { @@ -10555,8 +10555,8 @@ func decodeReadCoreV1NamespacedSecretResponse(resp *http.Response) (res ReadCore if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1Secret if err := func() error { if err := response.Decode(d); err != nil { @@ -10599,8 +10599,8 @@ func decodeReadCoreV1NamespacedServiceResponse(resp *http.Response) (res ReadCor if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1Service if err := func() error { if err := response.Decode(d); err != nil { @@ -10643,8 +10643,8 @@ func decodeReadCoreV1NamespacedServiceAccountResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1ServiceAccount if err := func() error { if err := response.Decode(d); err != nil { @@ -10687,8 +10687,8 @@ func decodeReadCoreV1NamespacedServiceStatusResponse(resp *http.Response) (res R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1Service if err := func() error { if err := response.Decode(d); err != nil { @@ -10731,8 +10731,8 @@ func decodeReadCoreV1NodeResponse(resp *http.Response) (res ReadCoreV1NodeRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1Node if err := func() error { if err := response.Decode(d); err != nil { @@ -10775,8 +10775,8 @@ func decodeReadCoreV1NodeStatusResponse(resp *http.Response) (res ReadCoreV1Node if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1Node if err := func() error { if err := response.Decode(d); err != nil { @@ -10819,8 +10819,8 @@ func decodeReadCoreV1PersistentVolumeResponse(resp *http.Response) (res ReadCore if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1PersistentVolume if err := func() error { if err := response.Decode(d); err != nil { @@ -10863,8 +10863,8 @@ func decodeReadCoreV1PersistentVolumeStatusResponse(resp *http.Response) (res Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPICoreV1PersistentVolume if err := func() error { if err := response.Decode(d); err != nil { @@ -10907,8 +10907,8 @@ func decodeReadDiscoveryV1NamespacedEndpointSliceResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIDiscoveryV1EndpointSlice if err := func() error { if err := response.Decode(d); err != nil { @@ -10951,8 +10951,8 @@ func decodeReadDiscoveryV1beta1NamespacedEndpointSliceResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIDiscoveryV1beta1EndpointSlice if err := func() error { if err := response.Decode(d); err != nil { @@ -10995,8 +10995,8 @@ func decodeReadEventsV1NamespacedEventResponse(resp *http.Response) (res ReadEve if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIEventsV1Event if err := func() error { if err := response.Decode(d); err != nil { @@ -11039,8 +11039,8 @@ func decodeReadEventsV1beta1NamespacedEventResponse(resp *http.Response) (res Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIEventsV1beta1Event if err := func() error { if err := response.Decode(d); err != nil { @@ -11083,8 +11083,8 @@ func decodeReadFlowcontrolApiserverV1beta1FlowSchemaResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIFlowcontrolV1beta1FlowSchema if err := func() error { if err := response.Decode(d); err != nil { @@ -11127,8 +11127,8 @@ func decodeReadFlowcontrolApiserverV1beta1FlowSchemaStatusResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIFlowcontrolV1beta1FlowSchema if err := func() error { if err := response.Decode(d); err != nil { @@ -11171,8 +11171,8 @@ func decodeReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationResponse(res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIFlowcontrolV1beta1PriorityLevelConfiguration if err := func() error { if err := response.Decode(d); err != nil { @@ -11215,8 +11215,8 @@ func decodeReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatusRespon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIFlowcontrolV1beta1PriorityLevelConfiguration if err := func() error { if err := response.Decode(d); err != nil { @@ -11259,8 +11259,8 @@ func decodeReadFlowcontrolApiserverV1beta2FlowSchemaResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIFlowcontrolV1beta2FlowSchema if err := func() error { if err := response.Decode(d); err != nil { @@ -11303,8 +11303,8 @@ func decodeReadFlowcontrolApiserverV1beta2FlowSchemaStatusResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIFlowcontrolV1beta2FlowSchema if err := func() error { if err := response.Decode(d); err != nil { @@ -11347,8 +11347,8 @@ func decodeReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationResponse(res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIFlowcontrolV1beta2PriorityLevelConfiguration if err := func() error { if err := response.Decode(d); err != nil { @@ -11391,8 +11391,8 @@ func decodeReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatusRespon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIFlowcontrolV1beta2PriorityLevelConfiguration if err := func() error { if err := response.Decode(d); err != nil { @@ -11435,8 +11435,8 @@ func decodeReadInternalApiserverV1alpha1StorageVersionResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIApiserverinternalV1alpha1StorageVersion if err := func() error { if err := response.Decode(d); err != nil { @@ -11479,8 +11479,8 @@ func decodeReadInternalApiserverV1alpha1StorageVersionStatusResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIApiserverinternalV1alpha1StorageVersion if err := func() error { if err := response.Decode(d); err != nil { @@ -11523,8 +11523,8 @@ func decodeReadNetworkingV1IngressClassResponse(resp *http.Response) (res ReadNe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPINetworkingV1IngressClass if err := func() error { if err := response.Decode(d); err != nil { @@ -11567,8 +11567,8 @@ func decodeReadNetworkingV1NamespacedIngressResponse(resp *http.Response) (res R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPINetworkingV1Ingress if err := func() error { if err := response.Decode(d); err != nil { @@ -11611,8 +11611,8 @@ func decodeReadNetworkingV1NamespacedIngressStatusResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPINetworkingV1Ingress if err := func() error { if err := response.Decode(d); err != nil { @@ -11655,8 +11655,8 @@ func decodeReadNetworkingV1NamespacedNetworkPolicyResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPINetworkingV1NetworkPolicy if err := func() error { if err := response.Decode(d); err != nil { @@ -11699,8 +11699,8 @@ func decodeReadNodeV1RuntimeClassResponse(resp *http.Response) (res ReadNodeV1Ru if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPINodeV1RuntimeClass if err := func() error { if err := response.Decode(d); err != nil { @@ -11743,8 +11743,8 @@ func decodeReadNodeV1alpha1RuntimeClassResponse(resp *http.Response) (res ReadNo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPINodeV1alpha1RuntimeClass if err := func() error { if err := response.Decode(d); err != nil { @@ -11787,8 +11787,8 @@ func decodeReadNodeV1beta1RuntimeClassResponse(resp *http.Response) (res ReadNod if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPINodeV1beta1RuntimeClass if err := func() error { if err := response.Decode(d); err != nil { @@ -11831,8 +11831,8 @@ func decodeReadPolicyV1NamespacedPodDisruptionBudgetResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIPolicyV1PodDisruptionBudget if err := func() error { if err := response.Decode(d); err != nil { @@ -11875,8 +11875,8 @@ func decodeReadPolicyV1NamespacedPodDisruptionBudgetStatusResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIPolicyV1PodDisruptionBudget if err := func() error { if err := response.Decode(d); err != nil { @@ -11919,8 +11919,8 @@ func decodeReadPolicyV1beta1NamespacedPodDisruptionBudgetResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIPolicyV1beta1PodDisruptionBudget if err := func() error { if err := response.Decode(d); err != nil { @@ -11963,8 +11963,8 @@ func decodeReadPolicyV1beta1NamespacedPodDisruptionBudgetStatusResponse(resp *ht if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIPolicyV1beta1PodDisruptionBudget if err := func() error { if err := response.Decode(d); err != nil { @@ -12007,8 +12007,8 @@ func decodeReadPolicyV1beta1PodSecurityPolicyResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIPolicyV1beta1PodSecurityPolicy if err := func() error { if err := response.Decode(d); err != nil { @@ -12051,8 +12051,8 @@ func decodeReadRbacAuthorizationV1ClusterRoleResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIRbacV1ClusterRole if err := func() error { if err := response.Decode(d); err != nil { @@ -12095,8 +12095,8 @@ func decodeReadRbacAuthorizationV1ClusterRoleBindingResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIRbacV1ClusterRoleBinding if err := func() error { if err := response.Decode(d); err != nil { @@ -12139,8 +12139,8 @@ func decodeReadRbacAuthorizationV1NamespacedRoleResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIRbacV1Role if err := func() error { if err := response.Decode(d); err != nil { @@ -12183,8 +12183,8 @@ func decodeReadRbacAuthorizationV1NamespacedRoleBindingResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIRbacV1RoleBinding if err := func() error { if err := response.Decode(d); err != nil { @@ -12227,8 +12227,8 @@ func decodeReadSchedulingV1PriorityClassResponse(resp *http.Response) (res ReadS if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPISchedulingV1PriorityClass if err := func() error { if err := response.Decode(d); err != nil { @@ -12271,8 +12271,8 @@ func decodeReadStorageV1CSIDriverResponse(resp *http.Response) (res ReadStorageV if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIStorageV1CSIDriver if err := func() error { if err := response.Decode(d); err != nil { @@ -12315,8 +12315,8 @@ func decodeReadStorageV1CSINodeResponse(resp *http.Response) (res ReadStorageV1C if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIStorageV1CSINode if err := func() error { if err := response.Decode(d); err != nil { @@ -12359,8 +12359,8 @@ func decodeReadStorageV1StorageClassResponse(resp *http.Response) (res ReadStora if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIStorageV1StorageClass if err := func() error { if err := response.Decode(d); err != nil { @@ -12403,8 +12403,8 @@ func decodeReadStorageV1VolumeAttachmentResponse(resp *http.Response) (res ReadS if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIStorageV1VolumeAttachment if err := func() error { if err := response.Decode(d); err != nil { @@ -12447,8 +12447,8 @@ func decodeReadStorageV1VolumeAttachmentStatusResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIStorageV1VolumeAttachment if err := func() error { if err := response.Decode(d); err != nil { @@ -12491,8 +12491,8 @@ func decodeReadStorageV1alpha1NamespacedCSIStorageCapacityResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIStorageV1alpha1CSIStorageCapacity if err := func() error { if err := response.Decode(d); err != nil { @@ -12535,8 +12535,8 @@ func decodeReadStorageV1beta1NamespacedCSIStorageCapacityResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sAPIStorageV1beta1CSIStorageCapacity if err := func() error { if err := response.Decode(d); err != nil { @@ -12579,8 +12579,8 @@ func decodeWatchAdmissionregistrationV1MutatingWebhookConfigurationResponse(resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -12623,8 +12623,8 @@ func decodeWatchAdmissionregistrationV1MutatingWebhookConfigurationListResponse( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -12667,8 +12667,8 @@ func decodeWatchAdmissionregistrationV1ValidatingWebhookConfigurationResponse(re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -12711,8 +12711,8 @@ func decodeWatchAdmissionregistrationV1ValidatingWebhookConfigurationListRespons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -12755,8 +12755,8 @@ func decodeWatchApiextensionsV1CustomResourceDefinitionResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -12799,8 +12799,8 @@ func decodeWatchApiextensionsV1CustomResourceDefinitionListResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -12843,8 +12843,8 @@ func decodeWatchApiregistrationV1APIServiceResponse(resp *http.Response) (res Wa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -12887,8 +12887,8 @@ func decodeWatchApiregistrationV1APIServiceListResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -12931,8 +12931,8 @@ func decodeWatchAppsV1ControllerRevisionListForAllNamespacesResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -12975,8 +12975,8 @@ func decodeWatchAppsV1DaemonSetListForAllNamespacesResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13019,8 +13019,8 @@ func decodeWatchAppsV1DeploymentListForAllNamespacesResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13063,8 +13063,8 @@ func decodeWatchAppsV1NamespacedControllerRevisionResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13107,8 +13107,8 @@ func decodeWatchAppsV1NamespacedControllerRevisionListResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13151,8 +13151,8 @@ func decodeWatchAppsV1NamespacedDaemonSetResponse(resp *http.Response) (res Watc if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13195,8 +13195,8 @@ func decodeWatchAppsV1NamespacedDaemonSetListResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13239,8 +13239,8 @@ func decodeWatchAppsV1NamespacedDeploymentResponse(resp *http.Response) (res Wat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13283,8 +13283,8 @@ func decodeWatchAppsV1NamespacedDeploymentListResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13327,8 +13327,8 @@ func decodeWatchAppsV1NamespacedReplicaSetResponse(resp *http.Response) (res Wat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13371,8 +13371,8 @@ func decodeWatchAppsV1NamespacedReplicaSetListResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13415,8 +13415,8 @@ func decodeWatchAppsV1NamespacedStatefulSetResponse(resp *http.Response) (res Wa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13459,8 +13459,8 @@ func decodeWatchAppsV1NamespacedStatefulSetListResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13503,8 +13503,8 @@ func decodeWatchAppsV1ReplicaSetListForAllNamespacesResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13547,8 +13547,8 @@ func decodeWatchAppsV1StatefulSetListForAllNamespacesResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13591,8 +13591,8 @@ func decodeWatchAutoscalingV1HorizontalPodAutoscalerListForAllNamespacesResponse if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13635,8 +13635,8 @@ func decodeWatchAutoscalingV1NamespacedHorizontalPodAutoscalerResponse(resp *htt if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13679,8 +13679,8 @@ func decodeWatchAutoscalingV1NamespacedHorizontalPodAutoscalerListResponse(resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13723,8 +13723,8 @@ func decodeWatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNamespacesRes if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13767,8 +13767,8 @@ func decodeWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerResponse(resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13811,8 +13811,8 @@ func decodeWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerListResponse( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13855,8 +13855,8 @@ func decodeWatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNamespacesRes if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13899,8 +13899,8 @@ func decodeWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerResponse(resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13943,8 +13943,8 @@ func decodeWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerListResponse( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -13987,8 +13987,8 @@ func decodeWatchBatchV1CronJobListForAllNamespacesResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14031,8 +14031,8 @@ func decodeWatchBatchV1JobListForAllNamespacesResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14075,8 +14075,8 @@ func decodeWatchBatchV1NamespacedCronJobResponse(resp *http.Response) (res Watch if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14119,8 +14119,8 @@ func decodeWatchBatchV1NamespacedCronJobListResponse(resp *http.Response) (res W if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14163,8 +14163,8 @@ func decodeWatchBatchV1NamespacedJobResponse(resp *http.Response) (res WatchBatc if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14207,8 +14207,8 @@ func decodeWatchBatchV1NamespacedJobListResponse(resp *http.Response) (res Watch if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14251,8 +14251,8 @@ func decodeWatchBatchV1beta1CronJobListForAllNamespacesResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14295,8 +14295,8 @@ func decodeWatchBatchV1beta1NamespacedCronJobResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14339,8 +14339,8 @@ func decodeWatchBatchV1beta1NamespacedCronJobListResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14383,8 +14383,8 @@ func decodeWatchCertificatesV1CertificateSigningRequestResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14427,8 +14427,8 @@ func decodeWatchCertificatesV1CertificateSigningRequestListResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14471,8 +14471,8 @@ func decodeWatchCoordinationV1LeaseListForAllNamespacesResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14515,8 +14515,8 @@ func decodeWatchCoordinationV1NamespacedLeaseResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14559,8 +14559,8 @@ func decodeWatchCoordinationV1NamespacedLeaseListResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14603,8 +14603,8 @@ func decodeWatchCoreV1ConfigMapListForAllNamespacesResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14647,8 +14647,8 @@ func decodeWatchCoreV1EndpointsListForAllNamespacesResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14691,8 +14691,8 @@ func decodeWatchCoreV1EventListForAllNamespacesResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14735,8 +14735,8 @@ func decodeWatchCoreV1LimitRangeListForAllNamespacesResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14779,8 +14779,8 @@ func decodeWatchCoreV1NamespaceResponse(resp *http.Response) (res WatchCoreV1Nam if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14823,8 +14823,8 @@ func decodeWatchCoreV1NamespaceListResponse(resp *http.Response) (res WatchCoreV if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14867,8 +14867,8 @@ func decodeWatchCoreV1NamespacedConfigMapResponse(resp *http.Response) (res Watc if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14911,8 +14911,8 @@ func decodeWatchCoreV1NamespacedConfigMapListResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14955,8 +14955,8 @@ func decodeWatchCoreV1NamespacedEndpointsResponse(resp *http.Response) (res Watc if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -14999,8 +14999,8 @@ func decodeWatchCoreV1NamespacedEndpointsListResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15043,8 +15043,8 @@ func decodeWatchCoreV1NamespacedEventResponse(resp *http.Response) (res WatchCor if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15087,8 +15087,8 @@ func decodeWatchCoreV1NamespacedEventListResponse(resp *http.Response) (res Watc if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15131,8 +15131,8 @@ func decodeWatchCoreV1NamespacedLimitRangeResponse(resp *http.Response) (res Wat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15175,8 +15175,8 @@ func decodeWatchCoreV1NamespacedLimitRangeListResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15219,8 +15219,8 @@ func decodeWatchCoreV1NamespacedPersistentVolumeClaimResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15263,8 +15263,8 @@ func decodeWatchCoreV1NamespacedPersistentVolumeClaimListResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15307,8 +15307,8 @@ func decodeWatchCoreV1NamespacedPodResponse(resp *http.Response) (res WatchCoreV if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15351,8 +15351,8 @@ func decodeWatchCoreV1NamespacedPodListResponse(resp *http.Response) (res WatchC if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15395,8 +15395,8 @@ func decodeWatchCoreV1NamespacedPodTemplateResponse(resp *http.Response) (res Wa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15439,8 +15439,8 @@ func decodeWatchCoreV1NamespacedPodTemplateListResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15483,8 +15483,8 @@ func decodeWatchCoreV1NamespacedReplicationControllerResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15527,8 +15527,8 @@ func decodeWatchCoreV1NamespacedReplicationControllerListResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15571,8 +15571,8 @@ func decodeWatchCoreV1NamespacedResourceQuotaResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15615,8 +15615,8 @@ func decodeWatchCoreV1NamespacedResourceQuotaListResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15659,8 +15659,8 @@ func decodeWatchCoreV1NamespacedSecretResponse(resp *http.Response) (res WatchCo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15703,8 +15703,8 @@ func decodeWatchCoreV1NamespacedSecretListResponse(resp *http.Response) (res Wat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15747,8 +15747,8 @@ func decodeWatchCoreV1NamespacedServiceResponse(resp *http.Response) (res WatchC if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15791,8 +15791,8 @@ func decodeWatchCoreV1NamespacedServiceAccountResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15835,8 +15835,8 @@ func decodeWatchCoreV1NamespacedServiceAccountListResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15879,8 +15879,8 @@ func decodeWatchCoreV1NamespacedServiceListResponse(resp *http.Response) (res Wa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15923,8 +15923,8 @@ func decodeWatchCoreV1NodeResponse(resp *http.Response) (res WatchCoreV1NodeRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -15967,8 +15967,8 @@ func decodeWatchCoreV1NodeListResponse(resp *http.Response) (res WatchCoreV1Node if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16011,8 +16011,8 @@ func decodeWatchCoreV1PersistentVolumeResponse(resp *http.Response) (res WatchCo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16055,8 +16055,8 @@ func decodeWatchCoreV1PersistentVolumeClaimListForAllNamespacesResponse(resp *ht if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16099,8 +16099,8 @@ func decodeWatchCoreV1PersistentVolumeListResponse(resp *http.Response) (res Wat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16143,8 +16143,8 @@ func decodeWatchCoreV1PodListForAllNamespacesResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16187,8 +16187,8 @@ func decodeWatchCoreV1PodTemplateListForAllNamespacesResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16231,8 +16231,8 @@ func decodeWatchCoreV1ReplicationControllerListForAllNamespacesResponse(resp *ht if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16275,8 +16275,8 @@ func decodeWatchCoreV1ResourceQuotaListForAllNamespacesResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16319,8 +16319,8 @@ func decodeWatchCoreV1SecretListForAllNamespacesResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16363,8 +16363,8 @@ func decodeWatchCoreV1ServiceAccountListForAllNamespacesResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16407,8 +16407,8 @@ func decodeWatchCoreV1ServiceListForAllNamespacesResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16451,8 +16451,8 @@ func decodeWatchDiscoveryV1EndpointSliceListForAllNamespacesResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16495,8 +16495,8 @@ func decodeWatchDiscoveryV1NamespacedEndpointSliceResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16539,8 +16539,8 @@ func decodeWatchDiscoveryV1NamespacedEndpointSliceListResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16583,8 +16583,8 @@ func decodeWatchDiscoveryV1beta1EndpointSliceListForAllNamespacesResponse(resp * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16627,8 +16627,8 @@ func decodeWatchDiscoveryV1beta1NamespacedEndpointSliceResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16671,8 +16671,8 @@ func decodeWatchDiscoveryV1beta1NamespacedEndpointSliceListResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16715,8 +16715,8 @@ func decodeWatchEventsV1EventListForAllNamespacesResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16759,8 +16759,8 @@ func decodeWatchEventsV1NamespacedEventResponse(resp *http.Response) (res WatchE if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16803,8 +16803,8 @@ func decodeWatchEventsV1NamespacedEventListResponse(resp *http.Response) (res Wa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16847,8 +16847,8 @@ func decodeWatchEventsV1beta1EventListForAllNamespacesResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16891,8 +16891,8 @@ func decodeWatchEventsV1beta1NamespacedEventResponse(resp *http.Response) (res W if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16935,8 +16935,8 @@ func decodeWatchEventsV1beta1NamespacedEventListResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -16979,8 +16979,8 @@ func decodeWatchFlowcontrolApiserverV1beta1FlowSchemaResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17023,8 +17023,8 @@ func decodeWatchFlowcontrolApiserverV1beta1FlowSchemaListResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17067,8 +17067,8 @@ func decodeWatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationResponse(re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17111,8 +17111,8 @@ func decodeWatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationListRespons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17155,8 +17155,8 @@ func decodeWatchFlowcontrolApiserverV1beta2FlowSchemaResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17199,8 +17199,8 @@ func decodeWatchFlowcontrolApiserverV1beta2FlowSchemaListResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17243,8 +17243,8 @@ func decodeWatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationResponse(re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17287,8 +17287,8 @@ func decodeWatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationListRespons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17331,8 +17331,8 @@ func decodeWatchInternalApiserverV1alpha1StorageVersionResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17375,8 +17375,8 @@ func decodeWatchInternalApiserverV1alpha1StorageVersionListResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17419,8 +17419,8 @@ func decodeWatchNetworkingV1IngressClassResponse(resp *http.Response) (res Watch if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17463,8 +17463,8 @@ func decodeWatchNetworkingV1IngressClassListResponse(resp *http.Response) (res W if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17507,8 +17507,8 @@ func decodeWatchNetworkingV1IngressListForAllNamespacesResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17551,8 +17551,8 @@ func decodeWatchNetworkingV1NamespacedIngressResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17595,8 +17595,8 @@ func decodeWatchNetworkingV1NamespacedIngressListResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17639,8 +17639,8 @@ func decodeWatchNetworkingV1NamespacedNetworkPolicyResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17683,8 +17683,8 @@ func decodeWatchNetworkingV1NamespacedNetworkPolicyListResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17727,8 +17727,8 @@ func decodeWatchNetworkingV1NetworkPolicyListForAllNamespacesResponse(resp *http if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17771,8 +17771,8 @@ func decodeWatchNodeV1RuntimeClassResponse(resp *http.Response) (res WatchNodeV1 if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17815,8 +17815,8 @@ func decodeWatchNodeV1RuntimeClassListResponse(resp *http.Response) (res WatchNo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17859,8 +17859,8 @@ func decodeWatchNodeV1alpha1RuntimeClassResponse(resp *http.Response) (res Watch if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17903,8 +17903,8 @@ func decodeWatchNodeV1alpha1RuntimeClassListResponse(resp *http.Response) (res W if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17947,8 +17947,8 @@ func decodeWatchNodeV1beta1RuntimeClassResponse(resp *http.Response) (res WatchN if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -17991,8 +17991,8 @@ func decodeWatchNodeV1beta1RuntimeClassListResponse(resp *http.Response) (res Wa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18035,8 +18035,8 @@ func decodeWatchPolicyV1NamespacedPodDisruptionBudgetResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18079,8 +18079,8 @@ func decodeWatchPolicyV1NamespacedPodDisruptionBudgetListResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18123,8 +18123,8 @@ func decodeWatchPolicyV1PodDisruptionBudgetListForAllNamespacesResponse(resp *ht if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18167,8 +18167,8 @@ func decodeWatchPolicyV1beta1NamespacedPodDisruptionBudgetResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18211,8 +18211,8 @@ func decodeWatchPolicyV1beta1NamespacedPodDisruptionBudgetListResponse(resp *htt if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18255,8 +18255,8 @@ func decodeWatchPolicyV1beta1PodDisruptionBudgetListForAllNamespacesResponse(res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18299,8 +18299,8 @@ func decodeWatchPolicyV1beta1PodSecurityPolicyResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18343,8 +18343,8 @@ func decodeWatchPolicyV1beta1PodSecurityPolicyListResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18387,8 +18387,8 @@ func decodeWatchRbacAuthorizationV1ClusterRoleResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18431,8 +18431,8 @@ func decodeWatchRbacAuthorizationV1ClusterRoleBindingResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18475,8 +18475,8 @@ func decodeWatchRbacAuthorizationV1ClusterRoleBindingListResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18519,8 +18519,8 @@ func decodeWatchRbacAuthorizationV1ClusterRoleListResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18563,8 +18563,8 @@ func decodeWatchRbacAuthorizationV1NamespacedRoleResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18607,8 +18607,8 @@ func decodeWatchRbacAuthorizationV1NamespacedRoleBindingResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18651,8 +18651,8 @@ func decodeWatchRbacAuthorizationV1NamespacedRoleBindingListResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18695,8 +18695,8 @@ func decodeWatchRbacAuthorizationV1NamespacedRoleListResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18739,8 +18739,8 @@ func decodeWatchRbacAuthorizationV1RoleBindingListForAllNamespacesResponse(resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18783,8 +18783,8 @@ func decodeWatchRbacAuthorizationV1RoleListForAllNamespacesResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18827,8 +18827,8 @@ func decodeWatchSchedulingV1PriorityClassResponse(resp *http.Response) (res Watc if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18871,8 +18871,8 @@ func decodeWatchSchedulingV1PriorityClassListResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18915,8 +18915,8 @@ func decodeWatchStorageV1CSIDriverResponse(resp *http.Response) (res WatchStorag if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -18959,8 +18959,8 @@ func decodeWatchStorageV1CSIDriverListResponse(resp *http.Response) (res WatchSt if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -19003,8 +19003,8 @@ func decodeWatchStorageV1CSINodeResponse(resp *http.Response) (res WatchStorageV if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -19047,8 +19047,8 @@ func decodeWatchStorageV1CSINodeListResponse(resp *http.Response) (res WatchStor if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -19091,8 +19091,8 @@ func decodeWatchStorageV1StorageClassResponse(resp *http.Response) (res WatchSto if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -19135,8 +19135,8 @@ func decodeWatchStorageV1StorageClassListResponse(resp *http.Response) (res Watc if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -19179,8 +19179,8 @@ func decodeWatchStorageV1VolumeAttachmentResponse(resp *http.Response) (res Watc if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -19223,8 +19223,8 @@ func decodeWatchStorageV1VolumeAttachmentListResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -19267,8 +19267,8 @@ func decodeWatchStorageV1alpha1CSIStorageCapacityListForAllNamespacesResponse(re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -19311,8 +19311,8 @@ func decodeWatchStorageV1alpha1NamespacedCSIStorageCapacityResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -19355,8 +19355,8 @@ func decodeWatchStorageV1alpha1NamespacedCSIStorageCapacityListResponse(resp *ht if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -19399,8 +19399,8 @@ func decodeWatchStorageV1beta1CSIStorageCapacityListForAllNamespacesResponse(res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -19443,8 +19443,8 @@ func decodeWatchStorageV1beta1NamespacedCSIStorageCapacityResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { @@ -19487,8 +19487,8 @@ func decodeWatchStorageV1beta1NamespacedCSIStorageCapacityListResponse(resp *htt if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IoK8sApimachineryPkgApisMetaV1WatchEvent if err := func() error { if err := response.Decode(d); err != nil { diff --git a/examples/ex_manga/oas_response_decoders_gen.go b/examples/ex_manga/oas_response_decoders_gen.go index 5dea87aa1..526fc195a 100644 --- a/examples/ex_manga/oas_response_decoders_gen.go +++ b/examples/ex_manga/oas_response_decoders_gen.go @@ -30,8 +30,8 @@ func decodeGetBookResponse(resp *http.Response) (res GetBookRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Book if err := func() error { if err := response.Decode(d); err != nil { @@ -158,8 +158,8 @@ func decodeSearchResponse(resp *http.Response) (res SearchRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response SearchOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -202,8 +202,8 @@ func decodeSearchByTagIDResponse(resp *http.Response) (res SearchByTagIDRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response SearchByTagIDOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { diff --git a/examples/ex_petstore/oas_response_decoders_gen.go b/examples/ex_petstore/oas_response_decoders_gen.go index e1e910f5a..27c6e1cbc 100644 --- a/examples/ex_petstore/oas_response_decoders_gen.go +++ b/examples/ex_petstore/oas_response_decoders_gen.go @@ -33,8 +33,8 @@ func decodeCreatePetsResponse(resp *http.Response) (res CreatePetsRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -75,8 +75,8 @@ func decodeListPetsResponse(resp *http.Response) (res ListPetsRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Pets if err := func() error { if err := response.Decode(d); err != nil { @@ -148,8 +148,8 @@ func decodeListPetsResponse(resp *http.Response) (res ListPetsRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -190,8 +190,8 @@ func decodeShowPetByIdResponse(resp *http.Response) (res ShowPetByIdRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Pet if err := func() error { if err := response.Decode(d); err != nil { @@ -225,8 +225,8 @@ func decodeShowPetByIdResponse(resp *http.Response) (res ShowPetByIdRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { diff --git a/examples/ex_petstore_expanded/oas_request_decoders_gen.go b/examples/ex_petstore_expanded/oas_request_decoders_gen.go index 92f1618e8..b7fa9b7d0 100644 --- a/examples/ex_petstore_expanded/oas_request_decoders_gen.go +++ b/examples/ex_petstore_expanded/oas_request_decoders_gen.go @@ -44,8 +44,6 @@ func (s *Server) decodeAddPetRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NewPet buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56,6 +54,8 @@ func (s *Server) decodeAddPetRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request NewPet if err := func() error { if err := request.Decode(d); err != nil { return err diff --git a/examples/ex_petstore_expanded/oas_response_decoders_gen.go b/examples/ex_petstore_expanded/oas_response_decoders_gen.go index 73bb3e49e..9bf750556 100644 --- a/examples/ex_petstore_expanded/oas_response_decoders_gen.go +++ b/examples/ex_petstore_expanded/oas_response_decoders_gen.go @@ -28,8 +28,8 @@ func decodeAddPetResponse(resp *http.Response) (res AddPetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Pet if err := func() error { if err := response.Decode(d); err != nil { @@ -63,8 +63,8 @@ func decodeAddPetResponse(resp *http.Response) (res AddPetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -108,8 +108,8 @@ func decodeDeletePetResponse(resp *http.Response) (res DeletePetRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -150,8 +150,8 @@ func decodeFindPetByIDResponse(resp *http.Response) (res FindPetByIDRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Pet if err := func() error { if err := response.Decode(d); err != nil { @@ -185,8 +185,8 @@ func decodeFindPetByIDResponse(resp *http.Response) (res FindPetByIDRes, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -227,8 +227,8 @@ func decodeFindPetsResponse(resp *http.Response) (res FindPetsRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response FindPetsOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -262,8 +262,8 @@ func decodeFindPetsResponse(resp *http.Response) (res FindPetsRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { diff --git a/examples/ex_route_params/oas_response_decoders_gen.go b/examples/ex_route_params/oas_response_decoders_gen.go index 20651d036..04bb69de9 100644 --- a/examples/ex_route_params/oas_response_decoders_gen.go +++ b/examples/ex_route_params/oas_response_decoders_gen.go @@ -28,8 +28,8 @@ func decodeDataGetResponse(resp *http.Response) (res string, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response string if err := func() error { v, err := d.Str() @@ -71,8 +71,8 @@ func decodeDataGetAnyResponse(resp *http.Response) (res string, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response string if err := func() error { v, err := d.Str() @@ -114,8 +114,8 @@ func decodeDataGetIDResponse(resp *http.Response) (res string, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response string if err := func() error { v, err := d.Str() diff --git a/examples/ex_telegram/oas_request_decoders_gen.go b/examples/ex_telegram/oas_request_decoders_gen.go index f4e4334bf..2d371828a 100644 --- a/examples/ex_telegram/oas_request_decoders_gen.go +++ b/examples/ex_telegram/oas_request_decoders_gen.go @@ -44,8 +44,6 @@ func (s *Server) decodeAddStickerToSetRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request AddStickerToSet buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56,6 +54,8 @@ func (s *Server) decodeAddStickerToSetRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request AddStickerToSet if err := func() error { if err := request.Decode(d); err != nil { return err @@ -115,8 +115,6 @@ func (s *Server) decodeAnswerCallbackQueryRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request AnswerCallbackQuery buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -127,6 +125,8 @@ func (s *Server) decodeAnswerCallbackQueryRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request AnswerCallbackQuery if err := func() error { if err := request.Decode(d); err != nil { return err @@ -186,8 +186,6 @@ func (s *Server) decodeAnswerInlineQueryRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request AnswerInlineQuery buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -198,6 +196,8 @@ func (s *Server) decodeAnswerInlineQueryRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request AnswerInlineQuery if err := func() error { if err := request.Decode(d); err != nil { return err @@ -257,8 +257,6 @@ func (s *Server) decodeAnswerPreCheckoutQueryRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request AnswerPreCheckoutQuery buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -269,6 +267,8 @@ func (s *Server) decodeAnswerPreCheckoutQueryRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request AnswerPreCheckoutQuery if err := func() error { if err := request.Decode(d); err != nil { return err @@ -320,8 +320,6 @@ func (s *Server) decodeAnswerShippingQueryRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request AnswerShippingQuery buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -332,6 +330,8 @@ func (s *Server) decodeAnswerShippingQueryRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request AnswerShippingQuery if err := func() error { if err := request.Decode(d); err != nil { return err @@ -391,8 +391,6 @@ func (s *Server) decodeApproveChatJoinRequestRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ApproveChatJoinRequest buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -403,6 +401,8 @@ func (s *Server) decodeApproveChatJoinRequestRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ApproveChatJoinRequest if err := func() error { if err := request.Decode(d); err != nil { return err @@ -454,8 +454,6 @@ func (s *Server) decodeBanChatMemberRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request BanChatMember buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -466,6 +464,8 @@ func (s *Server) decodeBanChatMemberRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request BanChatMember if err := func() error { if err := request.Decode(d); err != nil { return err @@ -517,8 +517,6 @@ func (s *Server) decodeBanChatSenderChatRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request BanChatSenderChat buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -529,6 +527,8 @@ func (s *Server) decodeBanChatSenderChatRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request BanChatSenderChat if err := func() error { if err := request.Decode(d); err != nil { return err @@ -580,8 +580,6 @@ func (s *Server) decodeCopyMessageRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request CopyMessage buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -592,6 +590,8 @@ func (s *Server) decodeCopyMessageRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request CopyMessage if err := func() error { if err := request.Decode(d); err != nil { return err @@ -651,8 +651,6 @@ func (s *Server) decodeCreateChatInviteLinkRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request CreateChatInviteLink buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -663,6 +661,8 @@ func (s *Server) decodeCreateChatInviteLinkRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request CreateChatInviteLink if err := func() error { if err := request.Decode(d); err != nil { return err @@ -722,8 +722,6 @@ func (s *Server) decodeCreateNewStickerSetRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request CreateNewStickerSet buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -734,6 +732,8 @@ func (s *Server) decodeCreateNewStickerSetRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request CreateNewStickerSet if err := func() error { if err := request.Decode(d); err != nil { return err @@ -793,8 +793,6 @@ func (s *Server) decodeDeclineChatJoinRequestRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request DeclineChatJoinRequest buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -805,6 +803,8 @@ func (s *Server) decodeDeclineChatJoinRequestRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request DeclineChatJoinRequest if err := func() error { if err := request.Decode(d); err != nil { return err @@ -856,8 +856,6 @@ func (s *Server) decodeDeleteChatPhotoRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request DeleteChatPhoto buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -868,6 +866,8 @@ func (s *Server) decodeDeleteChatPhotoRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request DeleteChatPhoto if err := func() error { if err := request.Decode(d); err != nil { return err @@ -919,8 +919,6 @@ func (s *Server) decodeDeleteChatStickerSetRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request DeleteChatStickerSet buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -931,6 +929,8 @@ func (s *Server) decodeDeleteChatStickerSetRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request DeleteChatStickerSet if err := func() error { if err := request.Decode(d); err != nil { return err @@ -982,8 +982,6 @@ func (s *Server) decodeDeleteMessageRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request DeleteMessage buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -994,6 +992,8 @@ func (s *Server) decodeDeleteMessageRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request DeleteMessage if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1048,8 +1048,6 @@ func (s *Server) decodeDeleteMyCommandsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptDeleteMyCommands buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1060,6 +1058,8 @@ func (s *Server) decodeDeleteMyCommandsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptDeleteMyCommands if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -1112,8 +1112,6 @@ func (s *Server) decodeDeleteStickerFromSetRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request DeleteStickerFromSet buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1124,6 +1122,8 @@ func (s *Server) decodeDeleteStickerFromSetRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request DeleteStickerFromSet if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1178,8 +1178,6 @@ func (s *Server) decodeDeleteWebhookRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptDeleteWebhook buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1190,6 +1188,8 @@ func (s *Server) decodeDeleteWebhookRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptDeleteWebhook if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -1242,8 +1242,6 @@ func (s *Server) decodeEditChatInviteLinkRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EditChatInviteLink buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1254,6 +1252,8 @@ func (s *Server) decodeEditChatInviteLinkRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request EditChatInviteLink if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1313,8 +1313,6 @@ func (s *Server) decodeEditMessageCaptionRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EditMessageCaption buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1325,6 +1323,8 @@ func (s *Server) decodeEditMessageCaptionRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request EditMessageCaption if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1384,8 +1384,6 @@ func (s *Server) decodeEditMessageLiveLocationRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EditMessageLiveLocation buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1396,6 +1394,8 @@ func (s *Server) decodeEditMessageLiveLocationRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request EditMessageLiveLocation if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1455,8 +1455,6 @@ func (s *Server) decodeEditMessageMediaRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EditMessageMedia buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1467,6 +1465,8 @@ func (s *Server) decodeEditMessageMediaRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request EditMessageMedia if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1526,8 +1526,6 @@ func (s *Server) decodeEditMessageReplyMarkupRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EditMessageReplyMarkup buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1538,6 +1536,8 @@ func (s *Server) decodeEditMessageReplyMarkupRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request EditMessageReplyMarkup if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1597,8 +1597,6 @@ func (s *Server) decodeEditMessageTextRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request EditMessageText buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1609,6 +1607,8 @@ func (s *Server) decodeEditMessageTextRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request EditMessageText if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1668,8 +1668,6 @@ func (s *Server) decodeExportChatInviteLinkRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ExportChatInviteLink buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1680,6 +1678,8 @@ func (s *Server) decodeExportChatInviteLinkRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ExportChatInviteLink if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1731,8 +1731,6 @@ func (s *Server) decodeForwardMessageRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ForwardMessage buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1743,6 +1741,8 @@ func (s *Server) decodeForwardMessageRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ForwardMessage if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1794,8 +1794,6 @@ func (s *Server) decodeGetChatRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GetChat buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1806,6 +1804,8 @@ func (s *Server) decodeGetChatRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GetChat if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1857,8 +1857,6 @@ func (s *Server) decodeGetChatAdministratorsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GetChatAdministrators buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1869,6 +1867,8 @@ func (s *Server) decodeGetChatAdministratorsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GetChatAdministrators if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1920,8 +1920,6 @@ func (s *Server) decodeGetChatMemberRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GetChatMember buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1932,6 +1930,8 @@ func (s *Server) decodeGetChatMemberRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GetChatMember if err := func() error { if err := request.Decode(d); err != nil { return err @@ -1983,8 +1983,6 @@ func (s *Server) decodeGetChatMemberCountRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GetChatMemberCount buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1995,6 +1993,8 @@ func (s *Server) decodeGetChatMemberCountRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GetChatMemberCount if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2046,8 +2046,6 @@ func (s *Server) decodeGetFileRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GetFile buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2058,6 +2056,8 @@ func (s *Server) decodeGetFileRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GetFile if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2109,8 +2109,6 @@ func (s *Server) decodeGetGameHighScoresRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GetGameHighScores buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2121,6 +2119,8 @@ func (s *Server) decodeGetGameHighScoresRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GetGameHighScores if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2175,8 +2175,6 @@ func (s *Server) decodeGetMyCommandsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptGetMyCommands buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2187,6 +2185,8 @@ func (s *Server) decodeGetMyCommandsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptGetMyCommands if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -2239,8 +2239,6 @@ func (s *Server) decodeGetStickerSetRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GetStickerSet buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2251,6 +2249,8 @@ func (s *Server) decodeGetStickerSetRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GetStickerSet if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2305,8 +2305,6 @@ func (s *Server) decodeGetUpdatesRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptGetUpdates buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2317,6 +2315,8 @@ func (s *Server) decodeGetUpdatesRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptGetUpdates if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -2384,8 +2384,6 @@ func (s *Server) decodeGetUserProfilePhotosRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request GetUserProfilePhotos buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2396,6 +2394,8 @@ func (s *Server) decodeGetUserProfilePhotosRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request GetUserProfilePhotos if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2455,8 +2455,6 @@ func (s *Server) decodeLeaveChatRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request LeaveChat buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2467,6 +2465,8 @@ func (s *Server) decodeLeaveChatRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request LeaveChat if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2518,8 +2518,6 @@ func (s *Server) decodePinChatMessageRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request PinChatMessage buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2530,6 +2528,8 @@ func (s *Server) decodePinChatMessageRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request PinChatMessage if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2581,8 +2581,6 @@ func (s *Server) decodePromoteChatMemberRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request PromoteChatMember buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2593,6 +2591,8 @@ func (s *Server) decodePromoteChatMemberRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request PromoteChatMember if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2644,8 +2644,6 @@ func (s *Server) decodeRestrictChatMemberRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request RestrictChatMember buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2656,6 +2654,8 @@ func (s *Server) decodeRestrictChatMemberRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request RestrictChatMember if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2707,8 +2707,6 @@ func (s *Server) decodeRevokeChatInviteLinkRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request RevokeChatInviteLink buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2719,6 +2717,8 @@ func (s *Server) decodeRevokeChatInviteLinkRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request RevokeChatInviteLink if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2770,8 +2770,6 @@ func (s *Server) decodeSendAnimationRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendAnimation buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2782,6 +2780,8 @@ func (s *Server) decodeSendAnimationRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendAnimation if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2841,8 +2841,6 @@ func (s *Server) decodeSendAudioRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendAudio buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2853,6 +2851,8 @@ func (s *Server) decodeSendAudioRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendAudio if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2912,8 +2912,6 @@ func (s *Server) decodeSendChatActionRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendChatAction buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2924,6 +2922,8 @@ func (s *Server) decodeSendChatActionRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendChatAction if err := func() error { if err := request.Decode(d); err != nil { return err @@ -2975,8 +2975,6 @@ func (s *Server) decodeSendContactRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendContact buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2987,6 +2985,8 @@ func (s *Server) decodeSendContactRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendContact if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3046,8 +3046,6 @@ func (s *Server) decodeSendDiceRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendDice buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3058,6 +3056,8 @@ func (s *Server) decodeSendDiceRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendDice if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3117,8 +3117,6 @@ func (s *Server) decodeSendDocumentRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendDocument buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3129,6 +3127,8 @@ func (s *Server) decodeSendDocumentRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendDocument if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3188,8 +3188,6 @@ func (s *Server) decodeSendGameRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendGame buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3200,6 +3198,8 @@ func (s *Server) decodeSendGameRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendGame if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3259,8 +3259,6 @@ func (s *Server) decodeSendInvoiceRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendInvoice buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3271,6 +3269,8 @@ func (s *Server) decodeSendInvoiceRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendInvoice if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3330,8 +3330,6 @@ func (s *Server) decodeSendLocationRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendLocation buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3342,6 +3340,8 @@ func (s *Server) decodeSendLocationRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendLocation if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3401,8 +3401,6 @@ func (s *Server) decodeSendMediaGroupRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendMediaGroup buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3413,6 +3411,8 @@ func (s *Server) decodeSendMediaGroupRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendMediaGroup if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3472,8 +3472,6 @@ func (s *Server) decodeSendMessageRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendMessage buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3484,6 +3482,8 @@ func (s *Server) decodeSendMessageRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendMessage if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3543,8 +3543,6 @@ func (s *Server) decodeSendPhotoRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendPhoto buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3555,6 +3553,8 @@ func (s *Server) decodeSendPhotoRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendPhoto if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3614,8 +3614,6 @@ func (s *Server) decodeSendPollRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendPoll buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3626,6 +3624,8 @@ func (s *Server) decodeSendPollRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendPoll if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3685,8 +3685,6 @@ func (s *Server) decodeSendStickerRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendSticker buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3697,6 +3695,8 @@ func (s *Server) decodeSendStickerRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendSticker if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3756,8 +3756,6 @@ func (s *Server) decodeSendVenueRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendVenue buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3768,6 +3766,8 @@ func (s *Server) decodeSendVenueRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendVenue if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3827,8 +3827,6 @@ func (s *Server) decodeSendVideoRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendVideo buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3839,6 +3837,8 @@ func (s *Server) decodeSendVideoRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendVideo if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3898,8 +3898,6 @@ func (s *Server) decodeSendVideoNoteRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendVideoNote buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3910,6 +3908,8 @@ func (s *Server) decodeSendVideoNoteRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendVideoNote if err := func() error { if err := request.Decode(d); err != nil { return err @@ -3969,8 +3969,6 @@ func (s *Server) decodeSendVoiceRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SendVoice buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3981,6 +3979,8 @@ func (s *Server) decodeSendVoiceRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SendVoice if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4040,8 +4040,6 @@ func (s *Server) decodeSetChatAdministratorCustomTitleRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetChatAdministratorCustomTitle buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4052,6 +4050,8 @@ func (s *Server) decodeSetChatAdministratorCustomTitleRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetChatAdministratorCustomTitle if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4111,8 +4111,6 @@ func (s *Server) decodeSetChatDescriptionRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetChatDescription buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4123,6 +4121,8 @@ func (s *Server) decodeSetChatDescriptionRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetChatDescription if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4182,8 +4182,6 @@ func (s *Server) decodeSetChatPermissionsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetChatPermissions buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4194,6 +4192,8 @@ func (s *Server) decodeSetChatPermissionsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetChatPermissions if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4245,8 +4245,6 @@ func (s *Server) decodeSetChatPhotoRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetChatPhoto buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4257,6 +4255,8 @@ func (s *Server) decodeSetChatPhotoRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetChatPhoto if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4308,8 +4308,6 @@ func (s *Server) decodeSetChatStickerSetRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetChatStickerSet buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4320,6 +4318,8 @@ func (s *Server) decodeSetChatStickerSetRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetChatStickerSet if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4371,8 +4371,6 @@ func (s *Server) decodeSetChatTitleRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetChatTitle buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4383,6 +4381,8 @@ func (s *Server) decodeSetChatTitleRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetChatTitle if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4442,8 +4442,6 @@ func (s *Server) decodeSetGameScoreRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetGameScore buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4454,6 +4452,8 @@ func (s *Server) decodeSetGameScoreRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetGameScore if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4505,8 +4505,6 @@ func (s *Server) decodeSetMyCommandsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetMyCommands buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4517,6 +4515,8 @@ func (s *Server) decodeSetMyCommandsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetMyCommands if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4576,8 +4576,6 @@ func (s *Server) decodeSetPassportDataErrorsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetPassportDataErrors buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4588,6 +4586,8 @@ func (s *Server) decodeSetPassportDataErrorsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetPassportDataErrors if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4647,8 +4647,6 @@ func (s *Server) decodeSetStickerPositionInSetRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetStickerPositionInSet buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4659,6 +4657,8 @@ func (s *Server) decodeSetStickerPositionInSetRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetStickerPositionInSet if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4710,8 +4710,6 @@ func (s *Server) decodeSetStickerSetThumbRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetStickerSetThumb buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4722,6 +4720,8 @@ func (s *Server) decodeSetStickerSetThumbRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetStickerSetThumb if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4773,8 +4773,6 @@ func (s *Server) decodeSetWebhookRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SetWebhook buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4785,6 +4783,8 @@ func (s *Server) decodeSetWebhookRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SetWebhook if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4836,8 +4836,6 @@ func (s *Server) decodeStopMessageLiveLocationRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request StopMessageLiveLocation buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4848,6 +4846,8 @@ func (s *Server) decodeStopMessageLiveLocationRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request StopMessageLiveLocation if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4907,8 +4907,6 @@ func (s *Server) decodeStopPollRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request StopPoll buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4919,6 +4917,8 @@ func (s *Server) decodeStopPollRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request StopPoll if err := func() error { if err := request.Decode(d); err != nil { return err @@ -4978,8 +4978,6 @@ func (s *Server) decodeUnbanChatMemberRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request UnbanChatMember buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4990,6 +4988,8 @@ func (s *Server) decodeUnbanChatMemberRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request UnbanChatMember if err := func() error { if err := request.Decode(d); err != nil { return err @@ -5041,8 +5041,6 @@ func (s *Server) decodeUnbanChatSenderChatRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request UnbanChatSenderChat buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5053,6 +5051,8 @@ func (s *Server) decodeUnbanChatSenderChatRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request UnbanChatSenderChat if err := func() error { if err := request.Decode(d); err != nil { return err @@ -5104,8 +5104,6 @@ func (s *Server) decodeUnpinAllChatMessagesRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request UnpinAllChatMessages buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5116,6 +5114,8 @@ func (s *Server) decodeUnpinAllChatMessagesRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request UnpinAllChatMessages if err := func() error { if err := request.Decode(d); err != nil { return err @@ -5167,8 +5167,6 @@ func (s *Server) decodeUnpinChatMessageRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request UnpinChatMessage buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5179,6 +5177,8 @@ func (s *Server) decodeUnpinChatMessageRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request UnpinChatMessage if err := func() error { if err := request.Decode(d); err != nil { return err @@ -5230,8 +5230,6 @@ func (s *Server) decodeUploadStickerFileRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request UploadStickerFile buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5242,6 +5240,8 @@ func (s *Server) decodeUploadStickerFileRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request UploadStickerFile if err := func() error { if err := request.Decode(d); err != nil { return err diff --git a/examples/ex_telegram/oas_response_decoders_gen.go b/examples/ex_telegram/oas_response_decoders_gen.go index 5f777dd27..d34c634c8 100644 --- a/examples/ex_telegram/oas_response_decoders_gen.go +++ b/examples/ex_telegram/oas_response_decoders_gen.go @@ -28,8 +28,8 @@ func decodeAddStickerToSetResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -64,8 +64,8 @@ func decodeAddStickerToSetResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -111,8 +111,8 @@ func decodeAnswerCallbackQueryResponse(resp *http.Response) (res *Result, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -147,8 +147,8 @@ func decodeAnswerCallbackQueryResponse(resp *http.Response) (res *Result, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -194,8 +194,8 @@ func decodeAnswerInlineQueryResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -230,8 +230,8 @@ func decodeAnswerInlineQueryResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -277,8 +277,8 @@ func decodeAnswerPreCheckoutQueryResponse(resp *http.Response) (res *Result, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -313,8 +313,8 @@ func decodeAnswerPreCheckoutQueryResponse(resp *http.Response) (res *Result, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -360,8 +360,8 @@ func decodeAnswerShippingQueryResponse(resp *http.Response) (res *Result, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -396,8 +396,8 @@ func decodeAnswerShippingQueryResponse(resp *http.Response) (res *Result, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -443,8 +443,8 @@ func decodeApproveChatJoinRequestResponse(resp *http.Response) (res *Result, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -479,8 +479,8 @@ func decodeApproveChatJoinRequestResponse(resp *http.Response) (res *Result, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -526,8 +526,8 @@ func decodeBanChatMemberResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -562,8 +562,8 @@ func decodeBanChatMemberResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -609,8 +609,8 @@ func decodeBanChatSenderChatResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -645,8 +645,8 @@ func decodeBanChatSenderChatResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -692,8 +692,8 @@ func decodeCloseResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -728,8 +728,8 @@ func decodeCloseResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -775,8 +775,8 @@ func decodeCopyMessageResponse(resp *http.Response) (res *ResultMessageId, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessageId if err := func() error { if err := response.Decode(d); err != nil { @@ -811,8 +811,8 @@ func decodeCopyMessageResponse(resp *http.Response) (res *ResultMessageId, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -858,8 +858,8 @@ func decodeCreateChatInviteLinkResponse(resp *http.Response) (res *ResultChatInv if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultChatInviteLink if err := func() error { if err := response.Decode(d); err != nil { @@ -894,8 +894,8 @@ func decodeCreateChatInviteLinkResponse(resp *http.Response) (res *ResultChatInv if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -941,8 +941,8 @@ func decodeCreateNewStickerSetResponse(resp *http.Response) (res *Result, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -977,8 +977,8 @@ func decodeCreateNewStickerSetResponse(resp *http.Response) (res *Result, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1024,8 +1024,8 @@ func decodeDeclineChatJoinRequestResponse(resp *http.Response) (res *Result, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -1060,8 +1060,8 @@ func decodeDeclineChatJoinRequestResponse(resp *http.Response) (res *Result, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1107,8 +1107,8 @@ func decodeDeleteChatPhotoResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -1143,8 +1143,8 @@ func decodeDeleteChatPhotoResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1190,8 +1190,8 @@ func decodeDeleteChatStickerSetResponse(resp *http.Response) (res *Result, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -1226,8 +1226,8 @@ func decodeDeleteChatStickerSetResponse(resp *http.Response) (res *Result, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1273,8 +1273,8 @@ func decodeDeleteMessageResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -1309,8 +1309,8 @@ func decodeDeleteMessageResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1356,8 +1356,8 @@ func decodeDeleteMyCommandsResponse(resp *http.Response) (res *Result, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -1392,8 +1392,8 @@ func decodeDeleteMyCommandsResponse(resp *http.Response) (res *Result, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1439,8 +1439,8 @@ func decodeDeleteStickerFromSetResponse(resp *http.Response) (res *Result, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -1475,8 +1475,8 @@ func decodeDeleteStickerFromSetResponse(resp *http.Response) (res *Result, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1522,8 +1522,8 @@ func decodeDeleteWebhookResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -1558,8 +1558,8 @@ func decodeDeleteWebhookResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1605,8 +1605,8 @@ func decodeEditChatInviteLinkResponse(resp *http.Response) (res *ResultChatInvit if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultChatInviteLink if err := func() error { if err := response.Decode(d); err != nil { @@ -1641,8 +1641,8 @@ func decodeEditChatInviteLinkResponse(resp *http.Response) (res *ResultChatInvit if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1688,8 +1688,8 @@ func decodeEditMessageCaptionResponse(resp *http.Response) (res *Result, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -1724,8 +1724,8 @@ func decodeEditMessageCaptionResponse(resp *http.Response) (res *Result, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1771,8 +1771,8 @@ func decodeEditMessageLiveLocationResponse(resp *http.Response) (res *Result, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -1807,8 +1807,8 @@ func decodeEditMessageLiveLocationResponse(resp *http.Response) (res *Result, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1854,8 +1854,8 @@ func decodeEditMessageMediaResponse(resp *http.Response) (res *Result, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -1890,8 +1890,8 @@ func decodeEditMessageMediaResponse(resp *http.Response) (res *Result, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1937,8 +1937,8 @@ func decodeEditMessageReplyMarkupResponse(resp *http.Response) (res *Result, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -1973,8 +1973,8 @@ func decodeEditMessageReplyMarkupResponse(resp *http.Response) (res *Result, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2020,8 +2020,8 @@ func decodeEditMessageTextResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -2056,8 +2056,8 @@ func decodeEditMessageTextResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2103,8 +2103,8 @@ func decodeExportChatInviteLinkResponse(resp *http.Response) (res *ResultString, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultString if err := func() error { if err := response.Decode(d); err != nil { @@ -2139,8 +2139,8 @@ func decodeExportChatInviteLinkResponse(resp *http.Response) (res *ResultString, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2186,8 +2186,8 @@ func decodeForwardMessageResponse(resp *http.Response) (res *ResultMessage, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -2222,8 +2222,8 @@ func decodeForwardMessageResponse(resp *http.Response) (res *ResultMessage, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2269,8 +2269,8 @@ func decodeGetChatResponse(resp *http.Response) (res *ResultChat, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultChat if err := func() error { if err := response.Decode(d); err != nil { @@ -2305,8 +2305,8 @@ func decodeGetChatResponse(resp *http.Response) (res *ResultChat, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2352,8 +2352,8 @@ func decodeGetChatAdministratorsResponse(resp *http.Response) (res *ResultArrayO if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultArrayOfChatMember if err := func() error { if err := response.Decode(d); err != nil { @@ -2388,8 +2388,8 @@ func decodeGetChatAdministratorsResponse(resp *http.Response) (res *ResultArrayO if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2435,8 +2435,8 @@ func decodeGetChatMemberResponse(resp *http.Response) (res *ResultChatMember, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultChatMember if err := func() error { if err := response.Decode(d); err != nil { @@ -2471,8 +2471,8 @@ func decodeGetChatMemberResponse(resp *http.Response) (res *ResultChatMember, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2518,8 +2518,8 @@ func decodeGetChatMemberCountResponse(resp *http.Response) (res *ResultInt, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultInt if err := func() error { if err := response.Decode(d); err != nil { @@ -2554,8 +2554,8 @@ func decodeGetChatMemberCountResponse(resp *http.Response) (res *ResultInt, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2601,8 +2601,8 @@ func decodeGetFileResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -2637,8 +2637,8 @@ func decodeGetFileResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2684,8 +2684,8 @@ func decodeGetGameHighScoresResponse(resp *http.Response) (res *ResultArrayOfGam if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultArrayOfGameHighScore if err := func() error { if err := response.Decode(d); err != nil { @@ -2720,8 +2720,8 @@ func decodeGetGameHighScoresResponse(resp *http.Response) (res *ResultArrayOfGam if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2767,8 +2767,8 @@ func decodeGetMeResponse(resp *http.Response) (res *ResultUser, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultUser if err := func() error { if err := response.Decode(d); err != nil { @@ -2803,8 +2803,8 @@ func decodeGetMeResponse(resp *http.Response) (res *ResultUser, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2850,8 +2850,8 @@ func decodeGetMyCommandsResponse(resp *http.Response) (res *ResultArrayOfBotComm if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultArrayOfBotCommand if err := func() error { if err := response.Decode(d); err != nil { @@ -2886,8 +2886,8 @@ func decodeGetMyCommandsResponse(resp *http.Response) (res *ResultArrayOfBotComm if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2933,8 +2933,8 @@ func decodeGetStickerSetResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -2969,8 +2969,8 @@ func decodeGetStickerSetResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3016,8 +3016,8 @@ func decodeGetUpdatesResponse(resp *http.Response) (res *ResultArrayOfUpdate, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultArrayOfUpdate if err := func() error { if err := response.Decode(d); err != nil { @@ -3052,8 +3052,8 @@ func decodeGetUpdatesResponse(resp *http.Response) (res *ResultArrayOfUpdate, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3099,8 +3099,8 @@ func decodeGetUserProfilePhotosResponse(resp *http.Response) (res *ResultUserPro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultUserProfilePhotos if err := func() error { if err := response.Decode(d); err != nil { @@ -3135,8 +3135,8 @@ func decodeGetUserProfilePhotosResponse(resp *http.Response) (res *ResultUserPro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3182,8 +3182,8 @@ func decodeGetWebhookInfoResponse(resp *http.Response) (res *ResultWebhookInfo, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultWebhookInfo if err := func() error { if err := response.Decode(d); err != nil { @@ -3218,8 +3218,8 @@ func decodeGetWebhookInfoResponse(resp *http.Response) (res *ResultWebhookInfo, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3265,8 +3265,8 @@ func decodeLeaveChatResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -3301,8 +3301,8 @@ func decodeLeaveChatResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3348,8 +3348,8 @@ func decodeLogOutResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -3384,8 +3384,8 @@ func decodeLogOutResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3431,8 +3431,8 @@ func decodePinChatMessageResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -3467,8 +3467,8 @@ func decodePinChatMessageResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3514,8 +3514,8 @@ func decodePromoteChatMemberResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -3550,8 +3550,8 @@ func decodePromoteChatMemberResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3597,8 +3597,8 @@ func decodeRestrictChatMemberResponse(resp *http.Response) (res *Result, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -3633,8 +3633,8 @@ func decodeRestrictChatMemberResponse(resp *http.Response) (res *Result, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3680,8 +3680,8 @@ func decodeRevokeChatInviteLinkResponse(resp *http.Response) (res *ResultChatInv if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultChatInviteLink if err := func() error { if err := response.Decode(d); err != nil { @@ -3716,8 +3716,8 @@ func decodeRevokeChatInviteLinkResponse(resp *http.Response) (res *ResultChatInv if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3763,8 +3763,8 @@ func decodeSendAnimationResponse(resp *http.Response) (res *ResultMessage, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -3799,8 +3799,8 @@ func decodeSendAnimationResponse(resp *http.Response) (res *ResultMessage, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3846,8 +3846,8 @@ func decodeSendAudioResponse(resp *http.Response) (res *ResultMessage, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -3882,8 +3882,8 @@ func decodeSendAudioResponse(resp *http.Response) (res *ResultMessage, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3929,8 +3929,8 @@ func decodeSendChatActionResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -3965,8 +3965,8 @@ func decodeSendChatActionResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4012,8 +4012,8 @@ func decodeSendContactResponse(resp *http.Response) (res *ResultMessage, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4048,8 +4048,8 @@ func decodeSendContactResponse(resp *http.Response) (res *ResultMessage, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4095,8 +4095,8 @@ func decodeSendDiceResponse(resp *http.Response) (res *ResultMessage, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4131,8 +4131,8 @@ func decodeSendDiceResponse(resp *http.Response) (res *ResultMessage, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4178,8 +4178,8 @@ func decodeSendDocumentResponse(resp *http.Response) (res *ResultMessage, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4214,8 +4214,8 @@ func decodeSendDocumentResponse(resp *http.Response) (res *ResultMessage, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4261,8 +4261,8 @@ func decodeSendGameResponse(resp *http.Response) (res *ResultMessage, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4297,8 +4297,8 @@ func decodeSendGameResponse(resp *http.Response) (res *ResultMessage, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4344,8 +4344,8 @@ func decodeSendInvoiceResponse(resp *http.Response) (res *ResultMessage, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4380,8 +4380,8 @@ func decodeSendInvoiceResponse(resp *http.Response) (res *ResultMessage, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4427,8 +4427,8 @@ func decodeSendLocationResponse(resp *http.Response) (res *ResultMessage, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4463,8 +4463,8 @@ func decodeSendLocationResponse(resp *http.Response) (res *ResultMessage, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4510,8 +4510,8 @@ func decodeSendMediaGroupResponse(resp *http.Response) (res *ResultArrayOfMessag if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultArrayOfMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4546,8 +4546,8 @@ func decodeSendMediaGroupResponse(resp *http.Response) (res *ResultArrayOfMessag if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4593,8 +4593,8 @@ func decodeSendMessageResponse(resp *http.Response) (res *ResultMessage, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4629,8 +4629,8 @@ func decodeSendMessageResponse(resp *http.Response) (res *ResultMessage, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4676,8 +4676,8 @@ func decodeSendPhotoResponse(resp *http.Response) (res *ResultMessage, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4712,8 +4712,8 @@ func decodeSendPhotoResponse(resp *http.Response) (res *ResultMessage, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4759,8 +4759,8 @@ func decodeSendPollResponse(resp *http.Response) (res *ResultMessage, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4795,8 +4795,8 @@ func decodeSendPollResponse(resp *http.Response) (res *ResultMessage, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4842,8 +4842,8 @@ func decodeSendStickerResponse(resp *http.Response) (res *ResultMessage, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4878,8 +4878,8 @@ func decodeSendStickerResponse(resp *http.Response) (res *ResultMessage, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4925,8 +4925,8 @@ func decodeSendVenueResponse(resp *http.Response) (res *ResultMessage, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -4961,8 +4961,8 @@ func decodeSendVenueResponse(resp *http.Response) (res *ResultMessage, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5008,8 +5008,8 @@ func decodeSendVideoResponse(resp *http.Response) (res *ResultMessage, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -5044,8 +5044,8 @@ func decodeSendVideoResponse(resp *http.Response) (res *ResultMessage, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5091,8 +5091,8 @@ func decodeSendVideoNoteResponse(resp *http.Response) (res *ResultMessage, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -5127,8 +5127,8 @@ func decodeSendVideoNoteResponse(resp *http.Response) (res *ResultMessage, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5174,8 +5174,8 @@ func decodeSendVoiceResponse(resp *http.Response) (res *ResultMessage, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultMessage if err := func() error { if err := response.Decode(d); err != nil { @@ -5210,8 +5210,8 @@ func decodeSendVoiceResponse(resp *http.Response) (res *ResultMessage, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5257,8 +5257,8 @@ func decodeSetChatAdministratorCustomTitleResponse(resp *http.Response) (res *Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -5293,8 +5293,8 @@ func decodeSetChatAdministratorCustomTitleResponse(resp *http.Response) (res *Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5340,8 +5340,8 @@ func decodeSetChatDescriptionResponse(resp *http.Response) (res *Result, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -5376,8 +5376,8 @@ func decodeSetChatDescriptionResponse(resp *http.Response) (res *Result, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5423,8 +5423,8 @@ func decodeSetChatPermissionsResponse(resp *http.Response) (res *Result, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -5459,8 +5459,8 @@ func decodeSetChatPermissionsResponse(resp *http.Response) (res *Result, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5506,8 +5506,8 @@ func decodeSetChatPhotoResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -5542,8 +5542,8 @@ func decodeSetChatPhotoResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5589,8 +5589,8 @@ func decodeSetChatStickerSetResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -5625,8 +5625,8 @@ func decodeSetChatStickerSetResponse(resp *http.Response) (res *Result, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5672,8 +5672,8 @@ func decodeSetChatTitleResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -5708,8 +5708,8 @@ func decodeSetChatTitleResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5755,8 +5755,8 @@ func decodeSetGameScoreResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -5791,8 +5791,8 @@ func decodeSetGameScoreResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5838,8 +5838,8 @@ func decodeSetMyCommandsResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -5874,8 +5874,8 @@ func decodeSetMyCommandsResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5921,8 +5921,8 @@ func decodeSetPassportDataErrorsResponse(resp *http.Response) (res *Result, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -5957,8 +5957,8 @@ func decodeSetPassportDataErrorsResponse(resp *http.Response) (res *Result, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6004,8 +6004,8 @@ func decodeSetStickerPositionInSetResponse(resp *http.Response) (res *Result, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -6040,8 +6040,8 @@ func decodeSetStickerPositionInSetResponse(resp *http.Response) (res *Result, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6087,8 +6087,8 @@ func decodeSetStickerSetThumbResponse(resp *http.Response) (res *Result, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -6123,8 +6123,8 @@ func decodeSetStickerSetThumbResponse(resp *http.Response) (res *Result, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6170,8 +6170,8 @@ func decodeSetWebhookResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -6206,8 +6206,8 @@ func decodeSetWebhookResponse(resp *http.Response) (res *Result, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6253,8 +6253,8 @@ func decodeStopMessageLiveLocationResponse(resp *http.Response) (res *Result, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -6289,8 +6289,8 @@ func decodeStopMessageLiveLocationResponse(resp *http.Response) (res *Result, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6336,8 +6336,8 @@ func decodeStopPollResponse(resp *http.Response) (res *ResultPoll, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultPoll if err := func() error { if err := response.Decode(d); err != nil { @@ -6372,8 +6372,8 @@ func decodeStopPollResponse(resp *http.Response) (res *ResultPoll, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6419,8 +6419,8 @@ func decodeUnbanChatMemberResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -6455,8 +6455,8 @@ func decodeUnbanChatMemberResponse(resp *http.Response) (res *Result, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6502,8 +6502,8 @@ func decodeUnbanChatSenderChatResponse(resp *http.Response) (res *Result, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -6538,8 +6538,8 @@ func decodeUnbanChatSenderChatResponse(resp *http.Response) (res *Result, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6585,8 +6585,8 @@ func decodeUnpinAllChatMessagesResponse(resp *http.Response) (res *Result, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -6621,8 +6621,8 @@ func decodeUnpinAllChatMessagesResponse(resp *http.Response) (res *Result, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6668,8 +6668,8 @@ func decodeUnpinChatMessageResponse(resp *http.Response) (res *Result, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Result if err := func() error { if err := response.Decode(d); err != nil { @@ -6704,8 +6704,8 @@ func decodeUnpinChatMessageResponse(resp *http.Response) (res *Result, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6751,8 +6751,8 @@ func decodeUploadStickerFileResponse(resp *http.Response) (res *ResultFile, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ResultFile if err := func() error { if err := response.Decode(d); err != nil { @@ -6787,8 +6787,8 @@ func decodeUploadStickerFileResponse(resp *http.Response) (res *ResultFile, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { diff --git a/examples/ex_test_format/oas_request_decoders_gen.go b/examples/ex_test_format/oas_request_decoders_gen.go index 26eb55d0a..4032fec33 100644 --- a/examples/ex_test_format/oas_request_decoders_gen.go +++ b/examples/ex_test_format/oas_request_decoders_gen.go @@ -50,8 +50,6 @@ func (s *Server) decodeTestQueryParameterRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -62,6 +60,8 @@ func (s *Server) decodeTestQueryParameterRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -118,8 +118,6 @@ func (s *Server) decodeTestRequestAnyRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request jx.Raw buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -130,6 +128,8 @@ func (s *Server) decodeTestRequestAnyRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request jx.Raw if err := func() error { v, err := d.RawAppend(nil) request = jx.Raw(v) @@ -186,8 +186,6 @@ func (s *Server) decodeTestRequestBooleanRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptBool buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -198,6 +196,8 @@ func (s *Server) decodeTestRequestBooleanRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptBool if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -253,8 +253,6 @@ func (s *Server) decodeTestRequestBooleanArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []bool buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -265,6 +263,8 @@ func (s *Server) decodeTestRequestBooleanArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []bool if err := func() error { request = make([]bool, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -329,8 +329,6 @@ func (s *Server) decodeTestRequestBooleanArrayArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request [][]bool buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -341,6 +339,8 @@ func (s *Server) decodeTestRequestBooleanArrayArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request [][]bool if err := func() error { request = make([][]bool, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -435,8 +435,6 @@ func (s *Server) decodeTestRequestBooleanNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilBool buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -447,6 +445,8 @@ func (s *Server) decodeTestRequestBooleanNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilBool if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -502,8 +502,6 @@ func (s *Server) decodeTestRequestBooleanNullableArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []NilBool buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -514,6 +512,8 @@ func (s *Server) decodeTestRequestBooleanNullableArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []NilBool if err := func() error { request = make([]NilBool, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -576,8 +576,6 @@ func (s *Server) decodeTestRequestBooleanNullableArrayArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilBool buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -588,6 +586,8 @@ func (s *Server) decodeTestRequestBooleanNullableArrayArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request [][]NilBool if err := func() error { request = make([][]NilBool, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -680,8 +680,6 @@ func (s *Server) decodeTestRequestEmptyStructRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request *TestRequestEmptyStructReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -692,6 +690,8 @@ func (s *Server) decodeTestRequestEmptyStructRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request *TestRequestEmptyStructReq if err := func() error { request = nil var elem TestRequestEmptyStructReq @@ -749,8 +749,6 @@ func (s *Server) decodeTestRequestFormatTestRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptTestRequestFormatTestReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -761,6 +759,8 @@ func (s *Server) decodeTestRequestFormatTestRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptTestRequestFormatTestReq if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -831,8 +831,6 @@ func (s *Server) decodeTestRequestIntegerRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptInt buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -843,6 +841,8 @@ func (s *Server) decodeTestRequestIntegerRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptInt if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -898,8 +898,6 @@ func (s *Server) decodeTestRequestIntegerArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []int buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -910,6 +908,8 @@ func (s *Server) decodeTestRequestIntegerArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []int if err := func() error { request = make([]int, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -974,8 +974,6 @@ func (s *Server) decodeTestRequestIntegerArrayArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request [][]int buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -986,6 +984,8 @@ func (s *Server) decodeTestRequestIntegerArrayArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request [][]int if err := func() error { request = make([][]int, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -1080,8 +1080,6 @@ func (s *Server) decodeTestRequestIntegerInt32Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptInt32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1092,6 +1090,8 @@ func (s *Server) decodeTestRequestIntegerInt32Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptInt32 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -1147,8 +1147,6 @@ func (s *Server) decodeTestRequestIntegerInt32ArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []int32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1159,6 +1157,8 @@ func (s *Server) decodeTestRequestIntegerInt32ArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []int32 if err := func() error { request = make([]int32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -1223,8 +1223,6 @@ func (s *Server) decodeTestRequestIntegerInt32ArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request [][]int32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1235,6 +1233,8 @@ func (s *Server) decodeTestRequestIntegerInt32ArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request [][]int32 if err := func() error { request = make([][]int32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -1329,8 +1329,6 @@ func (s *Server) decodeTestRequestIntegerInt32NullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilInt32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1341,6 +1339,8 @@ func (s *Server) decodeTestRequestIntegerInt32NullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilInt32 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -1396,8 +1396,6 @@ func (s *Server) decodeTestRequestIntegerInt32NullableArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, nil } - - var request []NilInt32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1408,6 +1406,8 @@ func (s *Server) decodeTestRequestIntegerInt32NullableArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request []NilInt32 if err := func() error { request = make([]NilInt32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -1470,8 +1470,6 @@ func (s *Server) decodeTestRequestIntegerInt32NullableArrayArrayRequest(r *http. if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilInt32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1482,6 +1480,8 @@ func (s *Server) decodeTestRequestIntegerInt32NullableArrayArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request [][]NilInt32 if err := func() error { request = make([][]NilInt32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -1574,8 +1574,6 @@ func (s *Server) decodeTestRequestIntegerInt64Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptInt64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1586,6 +1584,8 @@ func (s *Server) decodeTestRequestIntegerInt64Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptInt64 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -1641,8 +1641,6 @@ func (s *Server) decodeTestRequestIntegerInt64ArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []int64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1653,6 +1651,8 @@ func (s *Server) decodeTestRequestIntegerInt64ArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []int64 if err := func() error { request = make([]int64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -1717,8 +1717,6 @@ func (s *Server) decodeTestRequestIntegerInt64ArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request [][]int64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1729,6 +1727,8 @@ func (s *Server) decodeTestRequestIntegerInt64ArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request [][]int64 if err := func() error { request = make([][]int64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -1823,8 +1823,6 @@ func (s *Server) decodeTestRequestIntegerInt64NullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilInt64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1835,6 +1833,8 @@ func (s *Server) decodeTestRequestIntegerInt64NullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilInt64 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -1890,8 +1890,6 @@ func (s *Server) decodeTestRequestIntegerInt64NullableArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, nil } - - var request []NilInt64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1902,6 +1900,8 @@ func (s *Server) decodeTestRequestIntegerInt64NullableArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request []NilInt64 if err := func() error { request = make([]NilInt64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -1964,8 +1964,6 @@ func (s *Server) decodeTestRequestIntegerInt64NullableArrayArrayRequest(r *http. if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilInt64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -1976,6 +1974,8 @@ func (s *Server) decodeTestRequestIntegerInt64NullableArrayArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request [][]NilInt64 if err := func() error { request = make([][]NilInt64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -2068,8 +2068,6 @@ func (s *Server) decodeTestRequestIntegerNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilInt buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2080,6 +2078,8 @@ func (s *Server) decodeTestRequestIntegerNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilInt if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -2135,8 +2135,6 @@ func (s *Server) decodeTestRequestIntegerNullableArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []NilInt buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2147,6 +2145,8 @@ func (s *Server) decodeTestRequestIntegerNullableArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []NilInt if err := func() error { request = make([]NilInt, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -2209,8 +2209,6 @@ func (s *Server) decodeTestRequestIntegerNullableArrayArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilInt buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2221,6 +2219,8 @@ func (s *Server) decodeTestRequestIntegerNullableArrayArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request [][]NilInt if err := func() error { request = make([][]NilInt, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -2313,8 +2313,6 @@ func (s *Server) decodeTestRequestIntegerUintRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptUint buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2325,73 +2323,8 @@ func (s *Server) decodeTestRequestIntegerUintRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) - if err := func() error { - request.Reset() - if err := request.Decode(d); err != nil { - return err - } - if err := d.Skip(); err != io.EOF { - return errors.New("unexpected trailing data") - } - return nil - }(); err != nil { - err = &ogenerrors.DecodeBodyError{ - ContentType: ct, - Body: buf, - Err: err, - } - return req, close, err - } - return request, close, nil - default: - return req, close, validate.InvalidContentType(ct) - } -} - -func (s *Server) decodeTestRequestIntegerUint32Request(r *http.Request) ( - req OptUint32, - close func() error, - rerr error, -) { - var closers []func() error - close = func() error { - var merr error - // Close in reverse order, to match defer behavior. - for i := len(closers) - 1; i >= 0; i-- { - c := closers[i] - merr = multierr.Append(merr, c()) - } - return merr - } - defer func() { - if rerr != nil { - rerr = multierr.Append(rerr, close()) - } - }() - if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { - return 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 ct == "application/json": - if r.ContentLength == 0 { - return req, close, nil - } - - var request OptUint32 - buf, err := io.ReadAll(r.Body) - if err != nil { - return req, close, err - } - - if len(buf) == 0 { - return req, close, nil - } - d := jx.DecodeBytes(buf) + var request OptUint if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -2415,84 +2348,8 @@ func (s *Server) decodeTestRequestIntegerUint32Request(r *http.Request) ( } } -func (s *Server) decodeTestRequestIntegerUint32ArrayRequest(r *http.Request) ( - req []uint32, - close func() error, - rerr error, -) { - var closers []func() error - close = func() error { - var merr error - // Close in reverse order, to match defer behavior. - for i := len(closers) - 1; i >= 0; i-- { - c := closers[i] - merr = multierr.Append(merr, c()) - } - return merr - } - defer func() { - if rerr != nil { - rerr = multierr.Append(rerr, close()) - } - }() - if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { - return 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 ct == "application/json": - if r.ContentLength == 0 { - return req, close, nil - } - - var request []uint32 - buf, err := io.ReadAll(r.Body) - if err != nil { - return req, close, err - } - - if len(buf) == 0 { - return req, close, nil - } - - d := jx.DecodeBytes(buf) - if err := func() error { - request = make([]uint32, 0) - if err := d.Arr(func(d *jx.Decoder) error { - var elem uint32 - v, err := d.UInt32() - elem = uint32(v) - if err != nil { - return err - } - request = append(request, elem) - return nil - }); err != nil { - return err - } - if err := d.Skip(); err != io.EOF { - return errors.New("unexpected trailing data") - } - return nil - }(); err != nil { - err = &ogenerrors.DecodeBodyError{ - ContentType: ct, - Body: buf, - Err: err, - } - return req, close, err - } - return request, close, nil - default: - return req, close, validate.InvalidContentType(ct) - } -} - -func (s *Server) decodeTestRequestIntegerUint32ArrayArrayRequest(r *http.Request) ( - req [][]uint32, +func (s *Server) decodeTestRequestIntegerUint32Request(r *http.Request) ( + req OptUint32, close func() error, rerr error, ) { @@ -2523,8 +2380,6 @@ func (s *Server) decodeTestRequestIntegerUint32ArrayArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, nil } - - var request [][]uint32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2535,112 +2390,8 @@ func (s *Server) decodeTestRequestIntegerUint32ArrayArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) - if err := func() error { - request = make([][]uint32, 0) - if err := d.Arr(func(d *jx.Decoder) error { - var elem []uint32 - elem = make([]uint32, 0) - if err := d.Arr(func(d *jx.Decoder) error { - var elemElem uint32 - v, err := d.UInt32() - elemElem = uint32(v) - if err != nil { - return err - } - elem = append(elem, elemElem) - return nil - }); err != nil { - return err - } - request = append(request, elem) - return nil - }); err != nil { - return err - } - if err := d.Skip(); err != io.EOF { - return errors.New("unexpected trailing data") - } - return nil - }(); err != nil { - err = &ogenerrors.DecodeBodyError{ - ContentType: ct, - Body: buf, - Err: err, - } - return req, close, err - } - if err := func() error { - var failures []validate.FieldError - for i, elem := range request { - if err := func() error { - if elem == nil { - return errors.New("nil is invalid value") - } - return nil - }(); err != nil { - failures = append(failures, validate.FieldError{ - Name: fmt.Sprintf("[%d]", i), - Error: err, - }) - } - } - if len(failures) > 0 { - return &validate.Error{Fields: failures} - } - return nil - }(); err != nil { - return req, close, errors.Wrap(err, "validate") - } - return request, close, nil - default: - return req, close, validate.InvalidContentType(ct) - } -} - -func (s *Server) decodeTestRequestIntegerUint32NullableRequest(r *http.Request) ( - req OptNilUint32, - close func() error, - rerr error, -) { - var closers []func() error - close = func() error { - var merr error - // Close in reverse order, to match defer behavior. - for i := len(closers) - 1; i >= 0; i-- { - c := closers[i] - merr = multierr.Append(merr, c()) - } - return merr - } - defer func() { - if rerr != nil { - rerr = multierr.Append(rerr, close()) - } - }() - if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { - return 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 ct == "application/json": - if r.ContentLength == 0 { - return req, close, nil - } - - var request OptNilUint32 - buf, err := io.ReadAll(r.Body) - if err != nil { - return req, close, err - } - - if len(buf) == 0 { - return req, close, nil - } - d := jx.DecodeBytes(buf) + var request OptUint32 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -2664,8 +2415,8 @@ func (s *Server) decodeTestRequestIntegerUint32NullableRequest(r *http.Request) } } -func (s *Server) decodeTestRequestIntegerUint32NullableArrayRequest(r *http.Request) ( - req []NilUint32, +func (s *Server) decodeTestRequestIntegerUint32ArrayRequest(r *http.Request) ( + req []uint32, close func() error, rerr error, ) { @@ -2696,8 +2447,6 @@ func (s *Server) decodeTestRequestIntegerUint32NullableArrayRequest(r *http.Requ if r.ContentLength == 0 { return req, close, nil } - - var request []NilUint32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2708,11 +2457,15 @@ func (s *Server) decodeTestRequestIntegerUint32NullableArrayRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request []uint32 if err := func() error { - request = make([]NilUint32, 0) + request = make([]uint32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilUint32 - if err := elem.Decode(d); err != nil { + var elem uint32 + v, err := d.UInt32() + elem = uint32(v) + if err != nil { return err } request = append(request, elem) @@ -2738,8 +2491,8 @@ func (s *Server) decodeTestRequestIntegerUint32NullableArrayRequest(r *http.Requ } } -func (s *Server) decodeTestRequestIntegerUint32NullableArrayArrayRequest(r *http.Request) ( - req [][]NilUint32, +func (s *Server) decodeTestRequestIntegerUint32ArrayArrayRequest(r *http.Request) ( + req [][]uint32, close func() error, rerr error, ) { @@ -2770,8 +2523,6 @@ func (s *Server) decodeTestRequestIntegerUint32NullableArrayArrayRequest(r *http if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilUint32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2782,14 +2533,18 @@ func (s *Server) decodeTestRequestIntegerUint32NullableArrayArrayRequest(r *http } d := jx.DecodeBytes(buf) + + var request [][]uint32 if err := func() error { - request = make([][]NilUint32, 0) + request = make([][]uint32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilUint32 - elem = make([]NilUint32, 0) + var elem []uint32 + elem = make([]uint32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilUint32 - if err := elemElem.Decode(d); err != nil { + var elemElem uint32 + v, err := d.UInt32() + elemElem = uint32(v) + if err != nil { return err } elem = append(elem, elemElem) @@ -2842,8 +2597,8 @@ func (s *Server) decodeTestRequestIntegerUint32NullableArrayArrayRequest(r *http } } -func (s *Server) decodeTestRequestIntegerUint64Request(r *http.Request) ( - req OptUint64, +func (s *Server) decodeTestRequestIntegerUint32NullableRequest(r *http.Request) ( + req OptNilUint32, close func() error, rerr error, ) { @@ -2874,8 +2629,6 @@ func (s *Server) decodeTestRequestIntegerUint64Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptUint64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2886,6 +2639,8 @@ func (s *Server) decodeTestRequestIntegerUint64Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilUint32 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -2909,8 +2664,8 @@ func (s *Server) decodeTestRequestIntegerUint64Request(r *http.Request) ( } } -func (s *Server) decodeTestRequestIntegerUint64ArrayRequest(r *http.Request) ( - req []uint64, +func (s *Server) decodeTestRequestIntegerUint32NullableArrayRequest(r *http.Request) ( + req []NilUint32, close func() error, rerr error, ) { @@ -2941,8 +2696,6 @@ func (s *Server) decodeTestRequestIntegerUint64ArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []uint64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -2953,13 +2706,13 @@ func (s *Server) decodeTestRequestIntegerUint64ArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []NilUint32 if err := func() error { - request = make([]uint64, 0) + request = make([]NilUint32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem uint64 - v, err := d.UInt64() - elem = uint64(v) - if err != nil { + var elem NilUint32 + if err := elem.Decode(d); err != nil { return err } request = append(request, elem) @@ -2985,8 +2738,8 @@ func (s *Server) decodeTestRequestIntegerUint64ArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestRequestIntegerUint64ArrayArrayRequest(r *http.Request) ( - req [][]uint64, +func (s *Server) decodeTestRequestIntegerUint32NullableArrayArrayRequest(r *http.Request) ( + req [][]NilUint32, close func() error, rerr error, ) { @@ -3017,8 +2770,6 @@ func (s *Server) decodeTestRequestIntegerUint64ArrayArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, nil } - - var request [][]uint64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3029,16 +2780,16 @@ func (s *Server) decodeTestRequestIntegerUint64ArrayArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request [][]NilUint32 if err := func() error { - request = make([][]uint64, 0) + request = make([][]NilUint32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []uint64 - elem = make([]uint64, 0) + var elem []NilUint32 + elem = make([]NilUint32, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem uint64 - v, err := d.UInt64() - elemElem = uint64(v) - if err != nil { + var elemElem NilUint32 + if err := elemElem.Decode(d); err != nil { return err } elem = append(elem, elemElem) @@ -3091,8 +2842,8 @@ func (s *Server) decodeTestRequestIntegerUint64ArrayArrayRequest(r *http.Request } } -func (s *Server) decodeTestRequestIntegerUint64NullableRequest(r *http.Request) ( - req OptNilUint64, +func (s *Server) decodeTestRequestIntegerUint64Request(r *http.Request) ( + req OptUint64, close func() error, rerr error, ) { @@ -3123,8 +2874,6 @@ func (s *Server) decodeTestRequestIntegerUint64NullableRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request OptNilUint64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3135,6 +2884,8 @@ func (s *Server) decodeTestRequestIntegerUint64NullableRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request OptUint64 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -3158,8 +2909,8 @@ func (s *Server) decodeTestRequestIntegerUint64NullableRequest(r *http.Request) } } -func (s *Server) decodeTestRequestIntegerUint64NullableArrayRequest(r *http.Request) ( - req []NilUint64, +func (s *Server) decodeTestRequestIntegerUint64ArrayRequest(r *http.Request) ( + req []uint64, close func() error, rerr error, ) { @@ -3190,8 +2941,6 @@ func (s *Server) decodeTestRequestIntegerUint64NullableArrayRequest(r *http.Requ if r.ContentLength == 0 { return req, close, nil } - - var request []NilUint64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3202,11 +2951,15 @@ func (s *Server) decodeTestRequestIntegerUint64NullableArrayRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request []uint64 if err := func() error { - request = make([]NilUint64, 0) + request = make([]uint64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilUint64 - if err := elem.Decode(d); err != nil { + var elem uint64 + v, err := d.UInt64() + elem = uint64(v) + if err != nil { return err } request = append(request, elem) @@ -3232,8 +2985,8 @@ func (s *Server) decodeTestRequestIntegerUint64NullableArrayRequest(r *http.Requ } } -func (s *Server) decodeTestRequestIntegerUint64NullableArrayArrayRequest(r *http.Request) ( - req [][]NilUint64, +func (s *Server) decodeTestRequestIntegerUint64ArrayArrayRequest(r *http.Request) ( + req [][]uint64, close func() error, rerr error, ) { @@ -3264,8 +3017,6 @@ func (s *Server) decodeTestRequestIntegerUint64NullableArrayArrayRequest(r *http if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilUint64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3276,14 +3027,18 @@ func (s *Server) decodeTestRequestIntegerUint64NullableArrayArrayRequest(r *http } d := jx.DecodeBytes(buf) + + var request [][]uint64 if err := func() error { - request = make([][]NilUint64, 0) + request = make([][]uint64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilUint64 - elem = make([]NilUint64, 0) + var elem []uint64 + elem = make([]uint64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilUint64 - if err := elemElem.Decode(d); err != nil { + var elemElem uint64 + v, err := d.UInt64() + elemElem = uint64(v) + if err != nil { return err } elem = append(elem, elemElem) @@ -3336,8 +3091,8 @@ func (s *Server) decodeTestRequestIntegerUint64NullableArrayArrayRequest(r *http } } -func (s *Server) decodeTestRequestIntegerUintArrayRequest(r *http.Request) ( - req []uint, +func (s *Server) decodeTestRequestIntegerUint64NullableRequest(r *http.Request) ( + req OptNilUint64, close func() error, rerr error, ) { @@ -3368,8 +3123,6 @@ func (s *Server) decodeTestRequestIntegerUintArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []uint buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3380,18 +3133,11 @@ func (s *Server) decodeTestRequestIntegerUintArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilUint64 if err := func() error { - request = make([]uint, 0) - if err := d.Arr(func(d *jx.Decoder) error { - var elem uint - v, err := d.UInt() - elem = uint(v) - if err != nil { - return err - } - request = append(request, elem) - return nil - }); err != nil { + request.Reset() + if err := request.Decode(d); err != nil { return err } if err := d.Skip(); err != io.EOF { @@ -3412,8 +3158,8 @@ func (s *Server) decodeTestRequestIntegerUintArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestRequestIntegerUintArrayArrayRequest(r *http.Request) ( - req [][]uint, +func (s *Server) decodeTestRequestIntegerUint64NullableArrayRequest(r *http.Request) ( + req []NilUint64, close func() error, rerr error, ) { @@ -3444,8 +3190,6 @@ func (s *Server) decodeTestRequestIntegerUintArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request [][]uint buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3456,21 +3200,13 @@ func (s *Server) decodeTestRequestIntegerUintArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request []NilUint64 if err := func() error { - request = make([][]uint, 0) + request = make([]NilUint64, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []uint - elem = make([]uint, 0) - if err := d.Arr(func(d *jx.Decoder) error { - var elemElem uint - v, err := d.UInt() - elemElem = uint(v) - if err != nil { - return err - } - elem = append(elem, elemElem) - return nil - }); err != nil { + var elem NilUint64 + if err := elem.Decode(d); err != nil { return err } request = append(request, elem) @@ -3490,36 +3226,14 @@ func (s *Server) decodeTestRequestIntegerUintArrayArrayRequest(r *http.Request) } return req, close, err } - if err := func() error { - var failures []validate.FieldError - for i, elem := range request { - if err := func() error { - if elem == nil { - return errors.New("nil is invalid value") - } - return nil - }(); err != nil { - failures = append(failures, validate.FieldError{ - Name: fmt.Sprintf("[%d]", i), - Error: err, - }) - } - } - if len(failures) > 0 { - return &validate.Error{Fields: failures} - } - return nil - }(); err != nil { - return req, close, errors.Wrap(err, "validate") - } return request, close, nil default: return req, close, validate.InvalidContentType(ct) } } -func (s *Server) decodeTestRequestIntegerUintNullableRequest(r *http.Request) ( - req OptNilUint, +func (s *Server) decodeTestRequestIntegerUint64NullableArrayArrayRequest(r *http.Request) ( + req [][]NilUint64, close func() error, rerr error, ) { @@ -3550,8 +3264,6 @@ func (s *Server) decodeTestRequestIntegerUintNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilUint buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3562,9 +3274,26 @@ func (s *Server) decodeTestRequestIntegerUintNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request [][]NilUint64 if err := func() error { - request.Reset() - if err := request.Decode(d); err != nil { + request = make([][]NilUint64, 0) + if err := d.Arr(func(d *jx.Decoder) error { + var elem []NilUint64 + elem = make([]NilUint64, 0) + if err := d.Arr(func(d *jx.Decoder) error { + var elemElem NilUint64 + if err := elemElem.Decode(d); err != nil { + return err + } + elem = append(elem, elemElem) + return nil + }); err != nil { + return err + } + request = append(request, elem) + return nil + }); err != nil { return err } if err := d.Skip(); err != io.EOF { @@ -3579,14 +3308,36 @@ func (s *Server) decodeTestRequestIntegerUintNullableRequest(r *http.Request) ( } return req, close, err } + if err := func() error { + var failures []validate.FieldError + for i, elem := range request { + if err := func() error { + if elem == nil { + return errors.New("nil is invalid value") + } + return nil + }(); err != nil { + failures = append(failures, validate.FieldError{ + Name: fmt.Sprintf("[%d]", i), + Error: err, + }) + } + } + if len(failures) > 0 { + return &validate.Error{Fields: failures} + } + return nil + }(); err != nil { + return req, close, errors.Wrap(err, "validate") + } return request, close, nil default: return req, close, validate.InvalidContentType(ct) } } -func (s *Server) decodeTestRequestIntegerUintNullableArrayRequest(r *http.Request) ( - req []NilUint, +func (s *Server) decodeTestRequestIntegerUintArrayRequest(r *http.Request) ( + req []uint, close func() error, rerr error, ) { @@ -3617,8 +3368,6 @@ func (s *Server) decodeTestRequestIntegerUintNullableArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, nil } - - var request []NilUint buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3629,11 +3378,15 @@ func (s *Server) decodeTestRequestIntegerUintNullableArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request []uint if err := func() error { - request = make([]NilUint, 0) + request = make([]uint, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilUint - if err := elem.Decode(d); err != nil { + var elem uint + v, err := d.UInt() + elem = uint(v) + if err != nil { return err } request = append(request, elem) @@ -3659,8 +3412,8 @@ func (s *Server) decodeTestRequestIntegerUintNullableArrayRequest(r *http.Reques } } -func (s *Server) decodeTestRequestIntegerUintNullableArrayArrayRequest(r *http.Request) ( - req [][]NilUint, +func (s *Server) decodeTestRequestIntegerUintArrayArrayRequest(r *http.Request) ( + req [][]uint, close func() error, rerr error, ) { @@ -3691,8 +3444,6 @@ func (s *Server) decodeTestRequestIntegerUintNullableArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilUint buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3703,14 +3454,18 @@ func (s *Server) decodeTestRequestIntegerUintNullableArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request [][]uint if err := func() error { - request = make([][]NilUint, 0) + request = make([][]uint, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilUint - elem = make([]NilUint, 0) + var elem []uint + elem = make([]uint, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilUint - if err := elemElem.Decode(d); err != nil { + var elemElem uint + v, err := d.UInt() + elemElem = uint(v) + if err != nil { return err } elem = append(elem, elemElem) @@ -3763,8 +3518,8 @@ func (s *Server) decodeTestRequestIntegerUintNullableArrayArrayRequest(r *http.R } } -func (s *Server) decodeTestRequestIntegerUnixRequest(r *http.Request) ( - req OptUnixSeconds, +func (s *Server) decodeTestRequestIntegerUintNullableRequest(r *http.Request) ( + req OptNilUint, close func() error, rerr error, ) { @@ -3795,8 +3550,6 @@ func (s *Server) decodeTestRequestIntegerUnixRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3807,9 +3560,11 @@ func (s *Server) decodeTestRequestIntegerUnixRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilUint if err := func() error { request.Reset() - if err := request.Decode(d, json.DecodeUnixSeconds); err != nil { + if err := request.Decode(d); err != nil { return err } if err := d.Skip(); err != io.EOF { @@ -3830,8 +3585,8 @@ func (s *Server) decodeTestRequestIntegerUnixRequest(r *http.Request) ( } } -func (s *Server) decodeTestRequestIntegerUnixArrayRequest(r *http.Request) ( - req []time.Time, +func (s *Server) decodeTestRequestIntegerUintNullableArrayRequest(r *http.Request) ( + req []NilUint, close func() error, rerr error, ) { @@ -3862,8 +3617,6 @@ func (s *Server) decodeTestRequestIntegerUnixArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3874,13 +3627,13 @@ func (s *Server) decodeTestRequestIntegerUnixArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []NilUint if err := func() error { - request = make([]time.Time, 0) + request = make([]NilUint, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem time.Time - v, err := json.DecodeUnixSeconds(d) - elem = v - if err != nil { + var elem NilUint + if err := elem.Decode(d); err != nil { return err } request = append(request, elem) @@ -3906,8 +3659,8 @@ func (s *Server) decodeTestRequestIntegerUnixArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestRequestIntegerUnixArrayArrayRequest(r *http.Request) ( - req [][]time.Time, +func (s *Server) decodeTestRequestIntegerUintNullableArrayArrayRequest(r *http.Request) ( + req [][]NilUint, close func() error, rerr error, ) { @@ -3938,8 +3691,6 @@ func (s *Server) decodeTestRequestIntegerUnixArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -3950,16 +3701,16 @@ func (s *Server) decodeTestRequestIntegerUnixArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request [][]NilUint if err := func() error { - request = make([][]time.Time, 0) + request = make([][]NilUint, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []time.Time - elem = make([]time.Time, 0) + var elem []NilUint + elem = make([]NilUint, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem time.Time - v, err := json.DecodeUnixSeconds(d) - elemElem = v - if err != nil { + var elemElem NilUint + if err := elemElem.Decode(d); err != nil { return err } elem = append(elem, elemElem) @@ -4012,8 +3763,8 @@ func (s *Server) decodeTestRequestIntegerUnixArrayArrayRequest(r *http.Request) } } -func (s *Server) decodeTestRequestIntegerUnixMicroRequest(r *http.Request) ( - req OptUnixMicro, +func (s *Server) decodeTestRequestIntegerUnixRequest(r *http.Request) ( + req OptUnixSeconds, close func() error, rerr error, ) { @@ -4044,8 +3795,6 @@ func (s *Server) decodeTestRequestIntegerUnixMicroRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptUnixMicro buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4056,9 +3805,11 @@ func (s *Server) decodeTestRequestIntegerUnixMicroRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptUnixSeconds if err := func() error { request.Reset() - if err := request.Decode(d, json.DecodeUnixMicro); err != nil { + if err := request.Decode(d, json.DecodeUnixSeconds); err != nil { return err } if err := d.Skip(); err != io.EOF { @@ -4079,7 +3830,7 @@ func (s *Server) decodeTestRequestIntegerUnixMicroRequest(r *http.Request) ( } } -func (s *Server) decodeTestRequestIntegerUnixMicroArrayRequest(r *http.Request) ( +func (s *Server) decodeTestRequestIntegerUnixArrayRequest(r *http.Request) ( req []time.Time, close func() error, rerr error, @@ -4111,8 +3862,6 @@ func (s *Server) decodeTestRequestIntegerUnixMicroArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4123,11 +3872,13 @@ func (s *Server) decodeTestRequestIntegerUnixMicroArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { var elem time.Time - v, err := json.DecodeUnixMicro(d) + v, err := json.DecodeUnixSeconds(d) elem = v if err != nil { return err @@ -4155,7 +3906,7 @@ func (s *Server) decodeTestRequestIntegerUnixMicroArrayRequest(r *http.Request) } } -func (s *Server) decodeTestRequestIntegerUnixMicroArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestRequestIntegerUnixArrayArrayRequest(r *http.Request) ( req [][]time.Time, close func() error, rerr error, @@ -4187,8 +3938,6 @@ func (s *Server) decodeTestRequestIntegerUnixMicroArrayArrayRequest(r *http.Requ if r.ContentLength == 0 { return req, close, nil } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4199,6 +3948,8 @@ func (s *Server) decodeTestRequestIntegerUnixMicroArrayArrayRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -4206,7 +3957,7 @@ func (s *Server) decodeTestRequestIntegerUnixMicroArrayArrayRequest(r *http.Requ elem = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { var elemElem time.Time - v, err := json.DecodeUnixMicro(d) + v, err := json.DecodeUnixSeconds(d) elemElem = v if err != nil { return err @@ -4261,8 +4012,8 @@ func (s *Server) decodeTestRequestIntegerUnixMicroArrayArrayRequest(r *http.Requ } } -func (s *Server) decodeTestRequestIntegerUnixMicroNullableRequest(r *http.Request) ( - req OptNilUnixMicro, +func (s *Server) decodeTestRequestIntegerUnixMicroRequest(r *http.Request) ( + req OptUnixMicro, close func() error, rerr error, ) { @@ -4293,8 +4044,6 @@ func (s *Server) decodeTestRequestIntegerUnixMicroNullableRequest(r *http.Reques if r.ContentLength == 0 { return req, close, nil } - - var request OptNilUnixMicro buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4305,6 +4054,8 @@ func (s *Server) decodeTestRequestIntegerUnixMicroNullableRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request OptUnixMicro if err := func() error { request.Reset() if err := request.Decode(d, json.DecodeUnixMicro); err != nil { @@ -4328,8 +4079,8 @@ func (s *Server) decodeTestRequestIntegerUnixMicroNullableRequest(r *http.Reques } } -func (s *Server) decodeTestRequestIntegerUnixMicroNullableArrayRequest(r *http.Request) ( - req []NilUnixMicro, +func (s *Server) decodeTestRequestIntegerUnixMicroArrayRequest(r *http.Request) ( + req []time.Time, close func() error, rerr error, ) { @@ -4360,8 +4111,6 @@ func (s *Server) decodeTestRequestIntegerUnixMicroNullableArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, nil } - - var request []NilUnixMicro buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4372,11 +4121,15 @@ func (s *Server) decodeTestRequestIntegerUnixMicroNullableArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { - request = make([]NilUnixMicro, 0) + request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilUnixMicro - if err := elem.Decode(d, json.DecodeUnixMicro); err != nil { + var elem time.Time + v, err := json.DecodeUnixMicro(d) + elem = v + if err != nil { return err } request = append(request, elem) @@ -4402,8 +4155,8 @@ func (s *Server) decodeTestRequestIntegerUnixMicroNullableArrayRequest(r *http.R } } -func (s *Server) decodeTestRequestIntegerUnixMicroNullableArrayArrayRequest(r *http.Request) ( - req [][]NilUnixMicro, +func (s *Server) decodeTestRequestIntegerUnixMicroArrayArrayRequest(r *http.Request) ( + req [][]time.Time, close func() error, rerr error, ) { @@ -4434,8 +4187,6 @@ func (s *Server) decodeTestRequestIntegerUnixMicroNullableArrayArrayRequest(r *h if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilUnixMicro buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4446,14 +4197,18 @@ func (s *Server) decodeTestRequestIntegerUnixMicroNullableArrayArrayRequest(r *h } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { - request = make([][]NilUnixMicro, 0) + request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilUnixMicro - elem = make([]NilUnixMicro, 0) + var elem []time.Time + elem = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilUnixMicro - if err := elemElem.Decode(d, json.DecodeUnixMicro); err != nil { + var elemElem time.Time + v, err := json.DecodeUnixMicro(d) + elemElem = v + if err != nil { return err } elem = append(elem, elemElem) @@ -4506,8 +4261,8 @@ func (s *Server) decodeTestRequestIntegerUnixMicroNullableArrayArrayRequest(r *h } } -func (s *Server) decodeTestRequestIntegerUnixMilliRequest(r *http.Request) ( - req OptUnixMilli, +func (s *Server) decodeTestRequestIntegerUnixMicroNullableRequest(r *http.Request) ( + req OptNilUnixMicro, close func() error, rerr error, ) { @@ -4538,8 +4293,6 @@ func (s *Server) decodeTestRequestIntegerUnixMilliRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptUnixMilli buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4550,9 +4303,11 @@ func (s *Server) decodeTestRequestIntegerUnixMilliRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilUnixMicro if err := func() error { request.Reset() - if err := request.Decode(d, json.DecodeUnixMilli); err != nil { + if err := request.Decode(d, json.DecodeUnixMicro); err != nil { return err } if err := d.Skip(); err != io.EOF { @@ -4573,8 +4328,8 @@ func (s *Server) decodeTestRequestIntegerUnixMilliRequest(r *http.Request) ( } } -func (s *Server) decodeTestRequestIntegerUnixMilliArrayRequest(r *http.Request) ( - req []time.Time, +func (s *Server) decodeTestRequestIntegerUnixMicroNullableArrayRequest(r *http.Request) ( + req []NilUnixMicro, close func() error, rerr error, ) { @@ -4605,8 +4360,6 @@ func (s *Server) decodeTestRequestIntegerUnixMilliArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4617,13 +4370,13 @@ func (s *Server) decodeTestRequestIntegerUnixMilliArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request []NilUnixMicro if err := func() error { - request = make([]time.Time, 0) + request = make([]NilUnixMicro, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem time.Time - v, err := json.DecodeUnixMilli(d) - elem = v - if err != nil { + var elem NilUnixMicro + if err := elem.Decode(d, json.DecodeUnixMicro); err != nil { return err } request = append(request, elem) @@ -4649,8 +4402,8 @@ func (s *Server) decodeTestRequestIntegerUnixMilliArrayRequest(r *http.Request) } } -func (s *Server) decodeTestRequestIntegerUnixMilliArrayArrayRequest(r *http.Request) ( - req [][]time.Time, +func (s *Server) decodeTestRequestIntegerUnixMicroNullableArrayArrayRequest(r *http.Request) ( + req [][]NilUnixMicro, close func() error, rerr error, ) { @@ -4681,8 +4434,6 @@ func (s *Server) decodeTestRequestIntegerUnixMilliArrayArrayRequest(r *http.Requ if r.ContentLength == 0 { return req, close, nil } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4693,16 +4444,16 @@ func (s *Server) decodeTestRequestIntegerUnixMilliArrayArrayRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request [][]NilUnixMicro if err := func() error { - request = make([][]time.Time, 0) + request = make([][]NilUnixMicro, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []time.Time - elem = make([]time.Time, 0) + var elem []NilUnixMicro + elem = make([]NilUnixMicro, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem time.Time - v, err := json.DecodeUnixMilli(d) - elemElem = v - if err != nil { + var elemElem NilUnixMicro + if err := elemElem.Decode(d, json.DecodeUnixMicro); err != nil { return err } elem = append(elem, elemElem) @@ -4755,8 +4506,8 @@ func (s *Server) decodeTestRequestIntegerUnixMilliArrayArrayRequest(r *http.Requ } } -func (s *Server) decodeTestRequestIntegerUnixMilliNullableRequest(r *http.Request) ( - req OptNilUnixMilli, +func (s *Server) decodeTestRequestIntegerUnixMilliRequest(r *http.Request) ( + req OptUnixMilli, close func() error, rerr error, ) { @@ -4787,8 +4538,6 @@ func (s *Server) decodeTestRequestIntegerUnixMilliNullableRequest(r *http.Reques if r.ContentLength == 0 { return req, close, nil } - - var request OptNilUnixMilli buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4799,6 +4548,8 @@ func (s *Server) decodeTestRequestIntegerUnixMilliNullableRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request OptUnixMilli if err := func() error { request.Reset() if err := request.Decode(d, json.DecodeUnixMilli); err != nil { @@ -4822,8 +4573,8 @@ func (s *Server) decodeTestRequestIntegerUnixMilliNullableRequest(r *http.Reques } } -func (s *Server) decodeTestRequestIntegerUnixMilliNullableArrayRequest(r *http.Request) ( - req []NilUnixMilli, +func (s *Server) decodeTestRequestIntegerUnixMilliArrayRequest(r *http.Request) ( + req []time.Time, close func() error, rerr error, ) { @@ -4854,8 +4605,6 @@ func (s *Server) decodeTestRequestIntegerUnixMilliNullableArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, nil } - - var request []NilUnixMilli buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4866,11 +4615,15 @@ func (s *Server) decodeTestRequestIntegerUnixMilliNullableArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { - request = make([]NilUnixMilli, 0) + request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilUnixMilli - if err := elem.Decode(d, json.DecodeUnixMilli); err != nil { + var elem time.Time + v, err := json.DecodeUnixMilli(d) + elem = v + if err != nil { return err } request = append(request, elem) @@ -4896,8 +4649,8 @@ func (s *Server) decodeTestRequestIntegerUnixMilliNullableArrayRequest(r *http.R } } -func (s *Server) decodeTestRequestIntegerUnixMilliNullableArrayArrayRequest(r *http.Request) ( - req [][]NilUnixMilli, +func (s *Server) decodeTestRequestIntegerUnixMilliArrayArrayRequest(r *http.Request) ( + req [][]time.Time, close func() error, rerr error, ) { @@ -4928,8 +4681,6 @@ func (s *Server) decodeTestRequestIntegerUnixMilliNullableArrayArrayRequest(r *h if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilUnixMilli buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -4940,14 +4691,18 @@ func (s *Server) decodeTestRequestIntegerUnixMilliNullableArrayArrayRequest(r *h } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { - request = make([][]NilUnixMilli, 0) + request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilUnixMilli - elem = make([]NilUnixMilli, 0) + var elem []time.Time + elem = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilUnixMilli - if err := elemElem.Decode(d, json.DecodeUnixMilli); err != nil { + var elemElem time.Time + v, err := json.DecodeUnixMilli(d) + elemElem = v + if err != nil { return err } elem = append(elem, elemElem) @@ -5000,8 +4755,8 @@ func (s *Server) decodeTestRequestIntegerUnixMilliNullableArrayArrayRequest(r *h } } -func (s *Server) decodeTestRequestIntegerUnixNanoRequest(r *http.Request) ( - req OptUnixNano, +func (s *Server) decodeTestRequestIntegerUnixMilliNullableRequest(r *http.Request) ( + req OptNilUnixMilli, close func() error, rerr error, ) { @@ -5032,8 +4787,6 @@ func (s *Server) decodeTestRequestIntegerUnixNanoRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptUnixNano buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5044,9 +4797,11 @@ func (s *Server) decodeTestRequestIntegerUnixNanoRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilUnixMilli if err := func() error { request.Reset() - if err := request.Decode(d, json.DecodeUnixNano); err != nil { + if err := request.Decode(d, json.DecodeUnixMilli); err != nil { return err } if err := d.Skip(); err != io.EOF { @@ -5067,8 +4822,8 @@ func (s *Server) decodeTestRequestIntegerUnixNanoRequest(r *http.Request) ( } } -func (s *Server) decodeTestRequestIntegerUnixNanoArrayRequest(r *http.Request) ( - req []time.Time, +func (s *Server) decodeTestRequestIntegerUnixMilliNullableArrayRequest(r *http.Request) ( + req []NilUnixMilli, close func() error, rerr error, ) { @@ -5099,8 +4854,6 @@ func (s *Server) decodeTestRequestIntegerUnixNanoArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5111,13 +4864,13 @@ func (s *Server) decodeTestRequestIntegerUnixNanoArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []NilUnixMilli if err := func() error { - request = make([]time.Time, 0) + request = make([]NilUnixMilli, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem time.Time - v, err := json.DecodeUnixNano(d) - elem = v - if err != nil { + var elem NilUnixMilli + if err := elem.Decode(d, json.DecodeUnixMilli); err != nil { return err } request = append(request, elem) @@ -5143,8 +4896,8 @@ func (s *Server) decodeTestRequestIntegerUnixNanoArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestRequestIntegerUnixNanoArrayArrayRequest(r *http.Request) ( - req [][]time.Time, +func (s *Server) decodeTestRequestIntegerUnixMilliNullableArrayArrayRequest(r *http.Request) ( + req [][]NilUnixMilli, close func() error, rerr error, ) { @@ -5175,8 +4928,6 @@ func (s *Server) decodeTestRequestIntegerUnixNanoArrayArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, nil } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5187,16 +4938,16 @@ func (s *Server) decodeTestRequestIntegerUnixNanoArrayArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request [][]NilUnixMilli if err := func() error { - request = make([][]time.Time, 0) + request = make([][]NilUnixMilli, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []time.Time - elem = make([]time.Time, 0) + var elem []NilUnixMilli + elem = make([]NilUnixMilli, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem time.Time - v, err := json.DecodeUnixNano(d) - elemElem = v - if err != nil { + var elemElem NilUnixMilli + if err := elemElem.Decode(d, json.DecodeUnixMilli); err != nil { return err } elem = append(elem, elemElem) @@ -5249,8 +5000,8 @@ func (s *Server) decodeTestRequestIntegerUnixNanoArrayArrayRequest(r *http.Reque } } -func (s *Server) decodeTestRequestIntegerUnixNanoNullableRequest(r *http.Request) ( - req OptNilUnixNano, +func (s *Server) decodeTestRequestIntegerUnixNanoRequest(r *http.Request) ( + req OptUnixNano, close func() error, rerr error, ) { @@ -5281,8 +5032,6 @@ func (s *Server) decodeTestRequestIntegerUnixNanoNullableRequest(r *http.Request if r.ContentLength == 0 { return req, close, nil } - - var request OptNilUnixNano buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5293,6 +5042,8 @@ func (s *Server) decodeTestRequestIntegerUnixNanoNullableRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request OptUnixNano if err := func() error { request.Reset() if err := request.Decode(d, json.DecodeUnixNano); err != nil { @@ -5316,8 +5067,8 @@ func (s *Server) decodeTestRequestIntegerUnixNanoNullableRequest(r *http.Request } } -func (s *Server) decodeTestRequestIntegerUnixNanoNullableArrayRequest(r *http.Request) ( - req []NilUnixNano, +func (s *Server) decodeTestRequestIntegerUnixNanoArrayRequest(r *http.Request) ( + req []time.Time, close func() error, rerr error, ) { @@ -5348,8 +5099,82 @@ func (s *Server) decodeTestRequestIntegerUnixNanoNullableArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, nil } + buf, err := io.ReadAll(r.Body) + if err != nil { + return req, close, err + } - var request []NilUnixNano + if len(buf) == 0 { + return req, close, nil + } + + d := jx.DecodeBytes(buf) + + var request []time.Time + if err := func() error { + request = make([]time.Time, 0) + if err := d.Arr(func(d *jx.Decoder) error { + var elem time.Time + v, err := json.DecodeUnixNano(d) + elem = v + if err != nil { + return err + } + request = append(request, elem) + return nil + }); err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return req, close, err + } + return request, close, nil + default: + return req, close, validate.InvalidContentType(ct) + } +} + +func (s *Server) decodeTestRequestIntegerUnixNanoArrayArrayRequest(r *http.Request) ( + req [][]time.Time, + close func() error, + rerr error, +) { + var closers []func() error + close = func() error { + var merr error + // Close in reverse order, to match defer behavior. + for i := len(closers) - 1; i >= 0; i-- { + c := closers[i] + merr = multierr.Append(merr, c()) + } + return merr + } + defer func() { + if rerr != nil { + rerr = multierr.Append(rerr, close()) + } + }() + if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { + return 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 ct == "application/json": + if r.ContentLength == 0 { + return req, close, nil + } buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5360,11 +5185,23 @@ func (s *Server) decodeTestRequestIntegerUnixNanoNullableArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { - request = make([]NilUnixNano, 0) + request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilUnixNano - if err := elem.Decode(d, json.DecodeUnixNano); err != nil { + var elem []time.Time + elem = make([]time.Time, 0) + if err := d.Arr(func(d *jx.Decoder) error { + var elemElem time.Time + v, err := json.DecodeUnixNano(d) + elemElem = v + if err != nil { + return err + } + elem = append(elem, elemElem) + return nil + }); err != nil { return err } request = append(request, elem) @@ -5384,14 +5221,36 @@ func (s *Server) decodeTestRequestIntegerUnixNanoNullableArrayRequest(r *http.Re } return req, close, err } + if err := func() error { + var failures []validate.FieldError + for i, elem := range request { + if err := func() error { + if elem == nil { + return errors.New("nil is invalid value") + } + return nil + }(); err != nil { + failures = append(failures, validate.FieldError{ + Name: fmt.Sprintf("[%d]", i), + Error: err, + }) + } + } + if len(failures) > 0 { + return &validate.Error{Fields: failures} + } + return nil + }(); err != nil { + return req, close, errors.Wrap(err, "validate") + } return request, close, nil default: return req, close, validate.InvalidContentType(ct) } } -func (s *Server) decodeTestRequestIntegerUnixNanoNullableArrayArrayRequest(r *http.Request) ( - req [][]NilUnixNano, +func (s *Server) decodeTestRequestIntegerUnixNanoNullableRequest(r *http.Request) ( + req OptNilUnixNano, close func() error, rerr error, ) { @@ -5422,8 +5281,73 @@ func (s *Server) decodeTestRequestIntegerUnixNanoNullableArrayArrayRequest(r *ht if r.ContentLength == 0 { return req, close, nil } + buf, err := io.ReadAll(r.Body) + if err != nil { + return req, close, err + } - var request [][]NilUnixNano + if len(buf) == 0 { + return req, close, nil + } + + d := jx.DecodeBytes(buf) + + var request OptNilUnixNano + if err := func() error { + request.Reset() + if err := request.Decode(d, json.DecodeUnixNano); err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return req, close, err + } + return request, close, nil + default: + return req, close, validate.InvalidContentType(ct) + } +} + +func (s *Server) decodeTestRequestIntegerUnixNanoNullableArrayRequest(r *http.Request) ( + req []NilUnixNano, + close func() error, + rerr error, +) { + var closers []func() error + close = func() error { + var merr error + // Close in reverse order, to match defer behavior. + for i := len(closers) - 1; i >= 0; i-- { + c := closers[i] + merr = multierr.Append(merr, c()) + } + return merr + } + defer func() { + if rerr != nil { + rerr = multierr.Append(rerr, close()) + } + }() + if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { + return 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 ct == "application/json": + if r.ContentLength == 0 { + return req, close, nil + } buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5434,6 +5358,82 @@ func (s *Server) decodeTestRequestIntegerUnixNanoNullableArrayArrayRequest(r *ht } d := jx.DecodeBytes(buf) + + var request []NilUnixNano + if err := func() error { + request = make([]NilUnixNano, 0) + if err := d.Arr(func(d *jx.Decoder) error { + var elem NilUnixNano + if err := elem.Decode(d, json.DecodeUnixNano); err != nil { + return err + } + request = append(request, elem) + return nil + }); err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return req, close, err + } + return request, close, nil + default: + return req, close, validate.InvalidContentType(ct) + } +} + +func (s *Server) decodeTestRequestIntegerUnixNanoNullableArrayArrayRequest(r *http.Request) ( + req [][]NilUnixNano, + close func() error, + rerr error, +) { + var closers []func() error + close = func() error { + var merr error + // Close in reverse order, to match defer behavior. + for i := len(closers) - 1; i >= 0; i-- { + c := closers[i] + merr = multierr.Append(merr, c()) + } + return merr + } + defer func() { + if rerr != nil { + rerr = multierr.Append(rerr, close()) + } + }() + if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { + return 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 ct == "application/json": + if r.ContentLength == 0 { + return req, close, nil + } + buf, err := io.ReadAll(r.Body) + if err != nil { + return req, close, err + } + + if len(buf) == 0 { + return req, close, nil + } + + d := jx.DecodeBytes(buf) + + var request [][]NilUnixNano if err := func() error { request = make([][]NilUnixNano, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -5526,8 +5526,6 @@ func (s *Server) decodeTestRequestIntegerUnixNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5538,6 +5536,8 @@ func (s *Server) decodeTestRequestIntegerUnixNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilUnixSeconds if err := func() error { request.Reset() if err := request.Decode(d, json.DecodeUnixSeconds); err != nil { @@ -5593,8 +5593,6 @@ func (s *Server) decodeTestRequestIntegerUnixNullableArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, nil } - - var request []NilUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5605,6 +5603,8 @@ func (s *Server) decodeTestRequestIntegerUnixNullableArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request []NilUnixSeconds if err := func() error { request = make([]NilUnixSeconds, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -5667,8 +5667,6 @@ func (s *Server) decodeTestRequestIntegerUnixNullableArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5679,6 +5677,8 @@ func (s *Server) decodeTestRequestIntegerUnixNullableArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request [][]NilUnixSeconds if err := func() error { request = make([][]NilUnixSeconds, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -5771,8 +5771,6 @@ func (s *Server) decodeTestRequestIntegerUnixSecondsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5783,6 +5781,8 @@ func (s *Server) decodeTestRequestIntegerUnixSecondsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptUnixSeconds if err := func() error { request.Reset() if err := request.Decode(d, json.DecodeUnixSeconds); err != nil { @@ -5838,8 +5838,6 @@ func (s *Server) decodeTestRequestIntegerUnixSecondsArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, nil } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5850,6 +5848,8 @@ func (s *Server) decodeTestRequestIntegerUnixSecondsArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -5914,8 +5914,6 @@ func (s *Server) decodeTestRequestIntegerUnixSecondsArrayArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, nil } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -5926,6 +5924,8 @@ func (s *Server) decodeTestRequestIntegerUnixSecondsArrayArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -6020,8 +6020,6 @@ func (s *Server) decodeTestRequestIntegerUnixSecondsNullableRequest(r *http.Requ if r.ContentLength == 0 { return req, close, nil } - - var request OptNilUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6032,6 +6030,8 @@ func (s *Server) decodeTestRequestIntegerUnixSecondsNullableRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request OptNilUnixSeconds if err := func() error { request.Reset() if err := request.Decode(d, json.DecodeUnixSeconds); err != nil { @@ -6087,8 +6087,6 @@ func (s *Server) decodeTestRequestIntegerUnixSecondsNullableArrayRequest(r *http if r.ContentLength == 0 { return req, close, nil } - - var request []NilUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6099,6 +6097,8 @@ func (s *Server) decodeTestRequestIntegerUnixSecondsNullableArrayRequest(r *http } d := jx.DecodeBytes(buf) + + var request []NilUnixSeconds if err := func() error { request = make([]NilUnixSeconds, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -6161,8 +6161,6 @@ func (s *Server) decodeTestRequestIntegerUnixSecondsNullableArrayArrayRequest(r if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6173,6 +6171,8 @@ func (s *Server) decodeTestRequestIntegerUnixSecondsNullableArrayArrayRequest(r } d := jx.DecodeBytes(buf) + + var request [][]NilUnixSeconds if err := func() error { request = make([][]NilUnixSeconds, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -6265,8 +6265,6 @@ func (s *Server) decodeTestRequestNullRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNull buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6277,6 +6275,8 @@ func (s *Server) decodeTestRequestNullRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNull if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -6332,8 +6332,6 @@ func (s *Server) decodeTestRequestNullArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []struct{} buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6344,6 +6342,8 @@ func (s *Server) decodeTestRequestNullArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []struct{} if err := func() error { request = make([]struct{}, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -6406,8 +6406,6 @@ func (s *Server) decodeTestRequestNullArrayArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request [][]struct{} buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6418,6 +6416,8 @@ func (s *Server) decodeTestRequestNullArrayArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request [][]struct{} if err := func() error { request = make([][]struct{}, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -6510,8 +6510,6 @@ func (s *Server) decodeTestRequestNullNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNull buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6522,6 +6520,8 @@ func (s *Server) decodeTestRequestNullNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNull if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -6577,8 +6577,6 @@ func (s *Server) decodeTestRequestNullNullableArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []struct{} buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6589,6 +6587,8 @@ func (s *Server) decodeTestRequestNullNullableArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []struct{} if err := func() error { request = make([]struct{}, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -6651,8 +6651,6 @@ func (s *Server) decodeTestRequestNullNullableArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request [][]struct{} buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6663,6 +6661,8 @@ func (s *Server) decodeTestRequestNullNullableArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request [][]struct{} if err := func() error { request = make([][]struct{}, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -6755,8 +6755,6 @@ func (s *Server) decodeTestRequestNumberRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptFloat64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6767,6 +6765,8 @@ func (s *Server) decodeTestRequestNumberRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptFloat64 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -6837,8 +6837,6 @@ func (s *Server) decodeTestRequestNumberArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []float64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6849,6 +6847,8 @@ func (s *Server) decodeTestRequestNumberArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []float64 if err := func() error { request = make([]float64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -6935,8 +6935,6 @@ func (s *Server) decodeTestRequestNumberArrayArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request [][]float64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -6947,6 +6945,8 @@ func (s *Server) decodeTestRequestNumberArrayArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request [][]float64 if err := func() error { request = make([][]float64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -7058,8 +7058,6 @@ func (s *Server) decodeTestRequestNumberDoubleRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptFloat64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7070,6 +7068,8 @@ func (s *Server) decodeTestRequestNumberDoubleRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptFloat64 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -7140,8 +7140,6 @@ func (s *Server) decodeTestRequestNumberDoubleArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []float64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7152,6 +7150,8 @@ func (s *Server) decodeTestRequestNumberDoubleArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []float64 if err := func() error { request = make([]float64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -7238,8 +7238,6 @@ func (s *Server) decodeTestRequestNumberDoubleArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request [][]float64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7250,6 +7248,8 @@ func (s *Server) decodeTestRequestNumberDoubleArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request [][]float64 if err := func() error { request = make([][]float64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -7361,8 +7361,6 @@ func (s *Server) decodeTestRequestNumberDoubleNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilFloat64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7373,6 +7371,8 @@ func (s *Server) decodeTestRequestNumberDoubleNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilFloat64 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -7443,8 +7443,6 @@ func (s *Server) decodeTestRequestNumberDoubleNullableArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, nil } - - var request []NilFloat64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7455,6 +7453,8 @@ func (s *Server) decodeTestRequestNumberDoubleNullableArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request []NilFloat64 if err := func() error { request = make([]NilFloat64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -7539,8 +7539,6 @@ func (s *Server) decodeTestRequestNumberDoubleNullableArrayArrayRequest(r *http. if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilFloat64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7551,6 +7549,8 @@ func (s *Server) decodeTestRequestNumberDoubleNullableArrayArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request [][]NilFloat64 if err := func() error { request = make([][]NilFloat64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -7660,8 +7660,6 @@ func (s *Server) decodeTestRequestNumberFloatRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptFloat32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7672,6 +7670,8 @@ func (s *Server) decodeTestRequestNumberFloatRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptFloat32 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -7742,8 +7742,6 @@ func (s *Server) decodeTestRequestNumberFloatArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []float32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7754,6 +7752,8 @@ func (s *Server) decodeTestRequestNumberFloatArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []float32 if err := func() error { request = make([]float32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -7840,8 +7840,6 @@ func (s *Server) decodeTestRequestNumberFloatArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request [][]float32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7852,6 +7850,8 @@ func (s *Server) decodeTestRequestNumberFloatArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request [][]float32 if err := func() error { request = make([][]float32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -7963,8 +7963,6 @@ func (s *Server) decodeTestRequestNumberFloatNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilFloat32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -7975,6 +7973,8 @@ func (s *Server) decodeTestRequestNumberFloatNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilFloat32 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -8045,8 +8045,6 @@ func (s *Server) decodeTestRequestNumberFloatNullableArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, nil } - - var request []NilFloat32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8057,6 +8055,8 @@ func (s *Server) decodeTestRequestNumberFloatNullableArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request []NilFloat32 if err := func() error { request = make([]NilFloat32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -8141,8 +8141,6 @@ func (s *Server) decodeTestRequestNumberFloatNullableArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilFloat32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8153,6 +8151,8 @@ func (s *Server) decodeTestRequestNumberFloatNullableArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request [][]NilFloat32 if err := func() error { request = make([][]NilFloat32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -8262,8 +8262,6 @@ func (s *Server) decodeTestRequestNumberInt32Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptInt32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8274,6 +8272,8 @@ func (s *Server) decodeTestRequestNumberInt32Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptInt32 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -8329,8 +8329,6 @@ func (s *Server) decodeTestRequestNumberInt32ArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []int32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8341,6 +8339,8 @@ func (s *Server) decodeTestRequestNumberInt32ArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []int32 if err := func() error { request = make([]int32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -8405,8 +8405,6 @@ func (s *Server) decodeTestRequestNumberInt32ArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request [][]int32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8417,6 +8415,8 @@ func (s *Server) decodeTestRequestNumberInt32ArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request [][]int32 if err := func() error { request = make([][]int32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -8511,8 +8511,6 @@ func (s *Server) decodeTestRequestNumberInt32NullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilInt32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8523,6 +8521,8 @@ func (s *Server) decodeTestRequestNumberInt32NullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilInt32 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -8578,8 +8578,6 @@ func (s *Server) decodeTestRequestNumberInt32NullableArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, nil } - - var request []NilInt32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8590,6 +8588,8 @@ func (s *Server) decodeTestRequestNumberInt32NullableArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request []NilInt32 if err := func() error { request = make([]NilInt32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -8652,8 +8652,6 @@ func (s *Server) decodeTestRequestNumberInt32NullableArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilInt32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8664,6 +8662,8 @@ func (s *Server) decodeTestRequestNumberInt32NullableArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request [][]NilInt32 if err := func() error { request = make([][]NilInt32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -8756,8 +8756,6 @@ func (s *Server) decodeTestRequestNumberInt64Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptInt64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8768,6 +8766,8 @@ func (s *Server) decodeTestRequestNumberInt64Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptInt64 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -8823,8 +8823,6 @@ func (s *Server) decodeTestRequestNumberInt64ArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []int64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8835,6 +8833,8 @@ func (s *Server) decodeTestRequestNumberInt64ArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []int64 if err := func() error { request = make([]int64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -8899,8 +8899,6 @@ func (s *Server) decodeTestRequestNumberInt64ArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request [][]int64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -8911,6 +8909,8 @@ func (s *Server) decodeTestRequestNumberInt64ArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request [][]int64 if err := func() error { request = make([][]int64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -9005,8 +9005,6 @@ func (s *Server) decodeTestRequestNumberInt64NullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilInt64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9017,6 +9015,8 @@ func (s *Server) decodeTestRequestNumberInt64NullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilInt64 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -9072,8 +9072,6 @@ func (s *Server) decodeTestRequestNumberInt64NullableArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, nil } - - var request []NilInt64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9084,6 +9082,8 @@ func (s *Server) decodeTestRequestNumberInt64NullableArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request []NilInt64 if err := func() error { request = make([]NilInt64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -9146,8 +9146,6 @@ func (s *Server) decodeTestRequestNumberInt64NullableArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilInt64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9158,6 +9156,8 @@ func (s *Server) decodeTestRequestNumberInt64NullableArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request [][]NilInt64 if err := func() error { request = make([][]NilInt64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -9250,8 +9250,6 @@ func (s *Server) decodeTestRequestNumberNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilFloat64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9262,6 +9260,8 @@ func (s *Server) decodeTestRequestNumberNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilFloat64 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -9332,8 +9332,6 @@ func (s *Server) decodeTestRequestNumberNullableArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []NilFloat64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9344,6 +9342,8 @@ func (s *Server) decodeTestRequestNumberNullableArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []NilFloat64 if err := func() error { request = make([]NilFloat64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -9428,8 +9428,6 @@ func (s *Server) decodeTestRequestNumberNullableArrayArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilFloat64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9440,6 +9438,8 @@ func (s *Server) decodeTestRequestNumberNullableArrayArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request [][]NilFloat64 if err := func() error { request = make([][]NilFloat64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -9546,8 +9546,6 @@ func (s *Server) decodeTestRequestRequiredAnyRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request jx.Raw buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9558,6 +9556,8 @@ func (s *Server) decodeTestRequestRequiredAnyRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request jx.Raw if err := func() error { v, err := d.RawAppend(nil) request = jx.Raw(v) @@ -9611,8 +9611,6 @@ func (s *Server) decodeTestRequestRequiredBooleanRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request bool buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9623,6 +9621,8 @@ func (s *Server) decodeTestRequestRequiredBooleanRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request bool if err := func() error { v, err := d.Bool() request = bool(v) @@ -9676,8 +9676,6 @@ func (s *Server) decodeTestRequestRequiredBooleanArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []bool buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9688,6 +9686,8 @@ func (s *Server) decodeTestRequestRequiredBooleanArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []bool if err := func() error { request = make([]bool, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -9757,8 +9757,6 @@ func (s *Server) decodeTestRequestRequiredBooleanArrayArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]bool buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9769,6 +9767,8 @@ func (s *Server) decodeTestRequestRequiredBooleanArrayArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request [][]bool if err := func() error { request = make([][]bool, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -9863,8 +9863,6 @@ func (s *Server) decodeTestRequestRequiredBooleanNullableRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilBool buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9875,6 +9873,8 @@ func (s *Server) decodeTestRequestRequiredBooleanNullableRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request NilBool if err := func() error { if err := request.Decode(d); err != nil { return err @@ -9926,8 +9926,6 @@ func (s *Server) decodeTestRequestRequiredBooleanNullableArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilBool buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -9938,6 +9936,8 @@ func (s *Server) decodeTestRequestRequiredBooleanNullableArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request []NilBool if err := func() error { request = make([]NilBool, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -10005,8 +10005,6 @@ func (s *Server) decodeTestRequestRequiredBooleanNullableArrayArrayRequest(r *ht if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilBool buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10017,6 +10015,8 @@ func (s *Server) decodeTestRequestRequiredBooleanNullableArrayArrayRequest(r *ht } d := jx.DecodeBytes(buf) + + var request [][]NilBool if err := func() error { request = make([][]NilBool, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -10109,8 +10109,6 @@ func (s *Server) decodeTestRequestRequiredEmptyStructRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request TestRequestRequiredEmptyStructReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10121,6 +10119,8 @@ func (s *Server) decodeTestRequestRequiredEmptyStructRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request TestRequestRequiredEmptyStructReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -10172,8 +10172,6 @@ func (s *Server) decodeTestRequestRequiredFormatTestRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request TestRequestRequiredFormatTestReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10184,6 +10182,8 @@ func (s *Server) decodeTestRequestRequiredFormatTestRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request TestRequestRequiredFormatTestReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -10243,8 +10243,6 @@ func (s *Server) decodeTestRequestRequiredIntegerRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request int buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10255,6 +10253,8 @@ func (s *Server) decodeTestRequestRequiredIntegerRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request int if err := func() error { v, err := d.Int() request = int(v) @@ -10308,8 +10308,6 @@ func (s *Server) decodeTestRequestRequiredIntegerArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []int buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10320,6 +10318,8 @@ func (s *Server) decodeTestRequestRequiredIntegerArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []int if err := func() error { request = make([]int, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -10389,8 +10389,6 @@ func (s *Server) decodeTestRequestRequiredIntegerArrayArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]int buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10401,6 +10399,8 @@ func (s *Server) decodeTestRequestRequiredIntegerArrayArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request [][]int if err := func() error { request = make([][]int, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -10495,8 +10495,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt32Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request int32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10507,6 +10505,8 @@ func (s *Server) decodeTestRequestRequiredIntegerInt32Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request int32 if err := func() error { v, err := d.Int32() request = int32(v) @@ -10560,8 +10560,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt32ArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []int32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10572,6 +10570,8 @@ func (s *Server) decodeTestRequestRequiredIntegerInt32ArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request []int32 if err := func() error { request = make([]int32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -10641,8 +10641,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt32ArrayArrayRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]int32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10653,6 +10651,8 @@ func (s *Server) decodeTestRequestRequiredIntegerInt32ArrayArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request [][]int32 if err := func() error { request = make([][]int32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -10747,8 +10747,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt32NullableRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilInt32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10759,6 +10757,8 @@ func (s *Server) decodeTestRequestRequiredIntegerInt32NullableRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request NilInt32 if err := func() error { if err := request.Decode(d); err != nil { return err @@ -10810,8 +10810,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt32NullableArrayRequest(r *ht if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilInt32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10822,6 +10820,8 @@ func (s *Server) decodeTestRequestRequiredIntegerInt32NullableArrayRequest(r *ht } d := jx.DecodeBytes(buf) + + var request []NilInt32 if err := func() error { request = make([]NilInt32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -10889,8 +10889,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt32NullableArrayArrayRequest( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilInt32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -10901,6 +10899,8 @@ func (s *Server) decodeTestRequestRequiredIntegerInt32NullableArrayArrayRequest( } d := jx.DecodeBytes(buf) + + var request [][]NilInt32 if err := func() error { request = make([][]NilInt32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -10993,8 +10993,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt64Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request int64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11005,6 +11003,8 @@ func (s *Server) decodeTestRequestRequiredIntegerInt64Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request int64 if err := func() error { v, err := d.Int64() request = int64(v) @@ -11058,8 +11058,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt64ArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []int64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11070,6 +11068,8 @@ func (s *Server) decodeTestRequestRequiredIntegerInt64ArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request []int64 if err := func() error { request = make([]int64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -11139,8 +11139,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt64ArrayArrayRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]int64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11151,6 +11149,8 @@ func (s *Server) decodeTestRequestRequiredIntegerInt64ArrayArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request [][]int64 if err := func() error { request = make([][]int64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -11245,8 +11245,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt64NullableRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilInt64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11257,6 +11255,8 @@ func (s *Server) decodeTestRequestRequiredIntegerInt64NullableRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request NilInt64 if err := func() error { if err := request.Decode(d); err != nil { return err @@ -11308,8 +11308,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt64NullableArrayRequest(r *ht if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilInt64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11320,6 +11318,8 @@ func (s *Server) decodeTestRequestRequiredIntegerInt64NullableArrayRequest(r *ht } d := jx.DecodeBytes(buf) + + var request []NilInt64 if err := func() error { request = make([]NilInt64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -11387,8 +11387,6 @@ func (s *Server) decodeTestRequestRequiredIntegerInt64NullableArrayArrayRequest( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilInt64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11399,6 +11397,8 @@ func (s *Server) decodeTestRequestRequiredIntegerInt64NullableArrayArrayRequest( } d := jx.DecodeBytes(buf) + + var request [][]NilInt64 if err := func() error { request = make([][]NilInt64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -11491,8 +11491,6 @@ func (s *Server) decodeTestRequestRequiredIntegerNullableRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilInt buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11503,6 +11501,8 @@ func (s *Server) decodeTestRequestRequiredIntegerNullableRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request NilInt if err := func() error { if err := request.Decode(d); err != nil { return err @@ -11554,8 +11554,6 @@ func (s *Server) decodeTestRequestRequiredIntegerNullableArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilInt buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11566,6 +11564,8 @@ func (s *Server) decodeTestRequestRequiredIntegerNullableArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request []NilInt if err := func() error { request = make([]NilInt, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -11633,8 +11633,6 @@ func (s *Server) decodeTestRequestRequiredIntegerNullableArrayArrayRequest(r *ht if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilInt buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11645,6 +11643,8 @@ func (s *Server) decodeTestRequestRequiredIntegerNullableArrayArrayRequest(r *ht } d := jx.DecodeBytes(buf) + + var request [][]NilInt if err := func() error { request = make([][]NilInt, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -11737,8 +11737,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUintRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request uint buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11749,6 +11747,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUintRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request uint if err := func() error { v, err := d.UInt() request = uint(v) @@ -11802,8 +11802,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint32Request(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request uint32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11814,6 +11812,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUint32Request(r *http.Request) } d := jx.DecodeBytes(buf) + + var request uint32 if err := func() error { v, err := d.UInt32() request = uint32(v) @@ -11867,8 +11867,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint32ArrayRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []uint32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11879,6 +11877,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUint32ArrayRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request []uint32 if err := func() error { request = make([]uint32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -11948,8 +11948,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint32ArrayArrayRequest(r *http if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]uint32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -11960,6 +11958,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUint32ArrayArrayRequest(r *http } d := jx.DecodeBytes(buf) + + var request [][]uint32 if err := func() error { request = make([][]uint32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -12054,8 +12054,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint32NullableRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilUint32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12066,6 +12064,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUint32NullableRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request NilUint32 if err := func() error { if err := request.Decode(d); err != nil { return err @@ -12117,8 +12117,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint32NullableArrayRequest(r *h if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilUint32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12129,6 +12127,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUint32NullableArrayRequest(r *h } d := jx.DecodeBytes(buf) + + var request []NilUint32 if err := func() error { request = make([]NilUint32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -12196,8 +12196,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint32NullableArrayArrayRequest if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilUint32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12208,6 +12206,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUint32NullableArrayArrayRequest } d := jx.DecodeBytes(buf) + + var request [][]NilUint32 if err := func() error { request = make([][]NilUint32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -12300,8 +12300,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint64Request(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request uint64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12312,6 +12310,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUint64Request(r *http.Request) } d := jx.DecodeBytes(buf) + + var request uint64 if err := func() error { v, err := d.UInt64() request = uint64(v) @@ -12365,8 +12365,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint64ArrayRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []uint64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12377,6 +12375,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUint64ArrayRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request []uint64 if err := func() error { request = make([]uint64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -12446,8 +12446,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint64ArrayArrayRequest(r *http if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]uint64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12458,6 +12456,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUint64ArrayArrayRequest(r *http } d := jx.DecodeBytes(buf) + + var request [][]uint64 if err := func() error { request = make([][]uint64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -12552,8 +12552,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint64NullableRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilUint64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12564,6 +12562,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUint64NullableRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request NilUint64 if err := func() error { if err := request.Decode(d); err != nil { return err @@ -12615,8 +12615,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint64NullableArrayRequest(r *h if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilUint64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12627,6 +12625,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUint64NullableArrayRequest(r *h } d := jx.DecodeBytes(buf) + + var request []NilUint64 if err := func() error { request = make([]NilUint64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -12694,8 +12694,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUint64NullableArrayArrayRequest if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilUint64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12706,6 +12704,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUint64NullableArrayArrayRequest } d := jx.DecodeBytes(buf) + + var request [][]NilUint64 if err := func() error { request = make([][]NilUint64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -12798,8 +12798,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUintArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []uint buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12810,6 +12808,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUintArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request []uint if err := func() error { request = make([]uint, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -12879,8 +12879,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUintArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]uint buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12891,6 +12889,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUintArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request [][]uint if err := func() error { request = make([][]uint, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -12985,8 +12985,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUintNullableRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilUint buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -12997,6 +12995,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUintNullableRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request NilUint if err := func() error { if err := request.Decode(d); err != nil { return err @@ -13048,8 +13048,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUintNullableArrayRequest(r *htt if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilUint buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -13060,6 +13058,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUintNullableArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request []NilUint if err := func() error { request = make([]NilUint, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -13127,8 +13127,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUintNullableArrayArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilUint buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -13139,6 +13137,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUintNullableArrayArrayRequest(r } d := jx.DecodeBytes(buf) + + var request [][]NilUint if err := func() error { request = make([][]NilUint, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -13231,8 +13231,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -13243,6 +13241,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request time.Time if err := func() error { v, err := json.DecodeUnixSeconds(d) request = v @@ -13296,8 +13296,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -13308,6 +13306,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -13377,8 +13377,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -13389,6 +13387,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -13483,8 +13483,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMicroRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -13495,6 +13493,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMicroRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request time.Time if err := func() error { v, err := json.DecodeUnixMicro(d) request = v @@ -13548,8 +13548,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMicroArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -13560,6 +13558,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMicroArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -13629,8 +13629,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMicroArrayArrayRequest(r *h if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -13641,6 +13639,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMicroArrayArrayRequest(r *h } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -13735,8 +13735,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMicroNullableRequest(r *htt if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilUnixMicro buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -13747,6 +13745,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMicroNullableRequest(r *htt } d := jx.DecodeBytes(buf) + + var request NilUnixMicro if err := func() error { if err := request.Decode(d, json.DecodeUnixMicro); err != nil { return err @@ -13798,8 +13798,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMicroNullableArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilUnixMicro buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -13810,6 +13808,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMicroNullableArrayRequest(r } d := jx.DecodeBytes(buf) + + var request []NilUnixMicro if err := func() error { request = make([]NilUnixMicro, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -13877,8 +13877,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMicroNullableArrayArrayRequ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilUnixMicro buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -13889,6 +13887,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMicroNullableArrayArrayRequ } d := jx.DecodeBytes(buf) + + var request [][]NilUnixMicro if err := func() error { request = make([][]NilUnixMicro, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -13981,8 +13981,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMilliRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -13993,6 +13991,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMilliRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request time.Time if err := func() error { v, err := json.DecodeUnixMilli(d) request = v @@ -14046,8 +14046,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMilliArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -14058,6 +14056,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMilliArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -14127,8 +14127,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMilliArrayArrayRequest(r *h if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -14139,6 +14137,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMilliArrayArrayRequest(r *h } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -14233,8 +14233,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMilliNullableRequest(r *htt if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilUnixMilli buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -14245,6 +14243,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMilliNullableRequest(r *htt } d := jx.DecodeBytes(buf) + + var request NilUnixMilli if err := func() error { if err := request.Decode(d, json.DecodeUnixMilli); err != nil { return err @@ -14296,8 +14296,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMilliNullableArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilUnixMilli buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -14308,6 +14306,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMilliNullableArrayRequest(r } d := jx.DecodeBytes(buf) + + var request []NilUnixMilli if err := func() error { request = make([]NilUnixMilli, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -14375,8 +14375,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMilliNullableArrayArrayRequ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilUnixMilli buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -14387,6 +14385,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixMilliNullableArrayArrayRequ } d := jx.DecodeBytes(buf) + + var request [][]NilUnixMilli if err := func() error { request = make([][]NilUnixMilli, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -14479,8 +14479,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNanoRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -14491,6 +14489,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNanoRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request time.Time if err := func() error { v, err := json.DecodeUnixNano(d) request = v @@ -14544,8 +14544,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNanoArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -14556,6 +14554,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNanoArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -14625,8 +14625,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNanoArrayArrayRequest(r *ht if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -14637,6 +14635,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNanoArrayArrayRequest(r *ht } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -14731,8 +14731,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNanoNullableRequest(r *http if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilUnixNano buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -14743,6 +14741,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNanoNullableRequest(r *http } d := jx.DecodeBytes(buf) + + var request NilUnixNano if err := func() error { if err := request.Decode(d, json.DecodeUnixNano); err != nil { return err @@ -14794,8 +14794,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNanoNullableArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilUnixNano buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -14806,6 +14804,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNanoNullableArrayRequest(r } d := jx.DecodeBytes(buf) + + var request []NilUnixNano if err := func() error { request = make([]NilUnixNano, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -14873,8 +14873,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNanoNullableArrayArrayReque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilUnixNano buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -14885,6 +14883,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNanoNullableArrayArrayReque } d := jx.DecodeBytes(buf) + + var request [][]NilUnixNano if err := func() error { request = make([][]NilUnixNano, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -14977,8 +14977,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNullableRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -14989,6 +14987,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNullableRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request NilUnixSeconds if err := func() error { if err := request.Decode(d, json.DecodeUnixSeconds); err != nil { return err @@ -15040,8 +15040,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNullableArrayRequest(r *htt if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -15052,6 +15050,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNullableArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request []NilUnixSeconds if err := func() error { request = make([]NilUnixSeconds, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -15119,8 +15119,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNullableArrayArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -15131,6 +15129,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixNullableArrayArrayRequest(r } d := jx.DecodeBytes(buf) + + var request [][]NilUnixSeconds if err := func() error { request = make([][]NilUnixSeconds, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -15223,8 +15223,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixSecondsRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -15235,71 +15233,73 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixSecondsRequest(r *http.Requ } d := jx.DecodeBytes(buf) - if err := func() error { - v, err := json.DecodeUnixSeconds(d) - request = v - if err != nil { - return err - } - if err := d.Skip(); err != io.EOF { - return errors.New("unexpected trailing data") - } - return nil - }(); err != nil { - err = &ogenerrors.DecodeBodyError{ - ContentType: ct, - Body: buf, - Err: err, - } - return req, close, err - } - return request, close, nil - default: - return req, close, validate.InvalidContentType(ct) - } -} - -func (s *Server) decodeTestRequestRequiredIntegerUnixSecondsArrayRequest(r *http.Request) ( - req []time.Time, - close func() error, - rerr error, -) { - var closers []func() error - close = func() error { - var merr error - // Close in reverse order, to match defer behavior. - for i := len(closers) - 1; i >= 0; i-- { - c := closers[i] - merr = multierr.Append(merr, c()) - } - return merr - } - defer func() { - if rerr != nil { - rerr = multierr.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 ct == "application/json": - if r.ContentLength == 0 { - return req, close, validate.ErrBodyRequired - } + + var request time.Time + if err := func() error { + v, err := json.DecodeUnixSeconds(d) + request = v + if err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return req, close, err + } + return request, close, nil + default: + return req, close, validate.InvalidContentType(ct) + } +} + +func (s *Server) decodeTestRequestRequiredIntegerUnixSecondsArrayRequest(r *http.Request) ( + req []time.Time, + close func() error, + rerr error, +) { + var closers []func() error + close = func() error { + var merr error + // Close in reverse order, to match defer behavior. + for i := len(closers) - 1; i >= 0; i-- { + c := closers[i] + merr = multierr.Append(merr, c()) + } + return merr + } + defer func() { + if rerr != nil { + rerr = multierr.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 ct == "application/json": + if r.ContentLength == 0 { + return req, close, validate.ErrBodyRequired + } + buf, err := io.ReadAll(r.Body) + if err != nil { + return req, close, err + } + + if len(buf) == 0 { + return req, close, validate.ErrBodyRequired + } + + d := jx.DecodeBytes(buf) var request []time.Time - buf, err := io.ReadAll(r.Body) - if err != nil { - return req, close, err - } - - if len(buf) == 0 { - return req, close, validate.ErrBodyRequired - } - - d := jx.DecodeBytes(buf) if err := func() error { request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -15369,8 +15369,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixSecondsArrayArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -15381,6 +15379,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixSecondsArrayArrayRequest(r } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -15475,8 +15475,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixSecondsNullableRequest(r *h if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -15487,6 +15485,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixSecondsNullableRequest(r *h } d := jx.DecodeBytes(buf) + + var request NilUnixSeconds if err := func() error { if err := request.Decode(d, json.DecodeUnixSeconds); err != nil { return err @@ -15538,8 +15538,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixSecondsNullableArrayRequest if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -15550,6 +15548,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixSecondsNullableArrayRequest } d := jx.DecodeBytes(buf) + + var request []NilUnixSeconds if err := func() error { request = make([]NilUnixSeconds, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -15617,8 +15617,6 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixSecondsNullableArrayArrayRe if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -15629,6 +15627,8 @@ func (s *Server) decodeTestRequestRequiredIntegerUnixSecondsNullableArrayArrayRe } d := jx.DecodeBytes(buf) + + var request [][]NilUnixSeconds if err := func() error { request = make([][]NilUnixSeconds, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -15721,8 +15721,6 @@ func (s *Server) decodeTestRequestRequiredNullRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request struct{} buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -15733,6 +15731,8 @@ func (s *Server) decodeTestRequestRequiredNullRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request struct{} if err := func() error { if err := d.Null(); err != nil { return err @@ -15784,8 +15784,6 @@ func (s *Server) decodeTestRequestRequiredNullArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []struct{} buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -15796,6 +15794,8 @@ func (s *Server) decodeTestRequestRequiredNullArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []struct{} if err := func() error { request = make([]struct{}, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -15863,8 +15863,6 @@ func (s *Server) decodeTestRequestRequiredNullArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]struct{} buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -15875,6 +15873,8 @@ func (s *Server) decodeTestRequestRequiredNullArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request [][]struct{} if err := func() error { request = make([][]struct{}, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -15967,8 +15967,6 @@ func (s *Server) decodeTestRequestRequiredNullNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request struct{} buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -15979,6 +15977,8 @@ func (s *Server) decodeTestRequestRequiredNullNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request struct{} if err := func() error { if err := d.Null(); err != nil { return err @@ -16030,8 +16030,6 @@ func (s *Server) decodeTestRequestRequiredNullNullableArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []struct{} buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -16042,6 +16040,8 @@ func (s *Server) decodeTestRequestRequiredNullNullableArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request []struct{} if err := func() error { request = make([]struct{}, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -16109,8 +16109,6 @@ func (s *Server) decodeTestRequestRequiredNullNullableArrayArrayRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]struct{} buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -16121,6 +16119,8 @@ func (s *Server) decodeTestRequestRequiredNullNullableArrayArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request [][]struct{} if err := func() error { request = make([][]struct{}, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -16213,8 +16213,6 @@ func (s *Server) decodeTestRequestRequiredNumberRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request float64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -16225,6 +16223,8 @@ func (s *Server) decodeTestRequestRequiredNumberRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request float64 if err := func() error { v, err := d.Float64() request = float64(v) @@ -16286,8 +16286,6 @@ func (s *Server) decodeTestRequestRequiredNumberArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []float64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -16298,6 +16296,8 @@ func (s *Server) decodeTestRequestRequiredNumberArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []float64 if err := func() error { request = make([]float64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -16384,8 +16384,6 @@ func (s *Server) decodeTestRequestRequiredNumberArrayArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]float64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -16396,6 +16394,8 @@ func (s *Server) decodeTestRequestRequiredNumberArrayArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request [][]float64 if err := func() error { request = make([][]float64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -16507,8 +16507,6 @@ func (s *Server) decodeTestRequestRequiredNumberDoubleRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request float64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -16519,6 +16517,8 @@ func (s *Server) decodeTestRequestRequiredNumberDoubleRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request float64 if err := func() error { v, err := d.Float64() request = float64(v) @@ -16580,8 +16580,6 @@ func (s *Server) decodeTestRequestRequiredNumberDoubleArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []float64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -16592,6 +16590,8 @@ func (s *Server) decodeTestRequestRequiredNumberDoubleArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request []float64 if err := func() error { request = make([]float64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -16678,8 +16678,6 @@ func (s *Server) decodeTestRequestRequiredNumberDoubleArrayArrayRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]float64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -16690,6 +16688,8 @@ func (s *Server) decodeTestRequestRequiredNumberDoubleArrayArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request [][]float64 if err := func() error { request = make([][]float64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -16801,8 +16801,6 @@ func (s *Server) decodeTestRequestRequiredNumberDoubleNullableRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilFloat64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -16813,6 +16811,8 @@ func (s *Server) decodeTestRequestRequiredNumberDoubleNullableRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request NilFloat64 if err := func() error { if err := request.Decode(d); err != nil { return err @@ -16872,8 +16872,6 @@ func (s *Server) decodeTestRequestRequiredNumberDoubleNullableArrayRequest(r *ht if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilFloat64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -16884,6 +16882,8 @@ func (s *Server) decodeTestRequestRequiredNumberDoubleNullableArrayRequest(r *ht } d := jx.DecodeBytes(buf) + + var request []NilFloat64 if err := func() error { request = make([]NilFloat64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -16968,8 +16968,6 @@ func (s *Server) decodeTestRequestRequiredNumberDoubleNullableArrayArrayRequest( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilFloat64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -16980,6 +16978,8 @@ func (s *Server) decodeTestRequestRequiredNumberDoubleNullableArrayArrayRequest( } d := jx.DecodeBytes(buf) + + var request [][]NilFloat64 if err := func() error { request = make([][]NilFloat64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -17089,8 +17089,6 @@ func (s *Server) decodeTestRequestRequiredNumberFloatRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request float32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -17101,6 +17099,8 @@ func (s *Server) decodeTestRequestRequiredNumberFloatRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request float32 if err := func() error { v, err := d.Float32() request = float32(v) @@ -17162,8 +17162,6 @@ func (s *Server) decodeTestRequestRequiredNumberFloatArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []float32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -17174,6 +17172,8 @@ func (s *Server) decodeTestRequestRequiredNumberFloatArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request []float32 if err := func() error { request = make([]float32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -17260,8 +17260,6 @@ func (s *Server) decodeTestRequestRequiredNumberFloatArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]float32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -17272,6 +17270,8 @@ func (s *Server) decodeTestRequestRequiredNumberFloatArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request [][]float32 if err := func() error { request = make([][]float32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -17383,8 +17383,6 @@ func (s *Server) decodeTestRequestRequiredNumberFloatNullableRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilFloat32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -17395,6 +17393,8 @@ func (s *Server) decodeTestRequestRequiredNumberFloatNullableRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request NilFloat32 if err := func() error { if err := request.Decode(d); err != nil { return err @@ -17454,8 +17454,6 @@ func (s *Server) decodeTestRequestRequiredNumberFloatNullableArrayRequest(r *htt if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilFloat32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -17466,6 +17464,8 @@ func (s *Server) decodeTestRequestRequiredNumberFloatNullableArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request []NilFloat32 if err := func() error { request = make([]NilFloat32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -17550,8 +17550,6 @@ func (s *Server) decodeTestRequestRequiredNumberFloatNullableArrayArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilFloat32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -17562,6 +17560,8 @@ func (s *Server) decodeTestRequestRequiredNumberFloatNullableArrayArrayRequest(r } d := jx.DecodeBytes(buf) + + var request [][]NilFloat32 if err := func() error { request = make([][]NilFloat32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -17671,8 +17671,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt32Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request int32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -17683,6 +17681,8 @@ func (s *Server) decodeTestRequestRequiredNumberInt32Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request int32 if err := func() error { v, err := d.Int32() request = int32(v) @@ -17736,8 +17736,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt32ArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []int32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -17748,6 +17746,8 @@ func (s *Server) decodeTestRequestRequiredNumberInt32ArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request []int32 if err := func() error { request = make([]int32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -17817,8 +17817,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt32ArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]int32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -17829,6 +17827,8 @@ func (s *Server) decodeTestRequestRequiredNumberInt32ArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request [][]int32 if err := func() error { request = make([][]int32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -17923,8 +17923,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt32NullableRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilInt32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -17935,6 +17933,8 @@ func (s *Server) decodeTestRequestRequiredNumberInt32NullableRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request NilInt32 if err := func() error { if err := request.Decode(d); err != nil { return err @@ -17986,8 +17986,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt32NullableArrayRequest(r *htt if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilInt32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -17998,6 +17996,8 @@ func (s *Server) decodeTestRequestRequiredNumberInt32NullableArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request []NilInt32 if err := func() error { request = make([]NilInt32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -18065,8 +18065,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt32NullableArrayArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilInt32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -18077,6 +18075,8 @@ func (s *Server) decodeTestRequestRequiredNumberInt32NullableArrayArrayRequest(r } d := jx.DecodeBytes(buf) + + var request [][]NilInt32 if err := func() error { request = make([][]NilInt32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -18169,8 +18169,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt64Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request int64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -18181,6 +18179,8 @@ func (s *Server) decodeTestRequestRequiredNumberInt64Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request int64 if err := func() error { v, err := d.Int64() request = int64(v) @@ -18234,8 +18234,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt64ArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []int64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -18246,6 +18244,8 @@ func (s *Server) decodeTestRequestRequiredNumberInt64ArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request []int64 if err := func() error { request = make([]int64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -18315,8 +18315,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt64ArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]int64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -18327,6 +18325,8 @@ func (s *Server) decodeTestRequestRequiredNumberInt64ArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request [][]int64 if err := func() error { request = make([][]int64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -18421,8 +18421,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt64NullableRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilInt64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -18433,6 +18431,8 @@ func (s *Server) decodeTestRequestRequiredNumberInt64NullableRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request NilInt64 if err := func() error { if err := request.Decode(d); err != nil { return err @@ -18484,8 +18484,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt64NullableArrayRequest(r *htt if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilInt64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -18496,6 +18494,8 @@ func (s *Server) decodeTestRequestRequiredNumberInt64NullableArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request []NilInt64 if err := func() error { request = make([]NilInt64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -18563,8 +18563,6 @@ func (s *Server) decodeTestRequestRequiredNumberInt64NullableArrayArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilInt64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -18575,6 +18573,8 @@ func (s *Server) decodeTestRequestRequiredNumberInt64NullableArrayArrayRequest(r } d := jx.DecodeBytes(buf) + + var request [][]NilInt64 if err := func() error { request = make([][]NilInt64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -18667,8 +18667,6 @@ func (s *Server) decodeTestRequestRequiredNumberNullableRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilFloat64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -18679,6 +18677,8 @@ func (s *Server) decodeTestRequestRequiredNumberNullableRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request NilFloat64 if err := func() error { if err := request.Decode(d); err != nil { return err @@ -18738,8 +18738,6 @@ func (s *Server) decodeTestRequestRequiredNumberNullableArrayRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilFloat64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -18750,6 +18748,8 @@ func (s *Server) decodeTestRequestRequiredNumberNullableArrayRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request []NilFloat64 if err := func() error { request = make([]NilFloat64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -18834,8 +18834,6 @@ func (s *Server) decodeTestRequestRequiredNumberNullableArrayArrayRequest(r *htt if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilFloat64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -18846,6 +18844,8 @@ func (s *Server) decodeTestRequestRequiredNumberNullableArrayArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request [][]NilFloat64 if err := func() error { request = make([][]NilFloat64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -18955,8 +18955,6 @@ func (s *Server) decodeTestRequestRequiredStringRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -18967,6 +18965,8 @@ func (s *Server) decodeTestRequestRequiredStringRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -19020,8 +19020,6 @@ func (s *Server) decodeTestRequestRequiredStringArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -19032,6 +19030,8 @@ func (s *Server) decodeTestRequestRequiredStringArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []string if err := func() error { request = make([]string, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -19101,8 +19101,6 @@ func (s *Server) decodeTestRequestRequiredStringArrayArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -19113,6 +19111,8 @@ func (s *Server) decodeTestRequestRequiredStringArrayArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request [][]string if err := func() error { request = make([][]string, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -19207,8 +19207,6 @@ func (s *Server) decodeTestRequestRequiredStringBase64Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -19219,6 +19217,8 @@ func (s *Server) decodeTestRequestRequiredStringBase64Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []byte if err := func() error { v, err := d.Base64() request = []byte(v) @@ -19272,8 +19272,6 @@ func (s *Server) decodeTestRequestRequiredStringBase64ArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -19284,6 +19282,8 @@ func (s *Server) decodeTestRequestRequiredStringBase64ArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request [][]byte if err := func() error { request = make([][]byte, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -19353,8 +19353,6 @@ func (s *Server) decodeTestRequestRequiredStringBase64ArrayArrayRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][][]byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -19365,6 +19363,8 @@ func (s *Server) decodeTestRequestRequiredStringBase64ArrayArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request [][][]byte if err := func() error { request = make([][][]byte, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -19459,8 +19459,6 @@ func (s *Server) decodeTestRequestRequiredStringBase64NullableRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -19471,6 +19469,8 @@ func (s *Server) decodeTestRequestRequiredStringBase64NullableRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request []byte if err := func() error { v, err := d.Base64() request = []byte(v) @@ -19524,8 +19524,6 @@ func (s *Server) decodeTestRequestRequiredStringBase64NullableArrayRequest(r *ht if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -19536,6 +19534,8 @@ func (s *Server) decodeTestRequestRequiredStringBase64NullableArrayRequest(r *ht } d := jx.DecodeBytes(buf) + + var request [][]byte if err := func() error { request = make([][]byte, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -19605,8 +19605,6 @@ func (s *Server) decodeTestRequestRequiredStringBase64NullableArrayArrayRequest( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][][]byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -19617,6 +19615,8 @@ func (s *Server) decodeTestRequestRequiredStringBase64NullableArrayArrayRequest( } d := jx.DecodeBytes(buf) + + var request [][][]byte if err := func() error { request = make([][][]byte, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -19711,8 +19711,6 @@ func (s *Server) decodeTestRequestRequiredStringBinaryRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -19723,6 +19721,8 @@ func (s *Server) decodeTestRequestRequiredStringBinaryRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -19776,8 +19776,6 @@ func (s *Server) decodeTestRequestRequiredStringBinaryArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -19788,6 +19786,8 @@ func (s *Server) decodeTestRequestRequiredStringBinaryArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request []string if err := func() error { request = make([]string, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -19857,8 +19857,6 @@ func (s *Server) decodeTestRequestRequiredStringBinaryArrayArrayRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -19869,6 +19867,8 @@ func (s *Server) decodeTestRequestRequiredStringBinaryArrayArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request [][]string if err := func() error { request = make([][]string, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -19963,8 +19963,6 @@ func (s *Server) decodeTestRequestRequiredStringBinaryNullableRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -19975,6 +19973,8 @@ func (s *Server) decodeTestRequestRequiredStringBinaryNullableRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request NilString if err := func() error { if err := request.Decode(d); err != nil { return err @@ -20026,8 +20026,6 @@ func (s *Server) decodeTestRequestRequiredStringBinaryNullableArrayRequest(r *ht if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -20038,6 +20036,8 @@ func (s *Server) decodeTestRequestRequiredStringBinaryNullableArrayRequest(r *ht } d := jx.DecodeBytes(buf) + + var request []NilString if err := func() error { request = make([]NilString, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -20105,8 +20105,6 @@ func (s *Server) decodeTestRequestRequiredStringBinaryNullableArrayArrayRequest( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -20117,6 +20115,8 @@ func (s *Server) decodeTestRequestRequiredStringBinaryNullableArrayArrayRequest( } d := jx.DecodeBytes(buf) + + var request [][]NilString if err := func() error { request = make([][]NilString, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -20209,8 +20209,6 @@ func (s *Server) decodeTestRequestRequiredStringByteRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -20221,6 +20219,8 @@ func (s *Server) decodeTestRequestRequiredStringByteRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []byte if err := func() error { v, err := d.Base64() request = []byte(v) @@ -20274,8 +20274,6 @@ func (s *Server) decodeTestRequestRequiredStringByteArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -20286,6 +20284,8 @@ func (s *Server) decodeTestRequestRequiredStringByteArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request [][]byte if err := func() error { request = make([][]byte, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -20355,8 +20355,6 @@ func (s *Server) decodeTestRequestRequiredStringByteArrayArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][][]byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -20367,6 +20365,8 @@ func (s *Server) decodeTestRequestRequiredStringByteArrayArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request [][][]byte if err := func() error { request = make([][][]byte, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -20461,8 +20461,6 @@ func (s *Server) decodeTestRequestRequiredStringByteNullableRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -20473,6 +20471,8 @@ func (s *Server) decodeTestRequestRequiredStringByteNullableRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request []byte if err := func() error { v, err := d.Base64() request = []byte(v) @@ -20526,8 +20526,6 @@ func (s *Server) decodeTestRequestRequiredStringByteNullableArrayRequest(r *http if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -20538,6 +20536,8 @@ func (s *Server) decodeTestRequestRequiredStringByteNullableArrayRequest(r *http } d := jx.DecodeBytes(buf) + + var request [][]byte if err := func() error { request = make([][]byte, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -20607,8 +20607,6 @@ func (s *Server) decodeTestRequestRequiredStringByteNullableArrayArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][][]byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -20619,6 +20617,8 @@ func (s *Server) decodeTestRequestRequiredStringByteNullableArrayArrayRequest(r } d := jx.DecodeBytes(buf) + + var request [][][]byte if err := func() error { request = make([][][]byte, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -20713,8 +20713,6 @@ func (s *Server) decodeTestRequestRequiredStringDateRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -20725,6 +20723,8 @@ func (s *Server) decodeTestRequestRequiredStringDateRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request time.Time if err := func() error { v, err := json.DecodeDate(d) request = v @@ -20778,8 +20778,6 @@ func (s *Server) decodeTestRequestRequiredStringDateArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -20790,6 +20788,8 @@ func (s *Server) decodeTestRequestRequiredStringDateArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -20859,8 +20859,6 @@ func (s *Server) decodeTestRequestRequiredStringDateArrayArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -20871,6 +20869,8 @@ func (s *Server) decodeTestRequestRequiredStringDateArrayArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -20965,8 +20965,6 @@ func (s *Server) decodeTestRequestRequiredStringDateNullableRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilDate buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -20977,6 +20975,8 @@ func (s *Server) decodeTestRequestRequiredStringDateNullableRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request NilDate if err := func() error { if err := request.Decode(d, json.DecodeDate); err != nil { return err @@ -21028,8 +21028,6 @@ func (s *Server) decodeTestRequestRequiredStringDateNullableArrayRequest(r *http if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilDate buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -21040,6 +21038,8 @@ func (s *Server) decodeTestRequestRequiredStringDateNullableArrayRequest(r *http } d := jx.DecodeBytes(buf) + + var request []NilDate if err := func() error { request = make([]NilDate, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -21107,8 +21107,6 @@ func (s *Server) decodeTestRequestRequiredStringDateNullableArrayArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilDate buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -21119,6 +21117,8 @@ func (s *Server) decodeTestRequestRequiredStringDateNullableArrayArrayRequest(r } d := jx.DecodeBytes(buf) + + var request [][]NilDate if err := func() error { request = make([][]NilDate, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -21211,8 +21211,6 @@ func (s *Server) decodeTestRequestRequiredStringDateTimeRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -21223,6 +21221,8 @@ func (s *Server) decodeTestRequestRequiredStringDateTimeRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request time.Time if err := func() error { v, err := json.DecodeDateTime(d) request = v @@ -21276,8 +21276,6 @@ func (s *Server) decodeTestRequestRequiredStringDateTimeArrayRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -21288,6 +21286,8 @@ func (s *Server) decodeTestRequestRequiredStringDateTimeArrayRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -21357,8 +21357,6 @@ func (s *Server) decodeTestRequestRequiredStringDateTimeArrayArrayRequest(r *htt if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -21369,6 +21367,8 @@ func (s *Server) decodeTestRequestRequiredStringDateTimeArrayArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -21463,8 +21463,6 @@ func (s *Server) decodeTestRequestRequiredStringDateTimeNullableRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilDateTime buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -21475,6 +21473,8 @@ func (s *Server) decodeTestRequestRequiredStringDateTimeNullableRequest(r *http. } d := jx.DecodeBytes(buf) + + var request NilDateTime if err := func() error { if err := request.Decode(d, json.DecodeDateTime); err != nil { return err @@ -21526,8 +21526,6 @@ func (s *Server) decodeTestRequestRequiredStringDateTimeNullableArrayRequest(r * if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilDateTime buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -21538,6 +21536,8 @@ func (s *Server) decodeTestRequestRequiredStringDateTimeNullableArrayRequest(r * } d := jx.DecodeBytes(buf) + + var request []NilDateTime if err := func() error { request = make([]NilDateTime, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -21605,8 +21605,6 @@ func (s *Server) decodeTestRequestRequiredStringDateTimeNullableArrayArrayReques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilDateTime buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -21617,6 +21615,8 @@ func (s *Server) decodeTestRequestRequiredStringDateTimeNullableArrayArrayReques } d := jx.DecodeBytes(buf) + + var request [][]NilDateTime if err := func() error { request = make([][]NilDateTime, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -21709,8 +21709,6 @@ func (s *Server) decodeTestRequestRequiredStringDurationRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request time.Duration buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -21721,6 +21719,8 @@ func (s *Server) decodeTestRequestRequiredStringDurationRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request time.Duration if err := func() error { v, err := json.DecodeDuration(d) request = v @@ -21774,8 +21774,6 @@ func (s *Server) decodeTestRequestRequiredStringDurationArrayRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []time.Duration buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -21786,6 +21784,8 @@ func (s *Server) decodeTestRequestRequiredStringDurationArrayRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request []time.Duration if err := func() error { request = make([]time.Duration, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -21855,8 +21855,6 @@ func (s *Server) decodeTestRequestRequiredStringDurationArrayArrayRequest(r *htt if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]time.Duration buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -21867,6 +21865,8 @@ func (s *Server) decodeTestRequestRequiredStringDurationArrayArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request [][]time.Duration if err := func() error { request = make([][]time.Duration, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -21961,8 +21961,6 @@ func (s *Server) decodeTestRequestRequiredStringDurationNullableRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilDuration buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -21973,6 +21971,8 @@ func (s *Server) decodeTestRequestRequiredStringDurationNullableRequest(r *http. } d := jx.DecodeBytes(buf) + + var request NilDuration if err := func() error { if err := request.Decode(d); err != nil { return err @@ -22024,8 +22024,6 @@ func (s *Server) decodeTestRequestRequiredStringDurationNullableArrayRequest(r * if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilDuration buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -22036,6 +22034,8 @@ func (s *Server) decodeTestRequestRequiredStringDurationNullableArrayRequest(r * } d := jx.DecodeBytes(buf) + + var request []NilDuration if err := func() error { request = make([]NilDuration, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -22103,8 +22103,6 @@ func (s *Server) decodeTestRequestRequiredStringDurationNullableArrayArrayReques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilDuration buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -22115,6 +22113,8 @@ func (s *Server) decodeTestRequestRequiredStringDurationNullableArrayArrayReques } d := jx.DecodeBytes(buf) + + var request [][]NilDuration if err := func() error { request = make([][]NilDuration, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -22207,8 +22207,6 @@ func (s *Server) decodeTestRequestRequiredStringEmailRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -22219,6 +22217,8 @@ func (s *Server) decodeTestRequestRequiredStringEmailRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -22288,8 +22288,6 @@ func (s *Server) decodeTestRequestRequiredStringEmailArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -22300,6 +22298,8 @@ func (s *Server) decodeTestRequestRequiredStringEmailArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request []string if err := func() error { request = make([]string, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -22394,8 +22394,6 @@ func (s *Server) decodeTestRequestRequiredStringEmailArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -22406,6 +22404,8 @@ func (s *Server) decodeTestRequestRequiredStringEmailArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request [][]string if err := func() error { request = make([][]string, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -22525,8 +22525,6 @@ func (s *Server) decodeTestRequestRequiredStringEmailNullableRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -22537,6 +22535,8 @@ func (s *Server) decodeTestRequestRequiredStringEmailNullableRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request NilString if err := func() error { if err := request.Decode(d); err != nil { return err @@ -22604,8 +22604,6 @@ func (s *Server) decodeTestRequestRequiredStringEmailNullableArrayRequest(r *htt if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -22616,6 +22614,8 @@ func (s *Server) decodeTestRequestRequiredStringEmailNullableArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request []NilString if err := func() error { request = make([]NilString, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -22708,8 +22708,6 @@ func (s *Server) decodeTestRequestRequiredStringEmailNullableArrayArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -22720,6 +22718,8 @@ func (s *Server) decodeTestRequestRequiredStringEmailNullableArrayArrayRequest(r } d := jx.DecodeBytes(buf) + + var request [][]NilString if err := func() error { request = make([][]NilString, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -22837,8 +22837,6 @@ func (s *Server) decodeTestRequestRequiredStringHostnameRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -22849,6 +22847,8 @@ func (s *Server) decodeTestRequestRequiredStringHostnameRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -22918,8 +22918,6 @@ func (s *Server) decodeTestRequestRequiredStringHostnameArrayRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -22930,6 +22928,8 @@ func (s *Server) decodeTestRequestRequiredStringHostnameArrayRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request []string if err := func() error { request = make([]string, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -23024,8 +23024,6 @@ func (s *Server) decodeTestRequestRequiredStringHostnameArrayArrayRequest(r *htt if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -23036,6 +23034,8 @@ func (s *Server) decodeTestRequestRequiredStringHostnameArrayArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request [][]string if err := func() error { request = make([][]string, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -23155,8 +23155,6 @@ func (s *Server) decodeTestRequestRequiredStringHostnameNullableRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -23167,6 +23165,8 @@ func (s *Server) decodeTestRequestRequiredStringHostnameNullableRequest(r *http. } d := jx.DecodeBytes(buf) + + var request NilString if err := func() error { if err := request.Decode(d); err != nil { return err @@ -23234,8 +23234,6 @@ func (s *Server) decodeTestRequestRequiredStringHostnameNullableArrayRequest(r * if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -23246,6 +23244,8 @@ func (s *Server) decodeTestRequestRequiredStringHostnameNullableArrayRequest(r * } d := jx.DecodeBytes(buf) + + var request []NilString if err := func() error { request = make([]NilString, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -23338,8 +23338,6 @@ func (s *Server) decodeTestRequestRequiredStringHostnameNullableArrayArrayReques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -23350,6 +23348,8 @@ func (s *Server) decodeTestRequestRequiredStringHostnameNullableArrayArrayReques } d := jx.DecodeBytes(buf) + + var request [][]NilString if err := func() error { request = make([][]NilString, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -23467,8 +23467,6 @@ func (s *Server) decodeTestRequestRequiredStringIPRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request netip.Addr buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -23479,6 +23477,8 @@ func (s *Server) decodeTestRequestRequiredStringIPRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request netip.Addr if err := func() error { v, err := json.DecodeIP(d) request = v @@ -23532,89 +23532,87 @@ func (s *Server) decodeTestRequestRequiredStringIPArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } + buf, err := io.ReadAll(r.Body) + if err != nil { + return req, close, err + } - var request []netip.Addr - buf, err := io.ReadAll(r.Body) - if err != nil { - return req, close, err - } - - if len(buf) == 0 { - return req, close, validate.ErrBodyRequired - } - - d := jx.DecodeBytes(buf) - if err := func() error { - request = make([]netip.Addr, 0) - if err := d.Arr(func(d *jx.Decoder) error { - var elem netip.Addr - v, err := json.DecodeIP(d) - elem = v - if err != nil { - return err - } - request = append(request, elem) - return nil - }); err != nil { - return err - } - if err := d.Skip(); err != io.EOF { - return errors.New("unexpected trailing data") - } - return nil - }(); err != nil { - err = &ogenerrors.DecodeBodyError{ - ContentType: ct, - Body: buf, - Err: err, - } - return req, close, err - } - if err := func() error { - if request == nil { - return errors.New("nil is invalid value") - } - return nil - }(); err != nil { - return req, close, errors.Wrap(err, "validate") - } - return request, close, nil - default: - return req, close, validate.InvalidContentType(ct) - } -} - -func (s *Server) decodeTestRequestRequiredStringIPArrayArrayRequest(r *http.Request) ( - req [][]netip.Addr, - close func() error, - rerr error, -) { - var closers []func() error - close = func() error { - var merr error - // Close in reverse order, to match defer behavior. - for i := len(closers) - 1; i >= 0; i-- { - c := closers[i] - merr = multierr.Append(merr, c()) - } - return merr - } - defer func() { - if rerr != nil { - rerr = multierr.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 ct == "application/json": - if r.ContentLength == 0 { - return req, close, validate.ErrBodyRequired - } - - var request [][]netip.Addr + if len(buf) == 0 { + return req, close, validate.ErrBodyRequired + } + + d := jx.DecodeBytes(buf) + + var request []netip.Addr + if err := func() error { + request = make([]netip.Addr, 0) + if err := d.Arr(func(d *jx.Decoder) error { + var elem netip.Addr + v, err := json.DecodeIP(d) + elem = v + if err != nil { + return err + } + request = append(request, elem) + return nil + }); err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return req, close, err + } + if err := func() error { + if request == nil { + return errors.New("nil is invalid value") + } + return nil + }(); err != nil { + return req, close, errors.Wrap(err, "validate") + } + return request, close, nil + default: + return req, close, validate.InvalidContentType(ct) + } +} + +func (s *Server) decodeTestRequestRequiredStringIPArrayArrayRequest(r *http.Request) ( + req [][]netip.Addr, + close func() error, + rerr error, +) { + var closers []func() error + close = func() error { + var merr error + // Close in reverse order, to match defer behavior. + for i := len(closers) - 1; i >= 0; i-- { + c := closers[i] + merr = multierr.Append(merr, c()) + } + return merr + } + defer func() { + if rerr != nil { + rerr = multierr.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 ct == "application/json": + if r.ContentLength == 0 { + return req, close, validate.ErrBodyRequired + } buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -23625,6 +23623,8 @@ func (s *Server) decodeTestRequestRequiredStringIPArrayArrayRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request [][]netip.Addr if err := func() error { request = make([][]netip.Addr, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -23719,8 +23719,6 @@ func (s *Server) decodeTestRequestRequiredStringIPNullableRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilIP buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -23731,6 +23729,8 @@ func (s *Server) decodeTestRequestRequiredStringIPNullableRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request NilIP if err := func() error { if err := request.Decode(d); err != nil { return err @@ -23782,8 +23782,6 @@ func (s *Server) decodeTestRequestRequiredStringIPNullableArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilIP buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -23794,6 +23792,8 @@ func (s *Server) decodeTestRequestRequiredStringIPNullableArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request []NilIP if err := func() error { request = make([]NilIP, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -23861,8 +23861,6 @@ func (s *Server) decodeTestRequestRequiredStringIPNullableArrayArrayRequest(r *h if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilIP buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -23873,6 +23871,8 @@ func (s *Server) decodeTestRequestRequiredStringIPNullableArrayArrayRequest(r *h } d := jx.DecodeBytes(buf) + + var request [][]NilIP if err := func() error { request = make([][]NilIP, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -23965,8 +23965,6 @@ func (s *Server) decodeTestRequestRequiredStringInt32Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request int32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -23977,6 +23975,8 @@ func (s *Server) decodeTestRequestRequiredStringInt32Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request int32 if err := func() error { v, err := json.DecodeStringInt32(d) request = v @@ -24030,8 +24030,6 @@ func (s *Server) decodeTestRequestRequiredStringInt32ArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []int32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -24042,6 +24040,8 @@ func (s *Server) decodeTestRequestRequiredStringInt32ArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request []int32 if err := func() error { request = make([]int32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -24111,8 +24111,6 @@ func (s *Server) decodeTestRequestRequiredStringInt32ArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]int32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -24123,6 +24121,8 @@ func (s *Server) decodeTestRequestRequiredStringInt32ArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request [][]int32 if err := func() error { request = make([][]int32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -24217,8 +24217,6 @@ func (s *Server) decodeTestRequestRequiredStringInt32NullableRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilStringInt32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -24229,6 +24227,8 @@ func (s *Server) decodeTestRequestRequiredStringInt32NullableRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request NilStringInt32 if err := func() error { if err := request.Decode(d); err != nil { return err @@ -24280,8 +24280,6 @@ func (s *Server) decodeTestRequestRequiredStringInt32NullableArrayRequest(r *htt if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilStringInt32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -24292,6 +24290,8 @@ func (s *Server) decodeTestRequestRequiredStringInt32NullableArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request []NilStringInt32 if err := func() error { request = make([]NilStringInt32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -24359,8 +24359,6 @@ func (s *Server) decodeTestRequestRequiredStringInt32NullableArrayArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilStringInt32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -24371,6 +24369,8 @@ func (s *Server) decodeTestRequestRequiredStringInt32NullableArrayArrayRequest(r } d := jx.DecodeBytes(buf) + + var request [][]NilStringInt32 if err := func() error { request = make([][]NilStringInt32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -24463,8 +24463,6 @@ func (s *Server) decodeTestRequestRequiredStringInt64Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request int64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -24475,6 +24473,8 @@ func (s *Server) decodeTestRequestRequiredStringInt64Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request int64 if err := func() error { v, err := json.DecodeStringInt64(d) request = v @@ -24528,8 +24528,6 @@ func (s *Server) decodeTestRequestRequiredStringInt64ArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []int64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -24540,6 +24538,8 @@ func (s *Server) decodeTestRequestRequiredStringInt64ArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request []int64 if err := func() error { request = make([]int64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -24609,8 +24609,6 @@ func (s *Server) decodeTestRequestRequiredStringInt64ArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]int64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -24621,6 +24619,8 @@ func (s *Server) decodeTestRequestRequiredStringInt64ArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request [][]int64 if err := func() error { request = make([][]int64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -24715,8 +24715,6 @@ func (s *Server) decodeTestRequestRequiredStringInt64NullableRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilStringInt64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -24727,6 +24725,8 @@ func (s *Server) decodeTestRequestRequiredStringInt64NullableRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request NilStringInt64 if err := func() error { if err := request.Decode(d); err != nil { return err @@ -24778,8 +24778,6 @@ func (s *Server) decodeTestRequestRequiredStringInt64NullableArrayRequest(r *htt if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilStringInt64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -24790,6 +24788,8 @@ func (s *Server) decodeTestRequestRequiredStringInt64NullableArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request []NilStringInt64 if err := func() error { request = make([]NilStringInt64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -24857,8 +24857,6 @@ func (s *Server) decodeTestRequestRequiredStringInt64NullableArrayArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilStringInt64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -24869,6 +24867,8 @@ func (s *Server) decodeTestRequestRequiredStringInt64NullableArrayArrayRequest(r } d := jx.DecodeBytes(buf) + + var request [][]NilStringInt64 if err := func() error { request = make([][]NilStringInt64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -24961,8 +24961,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv4Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request netip.Addr buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -24973,6 +24971,8 @@ func (s *Server) decodeTestRequestRequiredStringIpv4Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request netip.Addr if err := func() error { v, err := json.DecodeIPv4(d) request = v @@ -25026,8 +25026,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv4ArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []netip.Addr buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -25038,6 +25036,8 @@ func (s *Server) decodeTestRequestRequiredStringIpv4ArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request []netip.Addr if err := func() error { request = make([]netip.Addr, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -25107,8 +25107,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv4ArrayArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]netip.Addr buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -25119,112 +25117,114 @@ func (s *Server) decodeTestRequestRequiredStringIpv4ArrayArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) - if err := func() error { - request = make([][]netip.Addr, 0) - if err := d.Arr(func(d *jx.Decoder) error { - var elem []netip.Addr - elem = make([]netip.Addr, 0) - if err := d.Arr(func(d *jx.Decoder) error { - var elemElem netip.Addr - v, err := json.DecodeIPv4(d) - elemElem = v - if err != nil { - return err - } - elem = append(elem, elemElem) - return nil - }); err != nil { - return err - } - request = append(request, elem) - return nil - }); err != nil { - return err - } - if err := d.Skip(); err != io.EOF { - return errors.New("unexpected trailing data") - } - return nil - }(); err != nil { - err = &ogenerrors.DecodeBodyError{ - ContentType: ct, - Body: buf, - Err: err, - } - return req, close, err - } - if err := func() error { - if request == nil { - return errors.New("nil is invalid value") - } - var failures []validate.FieldError - for i, elem := range request { - if err := func() error { - if elem == nil { - return errors.New("nil is invalid value") - } - return nil - }(); err != nil { - failures = append(failures, validate.FieldError{ - Name: fmt.Sprintf("[%d]", i), - Error: err, - }) - } - } - if len(failures) > 0 { - return &validate.Error{Fields: failures} - } - return nil - }(); err != nil { - return req, close, errors.Wrap(err, "validate") - } - return request, close, nil - default: - return req, close, validate.InvalidContentType(ct) - } -} - -func (s *Server) decodeTestRequestRequiredStringIpv4NullableRequest(r *http.Request) ( - req NilIPv4, - close func() error, - rerr error, -) { - var closers []func() error - close = func() error { - var merr error - // Close in reverse order, to match defer behavior. - for i := len(closers) - 1; i >= 0; i-- { - c := closers[i] - merr = multierr.Append(merr, c()) - } - return merr - } - defer func() { - if rerr != nil { - rerr = multierr.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 ct == "application/json": - if r.ContentLength == 0 { - return req, close, validate.ErrBodyRequired - } + + var request [][]netip.Addr + if err := func() error { + request = make([][]netip.Addr, 0) + if err := d.Arr(func(d *jx.Decoder) error { + var elem []netip.Addr + elem = make([]netip.Addr, 0) + if err := d.Arr(func(d *jx.Decoder) error { + var elemElem netip.Addr + v, err := json.DecodeIPv4(d) + elemElem = v + if err != nil { + return err + } + elem = append(elem, elemElem) + return nil + }); err != nil { + return err + } + request = append(request, elem) + return nil + }); err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return req, close, err + } + if err := func() error { + if request == nil { + return errors.New("nil is invalid value") + } + var failures []validate.FieldError + for i, elem := range request { + if err := func() error { + if elem == nil { + return errors.New("nil is invalid value") + } + return nil + }(); err != nil { + failures = append(failures, validate.FieldError{ + Name: fmt.Sprintf("[%d]", i), + Error: err, + }) + } + } + if len(failures) > 0 { + return &validate.Error{Fields: failures} + } + return nil + }(); err != nil { + return req, close, errors.Wrap(err, "validate") + } + return request, close, nil + default: + return req, close, validate.InvalidContentType(ct) + } +} + +func (s *Server) decodeTestRequestRequiredStringIpv4NullableRequest(r *http.Request) ( + req NilIPv4, + close func() error, + rerr error, +) { + var closers []func() error + close = func() error { + var merr error + // Close in reverse order, to match defer behavior. + for i := len(closers) - 1; i >= 0; i-- { + c := closers[i] + merr = multierr.Append(merr, c()) + } + return merr + } + defer func() { + if rerr != nil { + rerr = multierr.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 ct == "application/json": + if r.ContentLength == 0 { + return req, close, validate.ErrBodyRequired + } + buf, err := io.ReadAll(r.Body) + if err != nil { + return req, close, err + } + + if len(buf) == 0 { + return req, close, validate.ErrBodyRequired + } + + d := jx.DecodeBytes(buf) var request NilIPv4 - buf, err := io.ReadAll(r.Body) - if err != nil { - return req, close, err - } - - if len(buf) == 0 { - return req, close, validate.ErrBodyRequired - } - - d := jx.DecodeBytes(buf) if err := func() error { if err := request.Decode(d); err != nil { return err @@ -25276,8 +25276,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv4NullableArrayRequest(r *http if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilIPv4 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -25288,6 +25286,8 @@ func (s *Server) decodeTestRequestRequiredStringIpv4NullableArrayRequest(r *http } d := jx.DecodeBytes(buf) + + var request []NilIPv4 if err := func() error { request = make([]NilIPv4, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -25355,8 +25355,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv4NullableArrayArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilIPv4 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -25367,6 +25365,8 @@ func (s *Server) decodeTestRequestRequiredStringIpv4NullableArrayArrayRequest(r } d := jx.DecodeBytes(buf) + + var request [][]NilIPv4 if err := func() error { request = make([][]NilIPv4, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -25459,8 +25459,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv6Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request netip.Addr buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -25471,6 +25469,8 @@ func (s *Server) decodeTestRequestRequiredStringIpv6Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request netip.Addr if err := func() error { v, err := json.DecodeIPv6(d) request = v @@ -25524,8 +25524,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv6ArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []netip.Addr buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -25536,6 +25534,8 @@ func (s *Server) decodeTestRequestRequiredStringIpv6ArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request []netip.Addr if err := func() error { request = make([]netip.Addr, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -25605,8 +25605,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv6ArrayArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]netip.Addr buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -25617,6 +25615,8 @@ func (s *Server) decodeTestRequestRequiredStringIpv6ArrayArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request [][]netip.Addr if err := func() error { request = make([][]netip.Addr, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -25711,8 +25711,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv6NullableRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilIPv6 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -25723,6 +25721,8 @@ func (s *Server) decodeTestRequestRequiredStringIpv6NullableRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request NilIPv6 if err := func() error { if err := request.Decode(d); err != nil { return err @@ -25774,8 +25774,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv6NullableArrayRequest(r *http if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilIPv6 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -25786,6 +25784,8 @@ func (s *Server) decodeTestRequestRequiredStringIpv6NullableArrayRequest(r *http } d := jx.DecodeBytes(buf) + + var request []NilIPv6 if err := func() error { request = make([]NilIPv6, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -25853,8 +25853,6 @@ func (s *Server) decodeTestRequestRequiredStringIpv6NullableArrayArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilIPv6 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -25865,6 +25863,8 @@ func (s *Server) decodeTestRequestRequiredStringIpv6NullableArrayArrayRequest(r } d := jx.DecodeBytes(buf) + + var request [][]NilIPv6 if err := func() error { request = make([][]NilIPv6, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -25957,8 +25957,6 @@ func (s *Server) decodeTestRequestRequiredStringNullableRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -25969,6 +25967,8 @@ func (s *Server) decodeTestRequestRequiredStringNullableRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request NilString if err := func() error { if err := request.Decode(d); err != nil { return err @@ -26020,8 +26020,6 @@ func (s *Server) decodeTestRequestRequiredStringNullableArrayRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -26032,6 +26030,8 @@ func (s *Server) decodeTestRequestRequiredStringNullableArrayRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request []NilString if err := func() error { request = make([]NilString, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -26099,8 +26099,6 @@ func (s *Server) decodeTestRequestRequiredStringNullableArrayArrayRequest(r *htt if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -26111,6 +26109,8 @@ func (s *Server) decodeTestRequestRequiredStringNullableArrayArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request [][]NilString if err := func() error { request = make([][]NilString, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -26203,8 +26203,6 @@ func (s *Server) decodeTestRequestRequiredStringPasswordRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -26215,6 +26213,8 @@ func (s *Server) decodeTestRequestRequiredStringPasswordRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -26268,8 +26268,6 @@ func (s *Server) decodeTestRequestRequiredStringPasswordArrayRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -26280,6 +26278,8 @@ func (s *Server) decodeTestRequestRequiredStringPasswordArrayRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request []string if err := func() error { request = make([]string, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -26349,8 +26349,6 @@ func (s *Server) decodeTestRequestRequiredStringPasswordArrayArrayRequest(r *htt if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -26361,6 +26359,8 @@ func (s *Server) decodeTestRequestRequiredStringPasswordArrayArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request [][]string if err := func() error { request = make([][]string, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -26455,8 +26455,6 @@ func (s *Server) decodeTestRequestRequiredStringPasswordNullableRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -26467,6 +26465,8 @@ func (s *Server) decodeTestRequestRequiredStringPasswordNullableRequest(r *http. } d := jx.DecodeBytes(buf) + + var request NilString if err := func() error { if err := request.Decode(d); err != nil { return err @@ -26518,8 +26518,6 @@ func (s *Server) decodeTestRequestRequiredStringPasswordNullableArrayRequest(r * if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -26530,6 +26528,8 @@ func (s *Server) decodeTestRequestRequiredStringPasswordNullableArrayRequest(r * } d := jx.DecodeBytes(buf) + + var request []NilString if err := func() error { request = make([]NilString, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -26597,8 +26597,6 @@ func (s *Server) decodeTestRequestRequiredStringPasswordNullableArrayArrayReques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -26609,6 +26607,8 @@ func (s *Server) decodeTestRequestRequiredStringPasswordNullableArrayArrayReques } d := jx.DecodeBytes(buf) + + var request [][]NilString if err := func() error { request = make([][]NilString, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -26701,8 +26701,6 @@ func (s *Server) decodeTestRequestRequiredStringTimeRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -26713,6 +26711,8 @@ func (s *Server) decodeTestRequestRequiredStringTimeRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request time.Time if err := func() error { v, err := json.DecodeTime(d) request = v @@ -26766,8 +26766,6 @@ func (s *Server) decodeTestRequestRequiredStringTimeArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -26778,6 +26776,8 @@ func (s *Server) decodeTestRequestRequiredStringTimeArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -26847,8 +26847,6 @@ func (s *Server) decodeTestRequestRequiredStringTimeArrayArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -26859,6 +26857,8 @@ func (s *Server) decodeTestRequestRequiredStringTimeArrayArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -26953,8 +26953,6 @@ func (s *Server) decodeTestRequestRequiredStringTimeNullableRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilTime buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -26965,6 +26963,8 @@ func (s *Server) decodeTestRequestRequiredStringTimeNullableRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request NilTime if err := func() error { if err := request.Decode(d, json.DecodeTime); err != nil { return err @@ -27016,8 +27016,6 @@ func (s *Server) decodeTestRequestRequiredStringTimeNullableArrayRequest(r *http if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilTime buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -27028,6 +27026,8 @@ func (s *Server) decodeTestRequestRequiredStringTimeNullableArrayRequest(r *http } d := jx.DecodeBytes(buf) + + var request []NilTime if err := func() error { request = make([]NilTime, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -27095,8 +27095,6 @@ func (s *Server) decodeTestRequestRequiredStringTimeNullableArrayArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilTime buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -27107,6 +27105,8 @@ func (s *Server) decodeTestRequestRequiredStringTimeNullableArrayArrayRequest(r } d := jx.DecodeBytes(buf) + + var request [][]NilTime if err := func() error { request = make([][]NilTime, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -27199,8 +27199,6 @@ func (s *Server) decodeTestRequestRequiredStringURIRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request url.URL buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -27211,6 +27209,8 @@ func (s *Server) decodeTestRequestRequiredStringURIRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request url.URL if err := func() error { v, err := json.DecodeURI(d) request = v @@ -27264,8 +27264,6 @@ func (s *Server) decodeTestRequestRequiredStringURIArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []url.URL buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -27276,6 +27274,8 @@ func (s *Server) decodeTestRequestRequiredStringURIArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request []url.URL if err := func() error { request = make([]url.URL, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -27345,8 +27345,6 @@ func (s *Server) decodeTestRequestRequiredStringURIArrayArrayRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]url.URL buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -27357,6 +27355,8 @@ func (s *Server) decodeTestRequestRequiredStringURIArrayArrayRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request [][]url.URL if err := func() error { request = make([][]url.URL, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -27451,8 +27451,6 @@ func (s *Server) decodeTestRequestRequiredStringURINullableRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilURI buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -27463,6 +27461,8 @@ func (s *Server) decodeTestRequestRequiredStringURINullableRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request NilURI if err := func() error { if err := request.Decode(d); err != nil { return err @@ -27514,8 +27514,6 @@ func (s *Server) decodeTestRequestRequiredStringURINullableArrayRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilURI buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -27526,6 +27524,8 @@ func (s *Server) decodeTestRequestRequiredStringURINullableArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request []NilURI if err := func() error { request = make([]NilURI, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -27593,8 +27593,6 @@ func (s *Server) decodeTestRequestRequiredStringURINullableArrayArrayRequest(r * if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilURI buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -27605,6 +27603,8 @@ func (s *Server) decodeTestRequestRequiredStringURINullableArrayArrayRequest(r * } d := jx.DecodeBytes(buf) + + var request [][]NilURI if err := func() error { request = make([][]NilURI, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -27697,8 +27697,6 @@ func (s *Server) decodeTestRequestRequiredStringUUIDRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request uuid.UUID buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -27709,6 +27707,8 @@ func (s *Server) decodeTestRequestRequiredStringUUIDRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request uuid.UUID if err := func() error { v, err := json.DecodeUUID(d) request = v @@ -27762,8 +27762,6 @@ func (s *Server) decodeTestRequestRequiredStringUUIDArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []uuid.UUID buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -27774,6 +27772,8 @@ func (s *Server) decodeTestRequestRequiredStringUUIDArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request []uuid.UUID if err := func() error { request = make([]uuid.UUID, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -27843,8 +27843,6 @@ func (s *Server) decodeTestRequestRequiredStringUUIDArrayArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]uuid.UUID buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -27855,6 +27853,8 @@ func (s *Server) decodeTestRequestRequiredStringUUIDArrayArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request [][]uuid.UUID if err := func() error { request = make([][]uuid.UUID, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -27949,8 +27949,6 @@ func (s *Server) decodeTestRequestRequiredStringUUIDNullableRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilUUID buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -27961,6 +27959,8 @@ func (s *Server) decodeTestRequestRequiredStringUUIDNullableRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request NilUUID if err := func() error { if err := request.Decode(d); err != nil { return err @@ -28012,8 +28012,6 @@ func (s *Server) decodeTestRequestRequiredStringUUIDNullableArrayRequest(r *http if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilUUID buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -28024,6 +28022,8 @@ func (s *Server) decodeTestRequestRequiredStringUUIDNullableArrayRequest(r *http } d := jx.DecodeBytes(buf) + + var request []NilUUID if err := func() error { request = make([]NilUUID, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -28091,8 +28091,6 @@ func (s *Server) decodeTestRequestRequiredStringUUIDNullableArrayArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilUUID buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -28103,6 +28101,8 @@ func (s *Server) decodeTestRequestRequiredStringUUIDNullableArrayArrayRequest(r } d := jx.DecodeBytes(buf) + + var request [][]NilUUID if err := func() error { request = make([][]NilUUID, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -28195,8 +28195,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -28207,6 +28205,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request time.Time if err := func() error { v, err := json.DecodeStringUnixSeconds(d) request = v @@ -28260,8 +28260,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -28272,6 +28270,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -28341,8 +28341,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixArrayArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -28353,6 +28351,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixArrayArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -28447,8 +28447,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMicroRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -28459,6 +28457,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixMicroRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request time.Time if err := func() error { v, err := json.DecodeStringUnixMicro(d) request = v @@ -28512,8 +28512,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMicroArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -28524,6 +28522,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixMicroArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -28593,8 +28593,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMicroArrayArrayRequest(r *ht if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -28605,6 +28603,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixMicroArrayArrayRequest(r *ht } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -28699,8 +28699,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMicroNullableRequest(r *http if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilStringUnixMicro buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -28711,6 +28709,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixMicroNullableRequest(r *http } d := jx.DecodeBytes(buf) + + var request NilStringUnixMicro if err := func() error { if err := request.Decode(d, json.DecodeStringUnixMicro); err != nil { return err @@ -28762,8 +28762,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMicroNullableArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilStringUnixMicro buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -28774,6 +28772,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixMicroNullableArrayRequest(r } d := jx.DecodeBytes(buf) + + var request []NilStringUnixMicro if err := func() error { request = make([]NilStringUnixMicro, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -28841,8 +28841,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMicroNullableArrayArrayReque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilStringUnixMicro buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -28853,6 +28851,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixMicroNullableArrayArrayReque } d := jx.DecodeBytes(buf) + + var request [][]NilStringUnixMicro if err := func() error { request = make([][]NilStringUnixMicro, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -28945,8 +28945,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMilliRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -28957,6 +28955,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixMilliRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request time.Time if err := func() error { v, err := json.DecodeStringUnixMilli(d) request = v @@ -29010,8 +29010,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMilliArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -29022,6 +29020,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixMilliArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -29091,8 +29091,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMilliArrayArrayRequest(r *ht if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -29103,6 +29101,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixMilliArrayArrayRequest(r *ht } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -29197,8 +29197,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMilliNullableRequest(r *http if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilStringUnixMilli buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -29209,6 +29207,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixMilliNullableRequest(r *http } d := jx.DecodeBytes(buf) + + var request NilStringUnixMilli if err := func() error { if err := request.Decode(d, json.DecodeStringUnixMilli); err != nil { return err @@ -29260,8 +29260,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMilliNullableArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilStringUnixMilli buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -29272,6 +29270,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixMilliNullableArrayRequest(r } d := jx.DecodeBytes(buf) + + var request []NilStringUnixMilli if err := func() error { request = make([]NilStringUnixMilli, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -29339,8 +29339,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixMilliNullableArrayArrayReque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilStringUnixMilli buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -29351,6 +29349,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixMilliNullableArrayArrayReque } d := jx.DecodeBytes(buf) + + var request [][]NilStringUnixMilli if err := func() error { request = make([][]NilStringUnixMilli, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -29443,8 +29443,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixNanoRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -29455,6 +29453,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixNanoRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request time.Time if err := func() error { v, err := json.DecodeStringUnixNano(d) request = v @@ -29508,8 +29508,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixNanoArrayRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -29520,6 +29518,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixNanoArrayRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -29589,8 +29589,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixNanoArrayArrayRequest(r *htt if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -29601,6 +29599,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixNanoArrayArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -29695,8 +29695,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixNanoNullableRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilStringUnixNano buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -29707,6 +29705,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixNanoNullableRequest(r *http. } d := jx.DecodeBytes(buf) + + var request NilStringUnixNano if err := func() error { if err := request.Decode(d, json.DecodeStringUnixNano); err != nil { return err @@ -29758,8 +29758,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixNanoNullableArrayRequest(r * if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilStringUnixNano buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -29770,6 +29768,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixNanoNullableArrayRequest(r * } d := jx.DecodeBytes(buf) + + var request []NilStringUnixNano if err := func() error { request = make([]NilStringUnixNano, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -29837,8 +29837,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixNanoNullableArrayArrayReques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilStringUnixNano buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -29849,6 +29847,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixNanoNullableArrayArrayReques } d := jx.DecodeBytes(buf) + + var request [][]NilStringUnixNano if err := func() error { request = make([][]NilStringUnixNano, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -29941,8 +29941,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixNullableRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilStringUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -29953,6 +29951,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixNullableRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request NilStringUnixSeconds if err := func() error { if err := request.Decode(d, json.DecodeStringUnixSeconds); err != nil { return err @@ -30004,8 +30004,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixNullableArrayRequest(r *http if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilStringUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -30016,6 +30014,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixNullableArrayRequest(r *http } d := jx.DecodeBytes(buf) + + var request []NilStringUnixSeconds if err := func() error { request = make([]NilStringUnixSeconds, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -30083,8 +30083,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixNullableArrayArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilStringUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -30095,6 +30093,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixNullableArrayArrayRequest(r } d := jx.DecodeBytes(buf) + + var request [][]NilStringUnixSeconds if err := func() error { request = make([][]NilStringUnixSeconds, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -30187,8 +30187,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixSecondsRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -30199,6 +30197,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixSecondsRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request time.Time if err := func() error { v, err := json.DecodeStringUnixSeconds(d) request = v @@ -30252,8 +30252,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixSecondsArrayRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -30264,6 +30262,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixSecondsArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -30333,8 +30333,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixSecondsArrayArrayRequest(r * if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -30345,6 +30343,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixSecondsArrayArrayRequest(r * } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -30439,8 +30439,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixSecondsNullableRequest(r *ht if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilStringUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -30451,6 +30449,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixSecondsNullableRequest(r *ht } d := jx.DecodeBytes(buf) + + var request NilStringUnixSeconds if err := func() error { if err := request.Decode(d, json.DecodeStringUnixSeconds); err != nil { return err @@ -30502,8 +30502,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixSecondsNullableArrayRequest( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request []NilStringUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -30514,6 +30512,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixSecondsNullableArrayRequest( } d := jx.DecodeBytes(buf) + + var request []NilStringUnixSeconds if err := func() error { request = make([]NilStringUnixSeconds, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -30581,8 +30581,6 @@ func (s *Server) decodeTestRequestRequiredStringUnixSecondsNullableArrayArrayReq if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request [][]NilStringUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -30593,6 +30591,8 @@ func (s *Server) decodeTestRequestRequiredStringUnixSecondsNullableArrayArrayReq } d := jx.DecodeBytes(buf) + + var request [][]NilStringUnixSeconds if err := func() error { request = make([][]NilStringUnixSeconds, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -30688,8 +30688,6 @@ func (s *Server) decodeTestRequestStringRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -30700,6 +30698,8 @@ func (s *Server) decodeTestRequestStringRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptString if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -30755,8 +30755,6 @@ func (s *Server) decodeTestRequestStringArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -30767,6 +30765,8 @@ func (s *Server) decodeTestRequestStringArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []string if err := func() error { request = make([]string, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -30831,8 +30831,6 @@ func (s *Server) decodeTestRequestStringArrayArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request [][]string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -30843,6 +30841,8 @@ func (s *Server) decodeTestRequestStringArrayArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request [][]string if err := func() error { request = make([][]string, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -30937,8 +30937,6 @@ func (s *Server) decodeTestRequestStringBase64Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -30949,6 +30947,8 @@ func (s *Server) decodeTestRequestStringBase64Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []byte if err := func() error { v, err := d.Base64() request = []byte(v) @@ -31005,8 +31005,6 @@ func (s *Server) decodeTestRequestStringBase64ArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request [][]byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -31017,6 +31015,8 @@ func (s *Server) decodeTestRequestStringBase64ArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request [][]byte if err := func() error { request = make([][]byte, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -31081,8 +31081,6 @@ func (s *Server) decodeTestRequestStringBase64ArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request [][][]byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -31093,6 +31091,8 @@ func (s *Server) decodeTestRequestStringBase64ArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request [][][]byte if err := func() error { request = make([][][]byte, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -31187,8 +31187,6 @@ func (s *Server) decodeTestRequestStringBase64NullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilByte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -31199,6 +31197,8 @@ func (s *Server) decodeTestRequestStringBase64NullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilByte if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -31254,8 +31254,6 @@ func (s *Server) decodeTestRequestStringBase64NullableArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, nil } - - var request [][]byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -31266,6 +31264,8 @@ func (s *Server) decodeTestRequestStringBase64NullableArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request [][]byte if err := func() error { request = make([][]byte, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -31330,8 +31330,6 @@ func (s *Server) decodeTestRequestStringBase64NullableArrayArrayRequest(r *http. if r.ContentLength == 0 { return req, close, nil } - - var request [][][]byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -31342,6 +31340,8 @@ func (s *Server) decodeTestRequestStringBase64NullableArrayArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request [][][]byte if err := func() error { request = make([][][]byte, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -31436,8 +31436,6 @@ func (s *Server) decodeTestRequestStringBinaryRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -31448,6 +31446,8 @@ func (s *Server) decodeTestRequestStringBinaryRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptString if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -31503,8 +31503,6 @@ func (s *Server) decodeTestRequestStringBinaryArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -31515,6 +31513,8 @@ func (s *Server) decodeTestRequestStringBinaryArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []string if err := func() error { request = make([]string, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -31579,8 +31579,6 @@ func (s *Server) decodeTestRequestStringBinaryArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request [][]string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -31591,6 +31589,8 @@ func (s *Server) decodeTestRequestStringBinaryArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request [][]string if err := func() error { request = make([][]string, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -31685,8 +31685,6 @@ func (s *Server) decodeTestRequestStringBinaryNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -31697,6 +31695,8 @@ func (s *Server) decodeTestRequestStringBinaryNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilString if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -31752,8 +31752,6 @@ func (s *Server) decodeTestRequestStringBinaryNullableArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, nil } - - var request []NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -31764,6 +31762,8 @@ func (s *Server) decodeTestRequestStringBinaryNullableArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request []NilString if err := func() error { request = make([]NilString, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -31826,8 +31826,6 @@ func (s *Server) decodeTestRequestStringBinaryNullableArrayArrayRequest(r *http. if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -31838,6 +31836,8 @@ func (s *Server) decodeTestRequestStringBinaryNullableArrayArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request [][]NilString if err := func() error { request = make([][]NilString, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -31930,8 +31930,6 @@ func (s *Server) decodeTestRequestStringByteRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -31942,6 +31940,8 @@ func (s *Server) decodeTestRequestStringByteRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []byte if err := func() error { v, err := d.Base64() request = []byte(v) @@ -31998,8 +31998,6 @@ func (s *Server) decodeTestRequestStringByteArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request [][]byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -32010,6 +32008,8 @@ func (s *Server) decodeTestRequestStringByteArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request [][]byte if err := func() error { request = make([][]byte, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -32074,8 +32074,6 @@ func (s *Server) decodeTestRequestStringByteArrayArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request [][][]byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -32086,6 +32084,8 @@ func (s *Server) decodeTestRequestStringByteArrayArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request [][][]byte if err := func() error { request = make([][][]byte, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -32180,8 +32180,6 @@ func (s *Server) decodeTestRequestStringByteNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilByte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -32192,6 +32190,8 @@ func (s *Server) decodeTestRequestStringByteNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilByte if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -32247,8 +32247,6 @@ func (s *Server) decodeTestRequestStringByteNullableArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, nil } - - var request [][]byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -32259,6 +32257,8 @@ func (s *Server) decodeTestRequestStringByteNullableArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request [][]byte if err := func() error { request = make([][]byte, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -32323,8 +32323,6 @@ func (s *Server) decodeTestRequestStringByteNullableArrayArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, nil } - - var request [][][]byte buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -32335,6 +32333,8 @@ func (s *Server) decodeTestRequestStringByteNullableArrayArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request [][][]byte if err := func() error { request = make([][][]byte, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -32429,8 +32429,6 @@ func (s *Server) decodeTestRequestStringDateRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptDate buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -32441,73 +32439,75 @@ func (s *Server) decodeTestRequestStringDateRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) - if err := func() error { - request.Reset() - if err := request.Decode(d, json.DecodeDate); err != nil { - return err - } - if err := d.Skip(); err != io.EOF { - return errors.New("unexpected trailing data") - } - return nil - }(); err != nil { - err = &ogenerrors.DecodeBodyError{ - ContentType: ct, - Body: buf, - Err: err, - } - return req, close, err - } - return request, close, nil - default: - return req, close, validate.InvalidContentType(ct) - } -} - -func (s *Server) decodeTestRequestStringDateArrayRequest(r *http.Request) ( - req []time.Time, - close func() error, - rerr error, -) { - var closers []func() error - close = func() error { - var merr error - // Close in reverse order, to match defer behavior. - for i := len(closers) - 1; i >= 0; i-- { - c := closers[i] - merr = multierr.Append(merr, c()) - } - return merr - } - defer func() { - if rerr != nil { - rerr = multierr.Append(rerr, close()) - } - }() - if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { - return 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 ct == "application/json": - if r.ContentLength == 0 { - return req, close, nil - } + + var request OptDate + if err := func() error { + request.Reset() + if err := request.Decode(d, json.DecodeDate); err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return req, close, err + } + return request, close, nil + default: + return req, close, validate.InvalidContentType(ct) + } +} + +func (s *Server) decodeTestRequestStringDateArrayRequest(r *http.Request) ( + req []time.Time, + close func() error, + rerr error, +) { + var closers []func() error + close = func() error { + var merr error + // Close in reverse order, to match defer behavior. + for i := len(closers) - 1; i >= 0; i-- { + c := closers[i] + merr = multierr.Append(merr, c()) + } + return merr + } + defer func() { + if rerr != nil { + rerr = multierr.Append(rerr, close()) + } + }() + if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { + return 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 ct == "application/json": + if r.ContentLength == 0 { + return req, close, nil + } + buf, err := io.ReadAll(r.Body) + if err != nil { + return req, close, err + } + + if len(buf) == 0 { + return req, close, nil + } + + d := jx.DecodeBytes(buf) var request []time.Time - buf, err := io.ReadAll(r.Body) - if err != nil { - return req, close, err - } - - if len(buf) == 0 { - return req, close, nil - } - - d := jx.DecodeBytes(buf) if err := func() error { request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -32572,8 +32572,6 @@ func (s *Server) decodeTestRequestStringDateArrayArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -32584,6 +32582,8 @@ func (s *Server) decodeTestRequestStringDateArrayArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -32678,8 +32678,6 @@ func (s *Server) decodeTestRequestStringDateNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilDate buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -32690,6 +32688,8 @@ func (s *Server) decodeTestRequestStringDateNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilDate if err := func() error { request.Reset() if err := request.Decode(d, json.DecodeDate); err != nil { @@ -32745,8 +32745,6 @@ func (s *Server) decodeTestRequestStringDateNullableArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, nil } - - var request []NilDate buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -32757,6 +32755,8 @@ func (s *Server) decodeTestRequestStringDateNullableArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request []NilDate if err := func() error { request = make([]NilDate, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -32819,8 +32819,6 @@ func (s *Server) decodeTestRequestStringDateNullableArrayArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilDate buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -32831,6 +32829,8 @@ func (s *Server) decodeTestRequestStringDateNullableArrayArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request [][]NilDate if err := func() error { request = make([][]NilDate, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -32923,8 +32923,6 @@ func (s *Server) decodeTestRequestStringDateTimeRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptDateTime buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -32935,6 +32933,8 @@ func (s *Server) decodeTestRequestStringDateTimeRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptDateTime if err := func() error { request.Reset() if err := request.Decode(d, json.DecodeDateTime); err != nil { @@ -32990,8 +32990,6 @@ func (s *Server) decodeTestRequestStringDateTimeArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -33002,6 +33000,8 @@ func (s *Server) decodeTestRequestStringDateTimeArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -33066,8 +33066,6 @@ func (s *Server) decodeTestRequestStringDateTimeArrayArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, nil } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -33078,6 +33076,8 @@ func (s *Server) decodeTestRequestStringDateTimeArrayArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -33172,8 +33172,6 @@ func (s *Server) decodeTestRequestStringDateTimeNullableRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request OptNilDateTime buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -33184,6 +33182,8 @@ func (s *Server) decodeTestRequestStringDateTimeNullableRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request OptNilDateTime if err := func() error { request.Reset() if err := request.Decode(d, json.DecodeDateTime); err != nil { @@ -33239,8 +33239,6 @@ func (s *Server) decodeTestRequestStringDateTimeNullableArrayRequest(r *http.Req if r.ContentLength == 0 { return req, close, nil } - - var request []NilDateTime buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -33251,6 +33249,8 @@ func (s *Server) decodeTestRequestStringDateTimeNullableArrayRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request []NilDateTime if err := func() error { request = make([]NilDateTime, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -33313,8 +33313,6 @@ func (s *Server) decodeTestRequestStringDateTimeNullableArrayArrayRequest(r *htt if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilDateTime buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -33325,6 +33323,8 @@ func (s *Server) decodeTestRequestStringDateTimeNullableArrayArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request [][]NilDateTime if err := func() error { request = make([][]NilDateTime, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -33417,8 +33417,6 @@ func (s *Server) decodeTestRequestStringDurationRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptDuration buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -33429,6 +33427,8 @@ func (s *Server) decodeTestRequestStringDurationRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptDuration if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -33484,8 +33484,6 @@ func (s *Server) decodeTestRequestStringDurationArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []time.Duration buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -33496,6 +33494,8 @@ func (s *Server) decodeTestRequestStringDurationArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []time.Duration if err := func() error { request = make([]time.Duration, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -33560,8 +33560,6 @@ func (s *Server) decodeTestRequestStringDurationArrayArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, nil } - - var request [][]time.Duration buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -33572,6 +33570,8 @@ func (s *Server) decodeTestRequestStringDurationArrayArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request [][]time.Duration if err := func() error { request = make([][]time.Duration, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -33666,8 +33666,6 @@ func (s *Server) decodeTestRequestStringDurationNullableRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request OptNilDuration buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -33678,6 +33676,8 @@ func (s *Server) decodeTestRequestStringDurationNullableRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request OptNilDuration if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -33733,8 +33733,6 @@ func (s *Server) decodeTestRequestStringDurationNullableArrayRequest(r *http.Req if r.ContentLength == 0 { return req, close, nil } - - var request []NilDuration buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -33745,6 +33743,8 @@ func (s *Server) decodeTestRequestStringDurationNullableArrayRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request []NilDuration if err := func() error { request = make([]NilDuration, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -33807,8 +33807,6 @@ func (s *Server) decodeTestRequestStringDurationNullableArrayArrayRequest(r *htt if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilDuration buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -33819,6 +33817,8 @@ func (s *Server) decodeTestRequestStringDurationNullableArrayArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request [][]NilDuration if err := func() error { request = make([][]NilDuration, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -33911,8 +33911,6 @@ func (s *Server) decodeTestRequestStringEmailRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -33923,6 +33921,8 @@ func (s *Server) decodeTestRequestStringEmailRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptString if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -34001,8 +34001,6 @@ func (s *Server) decodeTestRequestStringEmailArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -34013,6 +34011,8 @@ func (s *Server) decodeTestRequestStringEmailArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []string if err := func() error { request = make([]string, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -34107,8 +34107,6 @@ func (s *Server) decodeTestRequestStringEmailArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request [][]string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -34119,6 +34117,8 @@ func (s *Server) decodeTestRequestStringEmailArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request [][]string if err := func() error { request = make([][]string, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -34238,8 +34238,6 @@ func (s *Server) decodeTestRequestStringEmailNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -34250,6 +34248,8 @@ func (s *Server) decodeTestRequestStringEmailNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilString if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -34328,8 +34328,6 @@ func (s *Server) decodeTestRequestStringEmailNullableArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, nil } - - var request []NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -34340,6 +34338,8 @@ func (s *Server) decodeTestRequestStringEmailNullableArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request []NilString if err := func() error { request = make([]NilString, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -34432,8 +34432,6 @@ func (s *Server) decodeTestRequestStringEmailNullableArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -34444,6 +34442,8 @@ func (s *Server) decodeTestRequestStringEmailNullableArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request [][]NilString if err := func() error { request = make([][]NilString, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -34561,8 +34561,6 @@ func (s *Server) decodeTestRequestStringHostnameRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -34573,6 +34571,8 @@ func (s *Server) decodeTestRequestStringHostnameRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptString if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -34651,8 +34651,6 @@ func (s *Server) decodeTestRequestStringHostnameArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -34663,6 +34661,8 @@ func (s *Server) decodeTestRequestStringHostnameArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []string if err := func() error { request = make([]string, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -34757,8 +34757,6 @@ func (s *Server) decodeTestRequestStringHostnameArrayArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, nil } - - var request [][]string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -34769,6 +34767,8 @@ func (s *Server) decodeTestRequestStringHostnameArrayArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request [][]string if err := func() error { request = make([][]string, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -34888,8 +34888,6 @@ func (s *Server) decodeTestRequestStringHostnameNullableRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request OptNilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -34900,6 +34898,8 @@ func (s *Server) decodeTestRequestStringHostnameNullableRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request OptNilString if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -34978,8 +34978,6 @@ func (s *Server) decodeTestRequestStringHostnameNullableArrayRequest(r *http.Req if r.ContentLength == 0 { return req, close, nil } - - var request []NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -34990,6 +34988,8 @@ func (s *Server) decodeTestRequestStringHostnameNullableArrayRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request []NilString if err := func() error { request = make([]NilString, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -35082,8 +35082,6 @@ func (s *Server) decodeTestRequestStringHostnameNullableArrayArrayRequest(r *htt if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -35094,6 +35092,8 @@ func (s *Server) decodeTestRequestStringHostnameNullableArrayArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request [][]NilString if err := func() error { request = make([][]NilString, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -35211,8 +35211,6 @@ func (s *Server) decodeTestRequestStringIPRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptIP buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -35223,6 +35221,8 @@ func (s *Server) decodeTestRequestStringIPRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptIP if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -35278,84 +35278,82 @@ func (s *Server) decodeTestRequestStringIPArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } + buf, err := io.ReadAll(r.Body) + if err != nil { + return req, close, err + } - var request []netip.Addr - buf, err := io.ReadAll(r.Body) - if err != nil { - return req, close, err - } - - if len(buf) == 0 { - return req, close, nil - } - - d := jx.DecodeBytes(buf) - if err := func() error { - request = make([]netip.Addr, 0) - if err := d.Arr(func(d *jx.Decoder) error { - var elem netip.Addr - v, err := json.DecodeIP(d) - elem = v - if err != nil { - return err - } - request = append(request, elem) - return nil - }); err != nil { - return err - } - if err := d.Skip(); err != io.EOF { - return errors.New("unexpected trailing data") - } - return nil - }(); err != nil { - err = &ogenerrors.DecodeBodyError{ - ContentType: ct, - Body: buf, - Err: err, - } - return req, close, err - } - return request, close, nil - default: - return req, close, validate.InvalidContentType(ct) - } -} - -func (s *Server) decodeTestRequestStringIPArrayArrayRequest(r *http.Request) ( - req [][]netip.Addr, - close func() error, - rerr error, -) { - var closers []func() error - close = func() error { - var merr error - // Close in reverse order, to match defer behavior. - for i := len(closers) - 1; i >= 0; i-- { - c := closers[i] - merr = multierr.Append(merr, c()) - } - return merr - } - defer func() { - if rerr != nil { - rerr = multierr.Append(rerr, close()) - } - }() - if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { - return 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 ct == "application/json": - if r.ContentLength == 0 { - return req, close, nil - } - - var request [][]netip.Addr + if len(buf) == 0 { + return req, close, nil + } + + d := jx.DecodeBytes(buf) + + var request []netip.Addr + if err := func() error { + request = make([]netip.Addr, 0) + if err := d.Arr(func(d *jx.Decoder) error { + var elem netip.Addr + v, err := json.DecodeIP(d) + elem = v + if err != nil { + return err + } + request = append(request, elem) + return nil + }); err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return req, close, err + } + return request, close, nil + default: + return req, close, validate.InvalidContentType(ct) + } +} + +func (s *Server) decodeTestRequestStringIPArrayArrayRequest(r *http.Request) ( + req [][]netip.Addr, + close func() error, + rerr error, +) { + var closers []func() error + close = func() error { + var merr error + // Close in reverse order, to match defer behavior. + for i := len(closers) - 1; i >= 0; i-- { + c := closers[i] + merr = multierr.Append(merr, c()) + } + return merr + } + defer func() { + if rerr != nil { + rerr = multierr.Append(rerr, close()) + } + }() + if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { + return 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 ct == "application/json": + if r.ContentLength == 0 { + return req, close, nil + } buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -35366,6 +35364,8 @@ func (s *Server) decodeTestRequestStringIPArrayArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request [][]netip.Addr if err := func() error { request = make([][]netip.Addr, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -35460,8 +35460,6 @@ func (s *Server) decodeTestRequestStringIPNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilIP buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -35472,6 +35470,8 @@ func (s *Server) decodeTestRequestStringIPNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilIP if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -35527,8 +35527,6 @@ func (s *Server) decodeTestRequestStringIPNullableArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request []NilIP buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -35539,6 +35537,8 @@ func (s *Server) decodeTestRequestStringIPNullableArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request []NilIP if err := func() error { request = make([]NilIP, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -35601,8 +35601,6 @@ func (s *Server) decodeTestRequestStringIPNullableArrayArrayRequest(r *http.Requ if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilIP buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -35613,6 +35611,8 @@ func (s *Server) decodeTestRequestStringIPNullableArrayArrayRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request [][]NilIP if err := func() error { request = make([][]NilIP, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -35705,8 +35705,6 @@ func (s *Server) decodeTestRequestStringInt32Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptStringInt32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -35717,6 +35715,8 @@ func (s *Server) decodeTestRequestStringInt32Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptStringInt32 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -35772,8 +35772,6 @@ func (s *Server) decodeTestRequestStringInt32ArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []int32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -35784,6 +35782,8 @@ func (s *Server) decodeTestRequestStringInt32ArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []int32 if err := func() error { request = make([]int32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -35848,8 +35848,6 @@ func (s *Server) decodeTestRequestStringInt32ArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request [][]int32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -35860,6 +35858,8 @@ func (s *Server) decodeTestRequestStringInt32ArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request [][]int32 if err := func() error { request = make([][]int32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -35954,8 +35954,6 @@ func (s *Server) decodeTestRequestStringInt32NullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilStringInt32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -35966,6 +35964,8 @@ func (s *Server) decodeTestRequestStringInt32NullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilStringInt32 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -36021,8 +36021,6 @@ func (s *Server) decodeTestRequestStringInt32NullableArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, nil } - - var request []NilStringInt32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -36033,6 +36031,8 @@ func (s *Server) decodeTestRequestStringInt32NullableArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request []NilStringInt32 if err := func() error { request = make([]NilStringInt32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -36095,8 +36095,6 @@ func (s *Server) decodeTestRequestStringInt32NullableArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilStringInt32 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -36107,6 +36105,8 @@ func (s *Server) decodeTestRequestStringInt32NullableArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request [][]NilStringInt32 if err := func() error { request = make([][]NilStringInt32, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -36199,8 +36199,6 @@ func (s *Server) decodeTestRequestStringInt64Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptStringInt64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -36211,6 +36209,8 @@ func (s *Server) decodeTestRequestStringInt64Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptStringInt64 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -36266,8 +36266,6 @@ func (s *Server) decodeTestRequestStringInt64ArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []int64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -36278,6 +36276,8 @@ func (s *Server) decodeTestRequestStringInt64ArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []int64 if err := func() error { request = make([]int64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -36342,8 +36342,6 @@ func (s *Server) decodeTestRequestStringInt64ArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request [][]int64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -36354,6 +36352,8 @@ func (s *Server) decodeTestRequestStringInt64ArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request [][]int64 if err := func() error { request = make([][]int64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -36448,8 +36448,6 @@ func (s *Server) decodeTestRequestStringInt64NullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilStringInt64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -36460,6 +36458,8 @@ func (s *Server) decodeTestRequestStringInt64NullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilStringInt64 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -36515,8 +36515,6 @@ func (s *Server) decodeTestRequestStringInt64NullableArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, nil } - - var request []NilStringInt64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -36527,6 +36525,8 @@ func (s *Server) decodeTestRequestStringInt64NullableArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request []NilStringInt64 if err := func() error { request = make([]NilStringInt64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -36589,8 +36589,6 @@ func (s *Server) decodeTestRequestStringInt64NullableArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilStringInt64 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -36601,6 +36599,8 @@ func (s *Server) decodeTestRequestStringInt64NullableArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request [][]NilStringInt64 if err := func() error { request = make([][]NilStringInt64, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -36693,8 +36693,6 @@ func (s *Server) decodeTestRequestStringIpv4Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptIPv4 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -36705,6 +36703,8 @@ func (s *Server) decodeTestRequestStringIpv4Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptIPv4 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -36760,8 +36760,6 @@ func (s *Server) decodeTestRequestStringIpv4ArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []netip.Addr buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -36772,6 +36770,8 @@ func (s *Server) decodeTestRequestStringIpv4ArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []netip.Addr if err := func() error { request = make([]netip.Addr, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -36836,8 +36836,6 @@ func (s *Server) decodeTestRequestStringIpv4ArrayArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request [][]netip.Addr buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -36848,6 +36846,8 @@ func (s *Server) decodeTestRequestStringIpv4ArrayArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request [][]netip.Addr if err := func() error { request = make([][]netip.Addr, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -36942,8 +36942,6 @@ func (s *Server) decodeTestRequestStringIpv4NullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilIPv4 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -36954,6 +36952,8 @@ func (s *Server) decodeTestRequestStringIpv4NullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilIPv4 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -37009,8 +37009,6 @@ func (s *Server) decodeTestRequestStringIpv4NullableArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, nil } - - var request []NilIPv4 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -37021,6 +37019,8 @@ func (s *Server) decodeTestRequestStringIpv4NullableArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request []NilIPv4 if err := func() error { request = make([]NilIPv4, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -37083,8 +37083,6 @@ func (s *Server) decodeTestRequestStringIpv4NullableArrayArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilIPv4 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -37095,6 +37093,8 @@ func (s *Server) decodeTestRequestStringIpv4NullableArrayArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request [][]NilIPv4 if err := func() error { request = make([][]NilIPv4, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -37187,8 +37187,6 @@ func (s *Server) decodeTestRequestStringIpv6Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptIPv6 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -37199,6 +37197,8 @@ func (s *Server) decodeTestRequestStringIpv6Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptIPv6 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -37254,8 +37254,6 @@ func (s *Server) decodeTestRequestStringIpv6ArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []netip.Addr buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -37266,6 +37264,8 @@ func (s *Server) decodeTestRequestStringIpv6ArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []netip.Addr if err := func() error { request = make([]netip.Addr, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -37330,8 +37330,6 @@ func (s *Server) decodeTestRequestStringIpv6ArrayArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request [][]netip.Addr buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -37342,6 +37340,8 @@ func (s *Server) decodeTestRequestStringIpv6ArrayArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request [][]netip.Addr if err := func() error { request = make([][]netip.Addr, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -37436,8 +37436,6 @@ func (s *Server) decodeTestRequestStringIpv6NullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilIPv6 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -37448,6 +37446,8 @@ func (s *Server) decodeTestRequestStringIpv6NullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilIPv6 if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -37503,8 +37503,6 @@ func (s *Server) decodeTestRequestStringIpv6NullableArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, nil } - - var request []NilIPv6 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -37515,6 +37513,8 @@ func (s *Server) decodeTestRequestStringIpv6NullableArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request []NilIPv6 if err := func() error { request = make([]NilIPv6, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -37577,8 +37577,6 @@ func (s *Server) decodeTestRequestStringIpv6NullableArrayArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilIPv6 buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -37589,6 +37587,8 @@ func (s *Server) decodeTestRequestStringIpv6NullableArrayArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request [][]NilIPv6 if err := func() error { request = make([][]NilIPv6, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -37681,8 +37681,6 @@ func (s *Server) decodeTestRequestStringNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -37693,6 +37691,8 @@ func (s *Server) decodeTestRequestStringNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilString if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -37748,8 +37748,6 @@ func (s *Server) decodeTestRequestStringNullableArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -37760,6 +37758,8 @@ func (s *Server) decodeTestRequestStringNullableArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []NilString if err := func() error { request = make([]NilString, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -37822,8 +37822,6 @@ func (s *Server) decodeTestRequestStringNullableArrayArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -37834,6 +37832,8 @@ func (s *Server) decodeTestRequestStringNullableArrayArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request [][]NilString if err := func() error { request = make([][]NilString, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -37926,8 +37926,6 @@ func (s *Server) decodeTestRequestStringPasswordRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -37938,6 +37936,8 @@ func (s *Server) decodeTestRequestStringPasswordRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptString if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -37993,8 +37993,6 @@ func (s *Server) decodeTestRequestStringPasswordArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -38005,6 +38003,8 @@ func (s *Server) decodeTestRequestStringPasswordArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []string if err := func() error { request = make([]string, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -38069,8 +38069,6 @@ func (s *Server) decodeTestRequestStringPasswordArrayArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, nil } - - var request [][]string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -38081,6 +38079,8 @@ func (s *Server) decodeTestRequestStringPasswordArrayArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request [][]string if err := func() error { request = make([][]string, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -38175,8 +38175,6 @@ func (s *Server) decodeTestRequestStringPasswordNullableRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request OptNilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -38187,6 +38185,8 @@ func (s *Server) decodeTestRequestStringPasswordNullableRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request OptNilString if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -38242,8 +38242,6 @@ func (s *Server) decodeTestRequestStringPasswordNullableArrayRequest(r *http.Req if r.ContentLength == 0 { return req, close, nil } - - var request []NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -38254,6 +38252,8 @@ func (s *Server) decodeTestRequestStringPasswordNullableArrayRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request []NilString if err := func() error { request = make([]NilString, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -38316,8 +38316,6 @@ func (s *Server) decodeTestRequestStringPasswordNullableArrayArrayRequest(r *htt if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -38328,6 +38326,8 @@ func (s *Server) decodeTestRequestStringPasswordNullableArrayArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request [][]NilString if err := func() error { request = make([][]NilString, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -38420,8 +38420,6 @@ func (s *Server) decodeTestRequestStringTimeRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptTime buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -38432,6 +38430,8 @@ func (s *Server) decodeTestRequestStringTimeRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptTime if err := func() error { request.Reset() if err := request.Decode(d, json.DecodeTime); err != nil { @@ -38487,8 +38487,6 @@ func (s *Server) decodeTestRequestStringTimeArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -38499,6 +38497,8 @@ func (s *Server) decodeTestRequestStringTimeArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -38563,8 +38563,6 @@ func (s *Server) decodeTestRequestStringTimeArrayArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -38575,6 +38573,8 @@ func (s *Server) decodeTestRequestStringTimeArrayArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -38669,8 +38669,6 @@ func (s *Server) decodeTestRequestStringTimeNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilTime buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -38681,6 +38679,8 @@ func (s *Server) decodeTestRequestStringTimeNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilTime if err := func() error { request.Reset() if err := request.Decode(d, json.DecodeTime); err != nil { @@ -38736,8 +38736,6 @@ func (s *Server) decodeTestRequestStringTimeNullableArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, nil } - - var request []NilTime buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -38748,6 +38746,8 @@ func (s *Server) decodeTestRequestStringTimeNullableArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request []NilTime if err := func() error { request = make([]NilTime, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -38810,8 +38810,6 @@ func (s *Server) decodeTestRequestStringTimeNullableArrayArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilTime buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -38822,6 +38820,8 @@ func (s *Server) decodeTestRequestStringTimeNullableArrayArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request [][]NilTime if err := func() error { request = make([][]NilTime, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -38914,8 +38914,6 @@ func (s *Server) decodeTestRequestStringURIRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptURI buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -38926,6 +38924,8 @@ func (s *Server) decodeTestRequestStringURIRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptURI if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -38981,8 +38981,6 @@ func (s *Server) decodeTestRequestStringURIArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []url.URL buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -38993,6 +38991,8 @@ func (s *Server) decodeTestRequestStringURIArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []url.URL if err := func() error { request = make([]url.URL, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -39057,8 +39057,6 @@ func (s *Server) decodeTestRequestStringURIArrayArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request [][]url.URL buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -39069,6 +39067,8 @@ func (s *Server) decodeTestRequestStringURIArrayArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request [][]url.URL if err := func() error { request = make([][]url.URL, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -39163,8 +39163,6 @@ func (s *Server) decodeTestRequestStringURINullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilURI buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -39175,6 +39173,8 @@ func (s *Server) decodeTestRequestStringURINullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilURI if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -39230,8 +39230,6 @@ func (s *Server) decodeTestRequestStringURINullableArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request []NilURI buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -39242,6 +39240,8 @@ func (s *Server) decodeTestRequestStringURINullableArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request []NilURI if err := func() error { request = make([]NilURI, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -39304,8 +39304,6 @@ func (s *Server) decodeTestRequestStringURINullableArrayArrayRequest(r *http.Req if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilURI buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -39316,6 +39314,8 @@ func (s *Server) decodeTestRequestStringURINullableArrayArrayRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request [][]NilURI if err := func() error { request = make([][]NilURI, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -39408,8 +39408,6 @@ func (s *Server) decodeTestRequestStringUUIDRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptUUID buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -39420,6 +39418,8 @@ func (s *Server) decodeTestRequestStringUUIDRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptUUID if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -39475,8 +39475,6 @@ func (s *Server) decodeTestRequestStringUUIDArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []uuid.UUID buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -39487,6 +39485,8 @@ func (s *Server) decodeTestRequestStringUUIDArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []uuid.UUID if err := func() error { request = make([]uuid.UUID, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -39551,8 +39551,6 @@ func (s *Server) decodeTestRequestStringUUIDArrayArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request [][]uuid.UUID buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -39563,6 +39561,8 @@ func (s *Server) decodeTestRequestStringUUIDArrayArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request [][]uuid.UUID if err := func() error { request = make([][]uuid.UUID, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -39657,8 +39657,6 @@ func (s *Server) decodeTestRequestStringUUIDNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilUUID buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -39669,6 +39667,8 @@ func (s *Server) decodeTestRequestStringUUIDNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilUUID if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -39724,8 +39724,6 @@ func (s *Server) decodeTestRequestStringUUIDNullableArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, nil } - - var request []NilUUID buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -39736,6 +39734,8 @@ func (s *Server) decodeTestRequestStringUUIDNullableArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request []NilUUID if err := func() error { request = make([]NilUUID, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -39798,8 +39798,6 @@ func (s *Server) decodeTestRequestStringUUIDNullableArrayArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilUUID buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -39810,6 +39808,8 @@ func (s *Server) decodeTestRequestStringUUIDNullableArrayArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request [][]NilUUID if err := func() error { request = make([][]NilUUID, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -39902,8 +39902,6 @@ func (s *Server) decodeTestRequestStringUnixRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptStringUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -39914,6 +39912,8 @@ func (s *Server) decodeTestRequestStringUnixRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptStringUnixSeconds if err := func() error { request.Reset() if err := request.Decode(d, json.DecodeStringUnixSeconds); err != nil { @@ -39969,8 +39969,6 @@ func (s *Server) decodeTestRequestStringUnixArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -39981,6 +39979,8 @@ func (s *Server) decodeTestRequestStringUnixArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -40045,8 +40045,6 @@ func (s *Server) decodeTestRequestStringUnixArrayArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -40057,6 +40055,8 @@ func (s *Server) decodeTestRequestStringUnixArrayArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -40151,8 +40151,6 @@ func (s *Server) decodeTestRequestStringUnixMicroRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptStringUnixMicro buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -40163,6 +40161,8 @@ func (s *Server) decodeTestRequestStringUnixMicroRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptStringUnixMicro if err := func() error { request.Reset() if err := request.Decode(d, json.DecodeStringUnixMicro); err != nil { @@ -40218,8 +40218,6 @@ func (s *Server) decodeTestRequestStringUnixMicroArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -40230,6 +40228,8 @@ func (s *Server) decodeTestRequestStringUnixMicroArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -40294,8 +40294,6 @@ func (s *Server) decodeTestRequestStringUnixMicroArrayArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, nil } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -40306,6 +40304,8 @@ func (s *Server) decodeTestRequestStringUnixMicroArrayArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -40400,8 +40400,6 @@ func (s *Server) decodeTestRequestStringUnixMicroNullableRequest(r *http.Request if r.ContentLength == 0 { return req, close, nil } - - var request OptNilStringUnixMicro buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -40412,6 +40410,8 @@ func (s *Server) decodeTestRequestStringUnixMicroNullableRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request OptNilStringUnixMicro if err := func() error { request.Reset() if err := request.Decode(d, json.DecodeStringUnixMicro); err != nil { @@ -40467,8 +40467,6 @@ func (s *Server) decodeTestRequestStringUnixMicroNullableArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, nil } - - var request []NilStringUnixMicro buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -40479,6 +40477,8 @@ func (s *Server) decodeTestRequestStringUnixMicroNullableArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request []NilStringUnixMicro if err := func() error { request = make([]NilStringUnixMicro, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -40541,8 +40541,6 @@ func (s *Server) decodeTestRequestStringUnixMicroNullableArrayArrayRequest(r *ht if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilStringUnixMicro buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -40553,6 +40551,8 @@ func (s *Server) decodeTestRequestStringUnixMicroNullableArrayArrayRequest(r *ht } d := jx.DecodeBytes(buf) + + var request [][]NilStringUnixMicro if err := func() error { request = make([][]NilStringUnixMicro, 0) if err := d.Arr(func(d *jx.Decoder) error { @@ -40645,8 +40645,6 @@ func (s *Server) decodeTestRequestStringUnixMilliRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptStringUnixMilli buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -40657,6 +40655,8 @@ func (s *Server) decodeTestRequestStringUnixMilliRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptStringUnixMilli if err := func() error { request.Reset() if err := request.Decode(d, json.DecodeStringUnixMilli); err != nil { @@ -40712,8 +40712,255 @@ func (s *Server) decodeTestRequestStringUnixMilliArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } + buf, err := io.ReadAll(r.Body) + if err != nil { + return req, close, err + } + + if len(buf) == 0 { + return req, close, nil + } + + d := jx.DecodeBytes(buf) + + var request []time.Time + if err := func() error { + request = make([]time.Time, 0) + if err := d.Arr(func(d *jx.Decoder) error { + var elem time.Time + v, err := json.DecodeStringUnixMilli(d) + elem = v + if err != nil { + return err + } + request = append(request, elem) + return nil + }); err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return req, close, err + } + return request, close, nil + default: + return req, close, validate.InvalidContentType(ct) + } +} + +func (s *Server) decodeTestRequestStringUnixMilliArrayArrayRequest(r *http.Request) ( + req [][]time.Time, + close func() error, + rerr error, +) { + var closers []func() error + close = func() error { + var merr error + // Close in reverse order, to match defer behavior. + for i := len(closers) - 1; i >= 0; i-- { + c := closers[i] + merr = multierr.Append(merr, c()) + } + return merr + } + defer func() { + if rerr != nil { + rerr = multierr.Append(rerr, close()) + } + }() + if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { + return 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 ct == "application/json": + if r.ContentLength == 0 { + return req, close, nil + } + buf, err := io.ReadAll(r.Body) + if err != nil { + return req, close, err + } + + if len(buf) == 0 { + return req, close, nil + } + + d := jx.DecodeBytes(buf) + + var request [][]time.Time + if err := func() error { + request = make([][]time.Time, 0) + if err := d.Arr(func(d *jx.Decoder) error { + var elem []time.Time + elem = make([]time.Time, 0) + if err := d.Arr(func(d *jx.Decoder) error { + var elemElem time.Time + v, err := json.DecodeStringUnixMilli(d) + elemElem = v + if err != nil { + return err + } + elem = append(elem, elemElem) + return nil + }); err != nil { + return err + } + request = append(request, elem) + return nil + }); err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return req, close, err + } + if err := func() error { + var failures []validate.FieldError + for i, elem := range request { + if err := func() error { + if elem == nil { + return errors.New("nil is invalid value") + } + return nil + }(); err != nil { + failures = append(failures, validate.FieldError{ + Name: fmt.Sprintf("[%d]", i), + Error: err, + }) + } + } + if len(failures) > 0 { + return &validate.Error{Fields: failures} + } + return nil + }(); err != nil { + return req, close, errors.Wrap(err, "validate") + } + return request, close, nil + default: + return req, close, validate.InvalidContentType(ct) + } +} + +func (s *Server) decodeTestRequestStringUnixMilliNullableRequest(r *http.Request) ( + req OptNilStringUnixMilli, + close func() error, + rerr error, +) { + var closers []func() error + close = func() error { + var merr error + // Close in reverse order, to match defer behavior. + for i := len(closers) - 1; i >= 0; i-- { + c := closers[i] + merr = multierr.Append(merr, c()) + } + return merr + } + defer func() { + if rerr != nil { + rerr = multierr.Append(rerr, close()) + } + }() + if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { + return 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 ct == "application/json": + if r.ContentLength == 0 { + return req, close, nil + } + buf, err := io.ReadAll(r.Body) + if err != nil { + return req, close, err + } - var request []time.Time + if len(buf) == 0 { + return req, close, nil + } + + d := jx.DecodeBytes(buf) + + var request OptNilStringUnixMilli + if err := func() error { + request.Reset() + if err := request.Decode(d, json.DecodeStringUnixMilli); err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return req, close, err + } + return request, close, nil + default: + return req, close, validate.InvalidContentType(ct) + } +} + +func (s *Server) decodeTestRequestStringUnixMilliNullableArrayRequest(r *http.Request) ( + req []NilStringUnixMilli, + close func() error, + rerr error, +) { + var closers []func() error + close = func() error { + var merr error + // Close in reverse order, to match defer behavior. + for i := len(closers) - 1; i >= 0; i-- { + c := closers[i] + merr = multierr.Append(merr, c()) + } + return merr + } + defer func() { + if rerr != nil { + rerr = multierr.Append(rerr, close()) + } + }() + if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { + return 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 ct == "application/json": + if r.ContentLength == 0 { + return req, close, nil + } buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -40724,13 +40971,13 @@ func (s *Server) decodeTestRequestStringUnixMilliArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []NilStringUnixMilli if err := func() error { - request = make([]time.Time, 0) + request = make([]NilStringUnixMilli, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem time.Time - v, err := json.DecodeStringUnixMilli(d) - elem = v - if err != nil { + var elem NilStringUnixMilli + if err := elem.Decode(d, json.DecodeStringUnixMilli); err != nil { return err } request = append(request, elem) @@ -40756,8 +41003,8 @@ func (s *Server) decodeTestRequestStringUnixMilliArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestRequestStringUnixMilliArrayArrayRequest(r *http.Request) ( - req [][]time.Time, +func (s *Server) decodeTestRequestStringUnixMilliNullableArrayArrayRequest(r *http.Request) ( + req [][]NilStringUnixMilli, close func() error, rerr error, ) { @@ -40788,8 +41035,6 @@ func (s *Server) decodeTestRequestStringUnixMilliArrayArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, nil } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -40800,16 +41045,16 @@ func (s *Server) decodeTestRequestStringUnixMilliArrayArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request [][]NilStringUnixMilli if err := func() error { - request = make([][]time.Time, 0) + request = make([][]NilStringUnixMilli, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []time.Time - elem = make([]time.Time, 0) + var elem []NilStringUnixMilli + elem = make([]NilStringUnixMilli, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem time.Time - v, err := json.DecodeStringUnixMilli(d) - elemElem = v - if err != nil { + var elemElem NilStringUnixMilli + if err := elemElem.Decode(d, json.DecodeStringUnixMilli); err != nil { return err } elem = append(elem, elemElem) @@ -40862,8 +41107,8 @@ func (s *Server) decodeTestRequestStringUnixMilliArrayArrayRequest(r *http.Reque } } -func (s *Server) decodeTestRequestStringUnixMilliNullableRequest(r *http.Request) ( - req OptNilStringUnixMilli, +func (s *Server) decodeTestRequestStringUnixNanoRequest(r *http.Request) ( + req OptStringUnixNano, close func() error, rerr error, ) { @@ -40894,8 +41139,6 @@ func (s *Server) decodeTestRequestStringUnixMilliNullableRequest(r *http.Request if r.ContentLength == 0 { return req, close, nil } - - var request OptNilStringUnixMilli buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -40906,9 +41149,11 @@ func (s *Server) decodeTestRequestStringUnixMilliNullableRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request OptStringUnixNano if err := func() error { request.Reset() - if err := request.Decode(d, json.DecodeStringUnixMilli); err != nil { + if err := request.Decode(d, json.DecodeStringUnixNano); err != nil { return err } if err := d.Skip(); err != io.EOF { @@ -40929,8 +41174,8 @@ func (s *Server) decodeTestRequestStringUnixMilliNullableRequest(r *http.Request } } -func (s *Server) decodeTestRequestStringUnixMilliNullableArrayRequest(r *http.Request) ( - req []NilStringUnixMilli, +func (s *Server) decodeTestRequestStringUnixNanoArrayRequest(r *http.Request) ( + req []time.Time, close func() error, rerr error, ) { @@ -40961,8 +41206,6 @@ func (s *Server) decodeTestRequestStringUnixMilliNullableArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, nil } - - var request []NilStringUnixMilli buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -40973,11 +41216,15 @@ func (s *Server) decodeTestRequestStringUnixMilliNullableArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { - request = make([]NilStringUnixMilli, 0) + request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilStringUnixMilli - if err := elem.Decode(d, json.DecodeStringUnixMilli); err != nil { + var elem time.Time + v, err := json.DecodeStringUnixNano(d) + elem = v + if err != nil { return err } request = append(request, elem) @@ -41003,8 +41250,8 @@ func (s *Server) decodeTestRequestStringUnixMilliNullableArrayRequest(r *http.Re } } -func (s *Server) decodeTestRequestStringUnixMilliNullableArrayArrayRequest(r *http.Request) ( - req [][]NilStringUnixMilli, +func (s *Server) decodeTestRequestStringUnixNanoArrayArrayRequest(r *http.Request) ( + req [][]time.Time, close func() error, rerr error, ) { @@ -41035,8 +41282,6 @@ func (s *Server) decodeTestRequestStringUnixMilliNullableArrayArrayRequest(r *ht if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilStringUnixMilli buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -41047,14 +41292,18 @@ func (s *Server) decodeTestRequestStringUnixMilliNullableArrayArrayRequest(r *ht } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { - request = make([][]NilStringUnixMilli, 0) + request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilStringUnixMilli - elem = make([]NilStringUnixMilli, 0) + var elem []time.Time + elem = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilStringUnixMilli - if err := elemElem.Decode(d, json.DecodeStringUnixMilli); err != nil { + var elemElem time.Time + v, err := json.DecodeStringUnixNano(d) + elemElem = v + if err != nil { return err } elem = append(elem, elemElem) @@ -41107,8 +41356,8 @@ func (s *Server) decodeTestRequestStringUnixMilliNullableArrayArrayRequest(r *ht } } -func (s *Server) decodeTestRequestStringUnixNanoRequest(r *http.Request) ( - req OptStringUnixNano, +func (s *Server) decodeTestRequestStringUnixNanoNullableRequest(r *http.Request) ( + req OptNilStringUnixNano, close func() error, rerr error, ) { @@ -41139,8 +41388,6 @@ func (s *Server) decodeTestRequestStringUnixNanoRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptStringUnixNano buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -41151,6 +41398,8 @@ func (s *Server) decodeTestRequestStringUnixNanoRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilStringUnixNano if err := func() error { request.Reset() if err := request.Decode(d, json.DecodeStringUnixNano); err != nil { @@ -41174,8 +41423,8 @@ func (s *Server) decodeTestRequestStringUnixNanoRequest(r *http.Request) ( } } -func (s *Server) decodeTestRequestStringUnixNanoArrayRequest(r *http.Request) ( - req []time.Time, +func (s *Server) decodeTestRequestStringUnixNanoNullableArrayRequest(r *http.Request) ( + req []NilStringUnixNano, close func() error, rerr error, ) { @@ -41206,8 +41455,6 @@ func (s *Server) decodeTestRequestStringUnixNanoArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -41218,13 +41465,13 @@ func (s *Server) decodeTestRequestStringUnixNanoArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request []NilStringUnixNano if err := func() error { - request = make([]time.Time, 0) + request = make([]NilStringUnixNano, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem time.Time - v, err := json.DecodeStringUnixNano(d) - elem = v - if err != nil { + var elem NilStringUnixNano + if err := elem.Decode(d, json.DecodeStringUnixNano); err != nil { return err } request = append(request, elem) @@ -41250,8 +41497,8 @@ func (s *Server) decodeTestRequestStringUnixNanoArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestRequestStringUnixNanoArrayArrayRequest(r *http.Request) ( - req [][]time.Time, +func (s *Server) decodeTestRequestStringUnixNanoNullableArrayArrayRequest(r *http.Request) ( + req [][]NilStringUnixNano, close func() error, rerr error, ) { @@ -41282,8 +41529,6 @@ func (s *Server) decodeTestRequestStringUnixNanoArrayArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, nil } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -41294,16 +41539,16 @@ func (s *Server) decodeTestRequestStringUnixNanoArrayArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request [][]NilStringUnixNano if err := func() error { - request = make([][]time.Time, 0) + request = make([][]NilStringUnixNano, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []time.Time - elem = make([]time.Time, 0) + var elem []NilStringUnixNano + elem = make([]NilStringUnixNano, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem time.Time - v, err := json.DecodeStringUnixNano(d) - elemElem = v - if err != nil { + var elemElem NilStringUnixNano + if err := elemElem.Decode(d, json.DecodeStringUnixNano); err != nil { return err } elem = append(elem, elemElem) @@ -41356,8 +41601,8 @@ func (s *Server) decodeTestRequestStringUnixNanoArrayArrayRequest(r *http.Reques } } -func (s *Server) decodeTestRequestStringUnixNanoNullableRequest(r *http.Request) ( - req OptNilStringUnixNano, +func (s *Server) decodeTestRequestStringUnixNullableRequest(r *http.Request) ( + req OptNilStringUnixSeconds, close func() error, rerr error, ) { @@ -41388,8 +41633,6 @@ func (s *Server) decodeTestRequestStringUnixNanoNullableRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request OptNilStringUnixNano buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -41400,9 +41643,11 @@ func (s *Server) decodeTestRequestStringUnixNanoNullableRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request OptNilStringUnixSeconds if err := func() error { request.Reset() - if err := request.Decode(d, json.DecodeStringUnixNano); err != nil { + if err := request.Decode(d, json.DecodeStringUnixSeconds); err != nil { return err } if err := d.Skip(); err != io.EOF { @@ -41423,8 +41668,8 @@ func (s *Server) decodeTestRequestStringUnixNanoNullableRequest(r *http.Request) } } -func (s *Server) decodeTestRequestStringUnixNanoNullableArrayRequest(r *http.Request) ( - req []NilStringUnixNano, +func (s *Server) decodeTestRequestStringUnixNullableArrayRequest(r *http.Request) ( + req []NilStringUnixSeconds, close func() error, rerr error, ) { @@ -41455,8 +41700,6 @@ func (s *Server) decodeTestRequestStringUnixNanoNullableArrayRequest(r *http.Req if r.ContentLength == 0 { return req, close, nil } - - var request []NilStringUnixNano buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -41467,11 +41710,13 @@ func (s *Server) decodeTestRequestStringUnixNanoNullableArrayRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request []NilStringUnixSeconds if err := func() error { - request = make([]NilStringUnixNano, 0) + request = make([]NilStringUnixSeconds, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilStringUnixNano - if err := elem.Decode(d, json.DecodeStringUnixNano); err != nil { + var elem NilStringUnixSeconds + if err := elem.Decode(d, json.DecodeStringUnixSeconds); err != nil { return err } request = append(request, elem) @@ -41497,8 +41742,8 @@ func (s *Server) decodeTestRequestStringUnixNanoNullableArrayRequest(r *http.Req } } -func (s *Server) decodeTestRequestStringUnixNanoNullableArrayArrayRequest(r *http.Request) ( - req [][]NilStringUnixNano, +func (s *Server) decodeTestRequestStringUnixNullableArrayArrayRequest(r *http.Request) ( + req [][]NilStringUnixSeconds, close func() error, rerr error, ) { @@ -41529,8 +41774,6 @@ func (s *Server) decodeTestRequestStringUnixNanoNullableArrayArrayRequest(r *htt if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilStringUnixNano buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -41541,14 +41784,16 @@ func (s *Server) decodeTestRequestStringUnixNanoNullableArrayArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request [][]NilStringUnixSeconds if err := func() error { - request = make([][]NilStringUnixNano, 0) + request = make([][]NilStringUnixSeconds, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilStringUnixNano - elem = make([]NilStringUnixNano, 0) + var elem []NilStringUnixSeconds + elem = make([]NilStringUnixSeconds, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilStringUnixNano - if err := elemElem.Decode(d, json.DecodeStringUnixNano); err != nil { + var elemElem NilStringUnixSeconds + if err := elemElem.Decode(d, json.DecodeStringUnixSeconds); err != nil { return err } elem = append(elem, elemElem) @@ -41601,8 +41846,8 @@ func (s *Server) decodeTestRequestStringUnixNanoNullableArrayArrayRequest(r *htt } } -func (s *Server) decodeTestRequestStringUnixNullableRequest(r *http.Request) ( - req OptNilStringUnixSeconds, +func (s *Server) decodeTestRequestStringUnixSecondsRequest(r *http.Request) ( + req OptStringUnixSeconds, close func() error, rerr error, ) { @@ -41633,8 +41878,6 @@ func (s *Server) decodeTestRequestStringUnixNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptNilStringUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -41645,6 +41888,8 @@ func (s *Server) decodeTestRequestStringUnixNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptStringUnixSeconds if err := func() error { request.Reset() if err := request.Decode(d, json.DecodeStringUnixSeconds); err != nil { @@ -41668,8 +41913,8 @@ func (s *Server) decodeTestRequestStringUnixNullableRequest(r *http.Request) ( } } -func (s *Server) decodeTestRequestStringUnixNullableArrayRequest(r *http.Request) ( - req []NilStringUnixSeconds, +func (s *Server) decodeTestRequestStringUnixSecondsArrayRequest(r *http.Request) ( + req []time.Time, close func() error, rerr error, ) { @@ -41700,8 +41945,6 @@ func (s *Server) decodeTestRequestStringUnixNullableArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, nil } - - var request []NilStringUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -41712,11 +41955,15 @@ func (s *Server) decodeTestRequestStringUnixNullableArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request []time.Time if err := func() error { - request = make([]NilStringUnixSeconds, 0) + request = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem NilStringUnixSeconds - if err := elem.Decode(d, json.DecodeStringUnixSeconds); err != nil { + var elem time.Time + v, err := json.DecodeStringUnixSeconds(d) + elem = v + if err != nil { return err } request = append(request, elem) @@ -41742,8 +41989,8 @@ func (s *Server) decodeTestRequestStringUnixNullableArrayRequest(r *http.Request } } -func (s *Server) decodeTestRequestStringUnixNullableArrayArrayRequest(r *http.Request) ( - req [][]NilStringUnixSeconds, +func (s *Server) decodeTestRequestStringUnixSecondsArrayArrayRequest(r *http.Request) ( + req [][]time.Time, close func() error, rerr error, ) { @@ -41774,8 +42021,6 @@ func (s *Server) decodeTestRequestStringUnixNullableArrayArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, nil } - - var request [][]NilStringUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -41786,14 +42031,18 @@ func (s *Server) decodeTestRequestStringUnixNullableArrayArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request [][]time.Time if err := func() error { - request = make([][]NilStringUnixSeconds, 0) + request = make([][]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilStringUnixSeconds - elem = make([]NilStringUnixSeconds, 0) + var elem []time.Time + elem = make([]time.Time, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilStringUnixSeconds - if err := elemElem.Decode(d, json.DecodeStringUnixSeconds); err != nil { + var elemElem time.Time + v, err := json.DecodeStringUnixSeconds(d) + elemElem = v + if err != nil { return err } elem = append(elem, elemElem) @@ -41846,8 +42095,8 @@ func (s *Server) decodeTestRequestStringUnixNullableArrayArrayRequest(r *http.Re } } -func (s *Server) decodeTestRequestStringUnixSecondsRequest(r *http.Request) ( - req OptStringUnixSeconds, +func (s *Server) decodeTestRequestStringUnixSecondsNullableRequest(r *http.Request) ( + req OptNilStringUnixSeconds, close func() error, rerr error, ) { @@ -41878,8 +42127,6 @@ func (s *Server) decodeTestRequestStringUnixSecondsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptStringUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -41890,6 +42137,8 @@ func (s *Server) decodeTestRequestStringUnixSecondsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptNilStringUnixSeconds if err := func() error { request.Reset() if err := request.Decode(d, json.DecodeStringUnixSeconds); err != nil { @@ -41913,8 +42162,8 @@ func (s *Server) decodeTestRequestStringUnixSecondsRequest(r *http.Request) ( } } -func (s *Server) decodeTestRequestStringUnixSecondsArrayRequest(r *http.Request) ( - req []time.Time, +func (s *Server) decodeTestRequestStringUnixSecondsNullableArrayRequest(r *http.Request) ( + req []NilStringUnixSeconds, close func() error, rerr error, ) { @@ -41945,8 +42194,6 @@ func (s *Server) decodeTestRequestStringUnixSecondsArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, nil } - - var request []time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -41957,13 +42204,13 @@ func (s *Server) decodeTestRequestStringUnixSecondsArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request []NilStringUnixSeconds if err := func() error { - request = make([]time.Time, 0) + request = make([]NilStringUnixSeconds, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem time.Time - v, err := json.DecodeStringUnixSeconds(d) - elem = v - if err != nil { + var elem NilStringUnixSeconds + if err := elem.Decode(d, json.DecodeStringUnixSeconds); err != nil { return err } request = append(request, elem) @@ -41989,8 +42236,8 @@ func (s *Server) decodeTestRequestStringUnixSecondsArrayRequest(r *http.Request) } } -func (s *Server) decodeTestRequestStringUnixSecondsArrayArrayRequest(r *http.Request) ( - req [][]time.Time, +func (s *Server) decodeTestRequestStringUnixSecondsNullableArrayArrayRequest(r *http.Request) ( + req [][]NilStringUnixSeconds, close func() error, rerr error, ) { @@ -42021,8 +42268,6 @@ func (s *Server) decodeTestRequestStringUnixSecondsArrayArrayRequest(r *http.Req if r.ContentLength == 0 { return req, close, nil } - - var request [][]time.Time buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -42033,16 +42278,16 @@ func (s *Server) decodeTestRequestStringUnixSecondsArrayArrayRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request [][]NilStringUnixSeconds if err := func() error { - request = make([][]time.Time, 0) + request = make([][]NilStringUnixSeconds, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elem []time.Time - elem = make([]time.Time, 0) + var elem []NilStringUnixSeconds + elem = make([]NilStringUnixSeconds, 0) if err := d.Arr(func(d *jx.Decoder) error { - var elemElem time.Time - v, err := json.DecodeStringUnixSeconds(d) - elemElem = v - if err != nil { + var elemElem NilStringUnixSeconds + if err := elemElem.Decode(d, json.DecodeStringUnixSeconds); err != nil { return err } elem = append(elem, elemElem) @@ -42095,8 +42340,8 @@ func (s *Server) decodeTestRequestStringUnixSecondsArrayArrayRequest(r *http.Req } } -func (s *Server) decodeTestRequestStringUnixSecondsNullableRequest(r *http.Request) ( - req OptNilStringUnixSeconds, +func (s *Server) decodeTestResponseAnyRequest(r *http.Request) ( + req string, close func() error, rerr error, ) { @@ -42115,9 +42360,6 @@ func (s *Server) decodeTestRequestStringUnixSecondsNullableRequest(r *http.Reque rerr = multierr.Append(rerr, close()) } }() - if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { - return req, close, nil - } ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -42125,97 +42367,24 @@ func (s *Server) decodeTestRequestStringUnixSecondsNullableRequest(r *http.Reque switch { case ct == "application/json": if r.ContentLength == 0 { - return req, close, nil + return req, close, validate.ErrBodyRequired } - - var request OptNilStringUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err } if len(buf) == 0 { - return req, close, nil + return req, close, validate.ErrBodyRequired } d := jx.DecodeBytes(buf) - if err := func() error { - request.Reset() - if err := request.Decode(d, json.DecodeStringUnixSeconds); err != nil { - return err - } - if err := d.Skip(); err != io.EOF { - return errors.New("unexpected trailing data") - } - return nil - }(); err != nil { - err = &ogenerrors.DecodeBodyError{ - ContentType: ct, - Body: buf, - Err: err, - } - return req, close, err - } - return request, close, nil - default: - return req, close, validate.InvalidContentType(ct) - } -} - -func (s *Server) decodeTestRequestStringUnixSecondsNullableArrayRequest(r *http.Request) ( - req []NilStringUnixSeconds, - close func() error, - rerr error, -) { - var closers []func() error - close = func() error { - var merr error - // Close in reverse order, to match defer behavior. - for i := len(closers) - 1; i >= 0; i-- { - c := closers[i] - merr = multierr.Append(merr, c()) - } - return merr - } - defer func() { - if rerr != nil { - rerr = multierr.Append(rerr, close()) - } - }() - if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { - return 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 ct == "application/json": - if r.ContentLength == 0 { - return req, close, nil - } - var request []NilStringUnixSeconds - buf, err := io.ReadAll(r.Body) - if err != nil { - return req, close, err - } - - if len(buf) == 0 { - return req, close, nil - } - - d := jx.DecodeBytes(buf) + var request string if err := func() error { - request = make([]NilStringUnixSeconds, 0) - if err := d.Arr(func(d *jx.Decoder) error { - var elem NilStringUnixSeconds - if err := elem.Decode(d, json.DecodeStringUnixSeconds); err != nil { - return err - } - request = append(request, elem) - return nil - }); err != nil { + v, err := d.Str() + request = string(v) + if err != nil { return err } if err := d.Skip(); err != io.EOF { @@ -42236,8 +42405,8 @@ func (s *Server) decodeTestRequestStringUnixSecondsNullableArrayRequest(r *http. } } -func (s *Server) decodeTestRequestStringUnixSecondsNullableArrayArrayRequest(r *http.Request) ( - req [][]NilStringUnixSeconds, +func (s *Server) decodeTestResponseBooleanRequest(r *http.Request) ( + req string, close func() error, rerr error, ) { @@ -42256,9 +42425,6 @@ func (s *Server) decodeTestRequestStringUnixSecondsNullableArrayArrayRequest(r * rerr = multierr.Append(rerr, close()) } }() - if _, ok := r.Header["Content-Type"]; !ok && r.ContentLength == 0 { - return req, close, nil - } ct, _, err := mime.ParseMediaType(r.Header.Get("Content-Type")) if err != nil { return req, close, errors.Wrap(err, "parse media type") @@ -42266,38 +42432,24 @@ func (s *Server) decodeTestRequestStringUnixSecondsNullableArrayArrayRequest(r * switch { case ct == "application/json": if r.ContentLength == 0 { - return req, close, nil + return req, close, validate.ErrBodyRequired } - - var request [][]NilStringUnixSeconds buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err } if len(buf) == 0 { - return req, close, nil + return req, close, validate.ErrBodyRequired } d := jx.DecodeBytes(buf) + + var request string if err := func() error { - request = make([][]NilStringUnixSeconds, 0) - if err := d.Arr(func(d *jx.Decoder) error { - var elem []NilStringUnixSeconds - elem = make([]NilStringUnixSeconds, 0) - if err := d.Arr(func(d *jx.Decoder) error { - var elemElem NilStringUnixSeconds - if err := elemElem.Decode(d, json.DecodeStringUnixSeconds); err != nil { - return err - } - elem = append(elem, elemElem) - return nil - }); err != nil { - return err - } - request = append(request, elem) - return nil - }); err != nil { + v, err := d.Str() + request = string(v) + if err != nil { return err } if err := d.Skip(); err != io.EOF { @@ -42312,35 +42464,13 @@ func (s *Server) decodeTestRequestStringUnixSecondsNullableArrayArrayRequest(r * } return req, close, err } - if err := func() error { - var failures []validate.FieldError - for i, elem := range request { - if err := func() error { - if elem == nil { - return errors.New("nil is invalid value") - } - return nil - }(); err != nil { - failures = append(failures, validate.FieldError{ - Name: fmt.Sprintf("[%d]", i), - Error: err, - }) - } - } - if len(failures) > 0 { - return &validate.Error{Fields: failures} - } - return nil - }(); err != nil { - return req, close, errors.Wrap(err, "validate") - } return request, close, nil default: return req, close, validate.InvalidContentType(ct) } } -func (s *Server) decodeTestResponseAnyRequest(r *http.Request) ( +func (s *Server) decodeTestResponseBooleanArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -42369,8 +42499,6 @@ func (s *Server) decodeTestResponseAnyRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -42381,6 +42509,8 @@ func (s *Server) decodeTestResponseAnyRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -42405,7 +42535,7 @@ func (s *Server) decodeTestResponseAnyRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseBooleanRequest(r *http.Request) ( +func (s *Server) decodeTestResponseBooleanArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -42434,8 +42564,6 @@ func (s *Server) decodeTestResponseBooleanRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -42446,6 +42574,8 @@ func (s *Server) decodeTestResponseBooleanRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -42470,7 +42600,7 @@ func (s *Server) decodeTestResponseBooleanRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseBooleanArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseBooleanNullableRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -42499,8 +42629,6 @@ func (s *Server) decodeTestResponseBooleanArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -42511,6 +42639,8 @@ func (s *Server) decodeTestResponseBooleanArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -42535,7 +42665,7 @@ func (s *Server) decodeTestResponseBooleanArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseBooleanArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseBooleanNullableArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -42564,8 +42694,6 @@ func (s *Server) decodeTestResponseBooleanArrayArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -42576,6 +42704,8 @@ func (s *Server) decodeTestResponseBooleanArrayArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -42600,7 +42730,7 @@ func (s *Server) decodeTestResponseBooleanArrayArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseBooleanNullableRequest(r *http.Request) ( +func (s *Server) decodeTestResponseBooleanNullableArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -42629,8 +42759,6 @@ func (s *Server) decodeTestResponseBooleanNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -42641,6 +42769,8 @@ func (s *Server) decodeTestResponseBooleanNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -42665,7 +42795,7 @@ func (s *Server) decodeTestResponseBooleanNullableRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseBooleanNullableArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseEmptyStructRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -42694,8 +42824,6 @@ func (s *Server) decodeTestResponseBooleanNullableArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -42706,6 +42834,8 @@ func (s *Server) decodeTestResponseBooleanNullableArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -42730,7 +42860,7 @@ func (s *Server) decodeTestResponseBooleanNullableArrayRequest(r *http.Request) } } -func (s *Server) decodeTestResponseBooleanNullableArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseFormatTestRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -42759,8 +42889,6 @@ func (s *Server) decodeTestResponseBooleanNullableArrayArrayRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -42771,6 +42899,8 @@ func (s *Server) decodeTestResponseBooleanNullableArrayArrayRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -42795,7 +42925,7 @@ func (s *Server) decodeTestResponseBooleanNullableArrayArrayRequest(r *http.Requ } } -func (s *Server) decodeTestResponseEmptyStructRequest(r *http.Request) ( +func (s *Server) decodeTestResponseIntegerRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -42824,8 +42954,6 @@ func (s *Server) decodeTestResponseEmptyStructRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -42836,6 +42964,8 @@ func (s *Server) decodeTestResponseEmptyStructRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -42860,7 +42990,7 @@ func (s *Server) decodeTestResponseEmptyStructRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseFormatTestRequest(r *http.Request) ( +func (s *Server) decodeTestResponseIntegerArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -42889,8 +43019,6 @@ func (s *Server) decodeTestResponseFormatTestRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -42901,71 +43029,8 @@ func (s *Server) decodeTestResponseFormatTestRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) - if err := func() error { - v, err := d.Str() - request = string(v) - if err != nil { - return err - } - if err := d.Skip(); err != io.EOF { - return errors.New("unexpected trailing data") - } - return nil - }(); err != nil { - err = &ogenerrors.DecodeBodyError{ - ContentType: ct, - Body: buf, - Err: err, - } - return req, close, err - } - return request, close, nil - default: - return req, close, validate.InvalidContentType(ct) - } -} - -func (s *Server) decodeTestResponseIntegerRequest(r *http.Request) ( - req string, - close func() error, - rerr error, -) { - var closers []func() error - close = func() error { - var merr error - // Close in reverse order, to match defer behavior. - for i := len(closers) - 1; i >= 0; i-- { - c := closers[i] - merr = multierr.Append(merr, c()) - } - return merr - } - defer func() { - if rerr != nil { - rerr = multierr.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 ct == "application/json": - if r.ContentLength == 0 { - return req, close, validate.ErrBodyRequired - } var request string - buf, err := io.ReadAll(r.Body) - if err != nil { - return req, close, err - } - - if len(buf) == 0 { - return req, close, validate.ErrBodyRequired - } - - d := jx.DecodeBytes(buf) if err := func() error { v, err := d.Str() request = string(v) @@ -42990,7 +43055,7 @@ func (s *Server) decodeTestResponseIntegerRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseIntegerArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseIntegerArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -43019,8 +43084,6 @@ func (s *Server) decodeTestResponseIntegerArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -43031,71 +43094,8 @@ func (s *Server) decodeTestResponseIntegerArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) - if err := func() error { - v, err := d.Str() - request = string(v) - if err != nil { - return err - } - if err := d.Skip(); err != io.EOF { - return errors.New("unexpected trailing data") - } - return nil - }(); err != nil { - err = &ogenerrors.DecodeBodyError{ - ContentType: ct, - Body: buf, - Err: err, - } - return req, close, err - } - return request, close, nil - default: - return req, close, validate.InvalidContentType(ct) - } -} - -func (s *Server) decodeTestResponseIntegerArrayArrayRequest(r *http.Request) ( - req string, - close func() error, - rerr error, -) { - var closers []func() error - close = func() error { - var merr error - // Close in reverse order, to match defer behavior. - for i := len(closers) - 1; i >= 0; i-- { - c := closers[i] - merr = multierr.Append(merr, c()) - } - return merr - } - defer func() { - if rerr != nil { - rerr = multierr.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 ct == "application/json": - if r.ContentLength == 0 { - return req, close, validate.ErrBodyRequired - } var request string - buf, err := io.ReadAll(r.Body) - if err != nil { - return req, close, err - } - - if len(buf) == 0 { - return req, close, validate.ErrBodyRequired - } - - d := jx.DecodeBytes(buf) if err := func() error { v, err := d.Str() request = string(v) @@ -43149,8 +43149,6 @@ func (s *Server) decodeTestResponseIntegerInt32Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -43161,6 +43159,8 @@ func (s *Server) decodeTestResponseIntegerInt32Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -43214,8 +43214,6 @@ func (s *Server) decodeTestResponseIntegerInt32ArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -43226,6 +43224,8 @@ func (s *Server) decodeTestResponseIntegerInt32ArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -43279,8 +43279,6 @@ func (s *Server) decodeTestResponseIntegerInt32ArrayArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -43291,6 +43289,8 @@ func (s *Server) decodeTestResponseIntegerInt32ArrayArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -43344,8 +43344,6 @@ func (s *Server) decodeTestResponseIntegerInt32NullableRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -43356,6 +43354,8 @@ func (s *Server) decodeTestResponseIntegerInt32NullableRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -43409,8 +43409,6 @@ func (s *Server) decodeTestResponseIntegerInt32NullableArrayRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -43421,6 +43419,8 @@ func (s *Server) decodeTestResponseIntegerInt32NullableArrayRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -43474,8 +43474,6 @@ func (s *Server) decodeTestResponseIntegerInt32NullableArrayArrayRequest(r *http if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -43486,6 +43484,8 @@ func (s *Server) decodeTestResponseIntegerInt32NullableArrayArrayRequest(r *http } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -43539,8 +43539,6 @@ func (s *Server) decodeTestResponseIntegerInt64Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -43551,6 +43549,8 @@ func (s *Server) decodeTestResponseIntegerInt64Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -43604,8 +43604,6 @@ func (s *Server) decodeTestResponseIntegerInt64ArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -43616,6 +43614,8 @@ func (s *Server) decodeTestResponseIntegerInt64ArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -43669,8 +43669,6 @@ func (s *Server) decodeTestResponseIntegerInt64ArrayArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -43681,6 +43679,8 @@ func (s *Server) decodeTestResponseIntegerInt64ArrayArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -43734,8 +43734,6 @@ func (s *Server) decodeTestResponseIntegerInt64NullableRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -43746,6 +43744,8 @@ func (s *Server) decodeTestResponseIntegerInt64NullableRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -43799,8 +43799,6 @@ func (s *Server) decodeTestResponseIntegerInt64NullableArrayRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -43811,6 +43809,8 @@ func (s *Server) decodeTestResponseIntegerInt64NullableArrayRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -43864,8 +43864,6 @@ func (s *Server) decodeTestResponseIntegerInt64NullableArrayArrayRequest(r *http if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -43876,6 +43874,8 @@ func (s *Server) decodeTestResponseIntegerInt64NullableArrayArrayRequest(r *http } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -43929,8 +43929,6 @@ func (s *Server) decodeTestResponseIntegerNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -43941,6 +43939,8 @@ func (s *Server) decodeTestResponseIntegerNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -43994,8 +43994,6 @@ func (s *Server) decodeTestResponseIntegerNullableArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -44006,6 +44004,8 @@ func (s *Server) decodeTestResponseIntegerNullableArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -44059,8 +44059,6 @@ func (s *Server) decodeTestResponseIntegerNullableArrayArrayRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -44071,71 +44069,8 @@ func (s *Server) decodeTestResponseIntegerNullableArrayArrayRequest(r *http.Requ } d := jx.DecodeBytes(buf) - if err := func() error { - v, err := d.Str() - request = string(v) - if err != nil { - return err - } - if err := d.Skip(); err != io.EOF { - return errors.New("unexpected trailing data") - } - return nil - }(); err != nil { - err = &ogenerrors.DecodeBodyError{ - ContentType: ct, - Body: buf, - Err: err, - } - return req, close, err - } - return request, close, nil - default: - return req, close, validate.InvalidContentType(ct) - } -} - -func (s *Server) decodeTestResponseIntegerUintRequest(r *http.Request) ( - req string, - close func() error, - rerr error, -) { - var closers []func() error - close = func() error { - var merr error - // Close in reverse order, to match defer behavior. - for i := len(closers) - 1; i >= 0; i-- { - c := closers[i] - merr = multierr.Append(merr, c()) - } - return merr - } - defer func() { - if rerr != nil { - rerr = multierr.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 ct == "application/json": - if r.ContentLength == 0 { - return req, close, validate.ErrBodyRequired - } var request string - buf, err := io.ReadAll(r.Body) - if err != nil { - return req, close, err - } - - if len(buf) == 0 { - return req, close, validate.ErrBodyRequired - } - - d := jx.DecodeBytes(buf) if err := func() error { v, err := d.Str() request = string(v) @@ -44160,7 +44095,7 @@ func (s *Server) decodeTestResponseIntegerUintRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseIntegerUint32Request(r *http.Request) ( +func (s *Server) decodeTestResponseIntegerUintRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -44189,8 +44124,71 @@ func (s *Server) decodeTestResponseIntegerUint32Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } + buf, err := io.ReadAll(r.Body) + if err != nil { + return req, close, err + } + + if len(buf) == 0 { + return req, close, validate.ErrBodyRequired + } + + d := jx.DecodeBytes(buf) var request string + if err := func() error { + v, err := d.Str() + request = string(v) + if err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return req, close, err + } + return request, close, nil + default: + return req, close, validate.InvalidContentType(ct) + } +} + +func (s *Server) decodeTestResponseIntegerUint32Request(r *http.Request) ( + req string, + close func() error, + rerr error, +) { + var closers []func() error + close = func() error { + var merr error + // Close in reverse order, to match defer behavior. + for i := len(closers) - 1; i >= 0; i-- { + c := closers[i] + merr = multierr.Append(merr, c()) + } + return merr + } + defer func() { + if rerr != nil { + rerr = multierr.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 ct == "application/json": + if r.ContentLength == 0 { + return req, close, validate.ErrBodyRequired + } buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -44201,6 +44199,8 @@ func (s *Server) decodeTestResponseIntegerUint32Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -44254,8 +44254,6 @@ func (s *Server) decodeTestResponseIntegerUint32ArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -44266,6 +44264,8 @@ func (s *Server) decodeTestResponseIntegerUint32ArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -44319,8 +44319,6 @@ func (s *Server) decodeTestResponseIntegerUint32ArrayArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -44331,6 +44329,8 @@ func (s *Server) decodeTestResponseIntegerUint32ArrayArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -44384,8 +44384,6 @@ func (s *Server) decodeTestResponseIntegerUint32NullableRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -44396,6 +44394,8 @@ func (s *Server) decodeTestResponseIntegerUint32NullableRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -44449,8 +44449,6 @@ func (s *Server) decodeTestResponseIntegerUint32NullableArrayRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -44461,6 +44459,8 @@ func (s *Server) decodeTestResponseIntegerUint32NullableArrayRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -44514,8 +44514,6 @@ func (s *Server) decodeTestResponseIntegerUint32NullableArrayArrayRequest(r *htt if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -44526,6 +44524,8 @@ func (s *Server) decodeTestResponseIntegerUint32NullableArrayArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -44579,8 +44579,6 @@ func (s *Server) decodeTestResponseIntegerUint64Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -44591,6 +44589,8 @@ func (s *Server) decodeTestResponseIntegerUint64Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -44644,8 +44644,6 @@ func (s *Server) decodeTestResponseIntegerUint64ArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -44656,6 +44654,8 @@ func (s *Server) decodeTestResponseIntegerUint64ArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -44709,8 +44709,6 @@ func (s *Server) decodeTestResponseIntegerUint64ArrayArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -44721,6 +44719,8 @@ func (s *Server) decodeTestResponseIntegerUint64ArrayArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -44774,8 +44774,6 @@ func (s *Server) decodeTestResponseIntegerUint64NullableRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -44786,6 +44784,8 @@ func (s *Server) decodeTestResponseIntegerUint64NullableRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -44839,8 +44839,6 @@ func (s *Server) decodeTestResponseIntegerUint64NullableArrayRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -44851,6 +44849,8 @@ func (s *Server) decodeTestResponseIntegerUint64NullableArrayRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -44904,8 +44904,6 @@ func (s *Server) decodeTestResponseIntegerUint64NullableArrayArrayRequest(r *htt if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -44916,6 +44914,8 @@ func (s *Server) decodeTestResponseIntegerUint64NullableArrayArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -44969,8 +44969,6 @@ func (s *Server) decodeTestResponseIntegerUintArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -44981,6 +44979,8 @@ func (s *Server) decodeTestResponseIntegerUintArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -45034,8 +45034,6 @@ func (s *Server) decodeTestResponseIntegerUintArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -45046,6 +45044,8 @@ func (s *Server) decodeTestResponseIntegerUintArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -45099,8 +45099,6 @@ func (s *Server) decodeTestResponseIntegerUintNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -45111,6 +45109,8 @@ func (s *Server) decodeTestResponseIntegerUintNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -45164,8 +45164,6 @@ func (s *Server) decodeTestResponseIntegerUintNullableArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -45176,6 +45174,8 @@ func (s *Server) decodeTestResponseIntegerUintNullableArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -45229,8 +45229,6 @@ func (s *Server) decodeTestResponseIntegerUintNullableArrayArrayRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -45241,6 +45239,8 @@ func (s *Server) decodeTestResponseIntegerUintNullableArrayArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -45294,8 +45294,6 @@ func (s *Server) decodeTestResponseIntegerUnixRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -45306,6 +45304,8 @@ func (s *Server) decodeTestResponseIntegerUnixRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -45359,8 +45359,6 @@ func (s *Server) decodeTestResponseIntegerUnixArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -45371,6 +45369,8 @@ func (s *Server) decodeTestResponseIntegerUnixArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -45424,8 +45424,6 @@ func (s *Server) decodeTestResponseIntegerUnixArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -45436,6 +45434,8 @@ func (s *Server) decodeTestResponseIntegerUnixArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -45489,8 +45489,6 @@ func (s *Server) decodeTestResponseIntegerUnixMicroRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -45501,6 +45499,8 @@ func (s *Server) decodeTestResponseIntegerUnixMicroRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -45554,8 +45554,6 @@ func (s *Server) decodeTestResponseIntegerUnixMicroArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -45566,6 +45564,8 @@ func (s *Server) decodeTestResponseIntegerUnixMicroArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -45619,8 +45619,6 @@ func (s *Server) decodeTestResponseIntegerUnixMicroArrayArrayRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -45631,6 +45629,8 @@ func (s *Server) decodeTestResponseIntegerUnixMicroArrayArrayRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -45684,8 +45684,6 @@ func (s *Server) decodeTestResponseIntegerUnixMicroNullableRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -45696,6 +45694,8 @@ func (s *Server) decodeTestResponseIntegerUnixMicroNullableRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -45749,8 +45749,6 @@ func (s *Server) decodeTestResponseIntegerUnixMicroNullableArrayRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -45761,6 +45759,8 @@ func (s *Server) decodeTestResponseIntegerUnixMicroNullableArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -45814,8 +45814,6 @@ func (s *Server) decodeTestResponseIntegerUnixMicroNullableArrayArrayRequest(r * if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -45826,6 +45824,8 @@ func (s *Server) decodeTestResponseIntegerUnixMicroNullableArrayArrayRequest(r * } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -45879,8 +45879,6 @@ func (s *Server) decodeTestResponseIntegerUnixMilliRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -45891,6 +45889,8 @@ func (s *Server) decodeTestResponseIntegerUnixMilliRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -45944,8 +45944,6 @@ func (s *Server) decodeTestResponseIntegerUnixMilliArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -45956,6 +45954,8 @@ func (s *Server) decodeTestResponseIntegerUnixMilliArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -46009,8 +46009,6 @@ func (s *Server) decodeTestResponseIntegerUnixMilliArrayArrayRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -46021,6 +46019,8 @@ func (s *Server) decodeTestResponseIntegerUnixMilliArrayArrayRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -46074,8 +46074,6 @@ func (s *Server) decodeTestResponseIntegerUnixMilliNullableRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -46086,6 +46084,8 @@ func (s *Server) decodeTestResponseIntegerUnixMilliNullableRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -46139,8 +46139,6 @@ func (s *Server) decodeTestResponseIntegerUnixMilliNullableArrayRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -46151,6 +46149,8 @@ func (s *Server) decodeTestResponseIntegerUnixMilliNullableArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -46204,8 +46204,6 @@ func (s *Server) decodeTestResponseIntegerUnixMilliNullableArrayArrayRequest(r * if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -46216,6 +46214,8 @@ func (s *Server) decodeTestResponseIntegerUnixMilliNullableArrayArrayRequest(r * } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -46269,8 +46269,6 @@ func (s *Server) decodeTestResponseIntegerUnixNanoRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -46281,6 +46279,8 @@ func (s *Server) decodeTestResponseIntegerUnixNanoRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -46334,8 +46334,6 @@ func (s *Server) decodeTestResponseIntegerUnixNanoArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -46346,6 +46344,8 @@ func (s *Server) decodeTestResponseIntegerUnixNanoArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -46399,8 +46399,6 @@ func (s *Server) decodeTestResponseIntegerUnixNanoArrayArrayRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -46411,6 +46409,8 @@ func (s *Server) decodeTestResponseIntegerUnixNanoArrayArrayRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -46464,8 +46464,6 @@ func (s *Server) decodeTestResponseIntegerUnixNanoNullableRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -46476,6 +46474,8 @@ func (s *Server) decodeTestResponseIntegerUnixNanoNullableRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -46529,8 +46529,6 @@ func (s *Server) decodeTestResponseIntegerUnixNanoNullableArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -46541,6 +46539,8 @@ func (s *Server) decodeTestResponseIntegerUnixNanoNullableArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -46594,8 +46594,6 @@ func (s *Server) decodeTestResponseIntegerUnixNanoNullableArrayArrayRequest(r *h if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -46606,6 +46604,8 @@ func (s *Server) decodeTestResponseIntegerUnixNanoNullableArrayArrayRequest(r *h } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -46659,8 +46659,6 @@ func (s *Server) decodeTestResponseIntegerUnixNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -46671,6 +46669,8 @@ func (s *Server) decodeTestResponseIntegerUnixNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -46724,8 +46724,6 @@ func (s *Server) decodeTestResponseIntegerUnixNullableArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -46736,6 +46734,8 @@ func (s *Server) decodeTestResponseIntegerUnixNullableArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -46789,8 +46789,6 @@ func (s *Server) decodeTestResponseIntegerUnixNullableArrayArrayRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -46801,6 +46799,8 @@ func (s *Server) decodeTestResponseIntegerUnixNullableArrayArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -46854,8 +46854,6 @@ func (s *Server) decodeTestResponseIntegerUnixSecondsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -46866,6 +46864,8 @@ func (s *Server) decodeTestResponseIntegerUnixSecondsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -46919,8 +46919,6 @@ func (s *Server) decodeTestResponseIntegerUnixSecondsArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -46931,6 +46929,8 @@ func (s *Server) decodeTestResponseIntegerUnixSecondsArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -46984,8 +46984,6 @@ func (s *Server) decodeTestResponseIntegerUnixSecondsArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -46996,6 +46994,8 @@ func (s *Server) decodeTestResponseIntegerUnixSecondsArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -47049,8 +47049,6 @@ func (s *Server) decodeTestResponseIntegerUnixSecondsNullableRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -47061,6 +47059,8 @@ func (s *Server) decodeTestResponseIntegerUnixSecondsNullableRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -47114,8 +47114,6 @@ func (s *Server) decodeTestResponseIntegerUnixSecondsNullableArrayRequest(r *htt if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -47126,6 +47124,8 @@ func (s *Server) decodeTestResponseIntegerUnixSecondsNullableArrayRequest(r *htt } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -47179,8 +47179,6 @@ func (s *Server) decodeTestResponseIntegerUnixSecondsNullableArrayArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -47191,6 +47189,8 @@ func (s *Server) decodeTestResponseIntegerUnixSecondsNullableArrayArrayRequest(r } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -47244,8 +47244,6 @@ func (s *Server) decodeTestResponseNullRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -47256,6 +47254,8 @@ func (s *Server) decodeTestResponseNullRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -47309,8 +47309,6 @@ func (s *Server) decodeTestResponseNullArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -47321,6 +47319,8 @@ func (s *Server) decodeTestResponseNullArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -47374,8 +47374,6 @@ func (s *Server) decodeTestResponseNullArrayArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -47386,6 +47384,8 @@ func (s *Server) decodeTestResponseNullArrayArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -47439,8 +47439,6 @@ func (s *Server) decodeTestResponseNullNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -47451,6 +47449,8 @@ func (s *Server) decodeTestResponseNullNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -47504,8 +47504,6 @@ func (s *Server) decodeTestResponseNullNullableArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -47516,6 +47514,8 @@ func (s *Server) decodeTestResponseNullNullableArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -47569,8 +47569,6 @@ func (s *Server) decodeTestResponseNullNullableArrayArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -47581,6 +47579,8 @@ func (s *Server) decodeTestResponseNullNullableArrayArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -47634,8 +47634,6 @@ func (s *Server) decodeTestResponseNumberRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -47646,6 +47644,8 @@ func (s *Server) decodeTestResponseNumberRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -47699,8 +47699,6 @@ func (s *Server) decodeTestResponseNumberArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -47711,6 +47709,8 @@ func (s *Server) decodeTestResponseNumberArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -47764,8 +47764,6 @@ func (s *Server) decodeTestResponseNumberArrayArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -47776,6 +47774,8 @@ func (s *Server) decodeTestResponseNumberArrayArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -47829,8 +47829,6 @@ func (s *Server) decodeTestResponseNumberDoubleRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -47841,6 +47839,8 @@ func (s *Server) decodeTestResponseNumberDoubleRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -47894,8 +47894,6 @@ func (s *Server) decodeTestResponseNumberDoubleArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -47906,6 +47904,8 @@ func (s *Server) decodeTestResponseNumberDoubleArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -47959,8 +47959,6 @@ func (s *Server) decodeTestResponseNumberDoubleArrayArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -47971,6 +47969,8 @@ func (s *Server) decodeTestResponseNumberDoubleArrayArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -48024,8 +48024,6 @@ func (s *Server) decodeTestResponseNumberDoubleNullableRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -48036,6 +48034,8 @@ func (s *Server) decodeTestResponseNumberDoubleNullableRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -48089,8 +48089,6 @@ func (s *Server) decodeTestResponseNumberDoubleNullableArrayRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -48101,6 +48099,8 @@ func (s *Server) decodeTestResponseNumberDoubleNullableArrayRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -48154,8 +48154,6 @@ func (s *Server) decodeTestResponseNumberDoubleNullableArrayArrayRequest(r *http if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -48166,6 +48164,8 @@ func (s *Server) decodeTestResponseNumberDoubleNullableArrayArrayRequest(r *http } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -48219,8 +48219,6 @@ func (s *Server) decodeTestResponseNumberFloatRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -48231,6 +48229,8 @@ func (s *Server) decodeTestResponseNumberFloatRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -48284,8 +48284,6 @@ func (s *Server) decodeTestResponseNumberFloatArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -48296,71 +48294,8 @@ func (s *Server) decodeTestResponseNumberFloatArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) - if err := func() error { - v, err := d.Str() - request = string(v) - if err != nil { - return err - } - if err := d.Skip(); err != io.EOF { - return errors.New("unexpected trailing data") - } - return nil - }(); err != nil { - err = &ogenerrors.DecodeBodyError{ - ContentType: ct, - Body: buf, - Err: err, - } - return req, close, err - } - return request, close, nil - default: - return req, close, validate.InvalidContentType(ct) - } -} - -func (s *Server) decodeTestResponseNumberFloatArrayArrayRequest(r *http.Request) ( - req string, - close func() error, - rerr error, -) { - var closers []func() error - close = func() error { - var merr error - // Close in reverse order, to match defer behavior. - for i := len(closers) - 1; i >= 0; i-- { - c := closers[i] - merr = multierr.Append(merr, c()) - } - return merr - } - defer func() { - if rerr != nil { - rerr = multierr.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 ct == "application/json": - if r.ContentLength == 0 { - return req, close, validate.ErrBodyRequired - } var request string - buf, err := io.ReadAll(r.Body) - if err != nil { - return req, close, err - } - - if len(buf) == 0 { - return req, close, validate.ErrBodyRequired - } - - d := jx.DecodeBytes(buf) if err := func() error { v, err := d.Str() request = string(v) @@ -48385,7 +48320,7 @@ func (s *Server) decodeTestResponseNumberFloatArrayArrayRequest(r *http.Request) } } -func (s *Server) decodeTestResponseNumberFloatNullableRequest(r *http.Request) ( +func (s *Server) decodeTestResponseNumberFloatArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -48414,8 +48349,6 @@ func (s *Server) decodeTestResponseNumberFloatNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -48426,71 +48359,8 @@ func (s *Server) decodeTestResponseNumberFloatNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) - if err := func() error { - v, err := d.Str() - request = string(v) - if err != nil { - return err - } - if err := d.Skip(); err != io.EOF { - return errors.New("unexpected trailing data") - } - return nil - }(); err != nil { - err = &ogenerrors.DecodeBodyError{ - ContentType: ct, - Body: buf, - Err: err, - } - return req, close, err - } - return request, close, nil - default: - return req, close, validate.InvalidContentType(ct) - } -} - -func (s *Server) decodeTestResponseNumberFloatNullableArrayRequest(r *http.Request) ( - req string, - close func() error, - rerr error, -) { - var closers []func() error - close = func() error { - var merr error - // Close in reverse order, to match defer behavior. - for i := len(closers) - 1; i >= 0; i-- { - c := closers[i] - merr = multierr.Append(merr, c()) - } - return merr - } - defer func() { - if rerr != nil { - rerr = multierr.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 ct == "application/json": - if r.ContentLength == 0 { - return req, close, validate.ErrBodyRequired - } var request string - buf, err := io.ReadAll(r.Body) - if err != nil { - return req, close, err - } - - if len(buf) == 0 { - return req, close, validate.ErrBodyRequired - } - - d := jx.DecodeBytes(buf) if err := func() error { v, err := d.Str() request = string(v) @@ -48515,7 +48385,7 @@ func (s *Server) decodeTestResponseNumberFloatNullableArrayRequest(r *http.Reque } } -func (s *Server) decodeTestResponseNumberFloatNullableArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseNumberFloatNullableRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -48544,8 +48414,6 @@ func (s *Server) decodeTestResponseNumberFloatNullableArrayArrayRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -48556,71 +48424,8 @@ func (s *Server) decodeTestResponseNumberFloatNullableArrayArrayRequest(r *http. } d := jx.DecodeBytes(buf) - if err := func() error { - v, err := d.Str() - request = string(v) - if err != nil { - return err - } - if err := d.Skip(); err != io.EOF { - return errors.New("unexpected trailing data") - } - return nil - }(); err != nil { - err = &ogenerrors.DecodeBodyError{ - ContentType: ct, - Body: buf, - Err: err, - } - return req, close, err - } - return request, close, nil - default: - return req, close, validate.InvalidContentType(ct) - } -} - -func (s *Server) decodeTestResponseNumberInt32Request(r *http.Request) ( - req string, - close func() error, - rerr error, -) { - var closers []func() error - close = func() error { - var merr error - // Close in reverse order, to match defer behavior. - for i := len(closers) - 1; i >= 0; i-- { - c := closers[i] - merr = multierr.Append(merr, c()) - } - return merr - } - defer func() { - if rerr != nil { - rerr = multierr.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 ct == "application/json": - if r.ContentLength == 0 { - return req, close, validate.ErrBodyRequired - } var request string - buf, err := io.ReadAll(r.Body) - if err != nil { - return req, close, err - } - - if len(buf) == 0 { - return req, close, validate.ErrBodyRequired - } - - d := jx.DecodeBytes(buf) if err := func() error { v, err := d.Str() request = string(v) @@ -48645,7 +48450,7 @@ func (s *Server) decodeTestResponseNumberInt32Request(r *http.Request) ( } } -func (s *Server) decodeTestResponseNumberInt32ArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseNumberFloatNullableArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -48674,8 +48479,6 @@ func (s *Server) decodeTestResponseNumberInt32ArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -48686,6 +48489,8 @@ func (s *Server) decodeTestResponseNumberInt32ArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -48710,7 +48515,7 @@ func (s *Server) decodeTestResponseNumberInt32ArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseNumberInt32ArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseNumberFloatNullableArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -48739,8 +48544,6 @@ func (s *Server) decodeTestResponseNumberInt32ArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -48751,6 +48554,8 @@ func (s *Server) decodeTestResponseNumberInt32ArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -48775,7 +48580,7 @@ func (s *Server) decodeTestResponseNumberInt32ArrayArrayRequest(r *http.Request) } } -func (s *Server) decodeTestResponseNumberInt32NullableRequest(r *http.Request) ( +func (s *Server) decodeTestResponseNumberInt32Request(r *http.Request) ( req string, close func() error, rerr error, @@ -48804,8 +48609,6 @@ func (s *Server) decodeTestResponseNumberInt32NullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -48816,6 +48619,8 @@ func (s *Server) decodeTestResponseNumberInt32NullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -48840,7 +48645,7 @@ func (s *Server) decodeTestResponseNumberInt32NullableRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseNumberInt32NullableArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseNumberInt32ArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -48869,8 +48674,6 @@ func (s *Server) decodeTestResponseNumberInt32NullableArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -48881,6 +48684,8 @@ func (s *Server) decodeTestResponseNumberInt32NullableArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -48905,7 +48710,7 @@ func (s *Server) decodeTestResponseNumberInt32NullableArrayRequest(r *http.Reque } } -func (s *Server) decodeTestResponseNumberInt32NullableArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseNumberInt32ArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -48934,8 +48739,6 @@ func (s *Server) decodeTestResponseNumberInt32NullableArrayArrayRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -48946,6 +48749,8 @@ func (s *Server) decodeTestResponseNumberInt32NullableArrayArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -48970,7 +48775,7 @@ func (s *Server) decodeTestResponseNumberInt32NullableArrayArrayRequest(r *http. } } -func (s *Server) decodeTestResponseNumberInt64Request(r *http.Request) ( +func (s *Server) decodeTestResponseNumberInt32NullableRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -48999,8 +48804,6 @@ func (s *Server) decodeTestResponseNumberInt64Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -49011,6 +48814,8 @@ func (s *Server) decodeTestResponseNumberInt64Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -49035,7 +48840,7 @@ func (s *Server) decodeTestResponseNumberInt64Request(r *http.Request) ( } } -func (s *Server) decodeTestResponseNumberInt64ArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseNumberInt32NullableArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -49064,8 +48869,6 @@ func (s *Server) decodeTestResponseNumberInt64ArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -49076,6 +48879,8 @@ func (s *Server) decodeTestResponseNumberInt64ArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -49100,7 +48905,7 @@ func (s *Server) decodeTestResponseNumberInt64ArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseNumberInt64ArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseNumberInt32NullableArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -49129,8 +48934,6 @@ func (s *Server) decodeTestResponseNumberInt64ArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -49141,6 +48944,8 @@ func (s *Server) decodeTestResponseNumberInt64ArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -49165,7 +48970,7 @@ func (s *Server) decodeTestResponseNumberInt64ArrayArrayRequest(r *http.Request) } } -func (s *Server) decodeTestResponseNumberInt64NullableRequest(r *http.Request) ( +func (s *Server) decodeTestResponseNumberInt64Request(r *http.Request) ( req string, close func() error, rerr error, @@ -49194,8 +48999,6 @@ func (s *Server) decodeTestResponseNumberInt64NullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -49206,6 +49009,8 @@ func (s *Server) decodeTestResponseNumberInt64NullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -49230,7 +49035,7 @@ func (s *Server) decodeTestResponseNumberInt64NullableRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseNumberInt64NullableArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseNumberInt64ArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -49259,8 +49064,6 @@ func (s *Server) decodeTestResponseNumberInt64NullableArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -49271,6 +49074,8 @@ func (s *Server) decodeTestResponseNumberInt64NullableArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -49295,7 +49100,7 @@ func (s *Server) decodeTestResponseNumberInt64NullableArrayRequest(r *http.Reque } } -func (s *Server) decodeTestResponseNumberInt64NullableArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseNumberInt64ArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -49324,8 +49129,6 @@ func (s *Server) decodeTestResponseNumberInt64NullableArrayArrayRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -49336,6 +49139,8 @@ func (s *Server) decodeTestResponseNumberInt64NullableArrayArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -49360,7 +49165,7 @@ func (s *Server) decodeTestResponseNumberInt64NullableArrayArrayRequest(r *http. } } -func (s *Server) decodeTestResponseNumberNullableRequest(r *http.Request) ( +func (s *Server) decodeTestResponseNumberInt64NullableRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -49389,8 +49194,6 @@ func (s *Server) decodeTestResponseNumberNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -49401,6 +49204,8 @@ func (s *Server) decodeTestResponseNumberNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -49425,7 +49230,7 @@ func (s *Server) decodeTestResponseNumberNullableRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseNumberNullableArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseNumberInt64NullableArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -49454,8 +49259,6 @@ func (s *Server) decodeTestResponseNumberNullableArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -49466,6 +49269,8 @@ func (s *Server) decodeTestResponseNumberNullableArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -49490,7 +49295,7 @@ func (s *Server) decodeTestResponseNumberNullableArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseNumberNullableArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseNumberInt64NullableArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -49519,8 +49324,6 @@ func (s *Server) decodeTestResponseNumberNullableArrayArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -49531,6 +49334,8 @@ func (s *Server) decodeTestResponseNumberNullableArrayArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -49555,7 +49360,7 @@ func (s *Server) decodeTestResponseNumberNullableArrayArrayRequest(r *http.Reque } } -func (s *Server) decodeTestResponseStringRequest(r *http.Request) ( +func (s *Server) decodeTestResponseNumberNullableRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -49584,8 +49389,6 @@ func (s *Server) decodeTestResponseStringRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -49596,6 +49399,8 @@ func (s *Server) decodeTestResponseStringRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -49620,7 +49425,7 @@ func (s *Server) decodeTestResponseStringRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseNumberNullableArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -49649,8 +49454,6 @@ func (s *Server) decodeTestResponseStringArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -49661,6 +49464,8 @@ func (s *Server) decodeTestResponseStringArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -49685,7 +49490,7 @@ func (s *Server) decodeTestResponseStringArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseNumberNullableArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -49714,8 +49519,6 @@ func (s *Server) decodeTestResponseStringArrayArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -49726,6 +49529,8 @@ func (s *Server) decodeTestResponseStringArrayArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -49750,7 +49555,7 @@ func (s *Server) decodeTestResponseStringArrayArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringBase64Request(r *http.Request) ( +func (s *Server) decodeTestResponseStringRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -49779,8 +49584,6 @@ func (s *Server) decodeTestResponseStringBase64Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -49791,6 +49594,8 @@ func (s *Server) decodeTestResponseStringBase64Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -49815,7 +49620,7 @@ func (s *Server) decodeTestResponseStringBase64Request(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringBase64ArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -49844,8 +49649,6 @@ func (s *Server) decodeTestResponseStringBase64ArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -49856,6 +49659,8 @@ func (s *Server) decodeTestResponseStringBase64ArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -49880,7 +49685,7 @@ func (s *Server) decodeTestResponseStringBase64ArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringBase64ArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -49909,8 +49714,6 @@ func (s *Server) decodeTestResponseStringBase64ArrayArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -49921,6 +49724,8 @@ func (s *Server) decodeTestResponseStringBase64ArrayArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -49945,7 +49750,7 @@ func (s *Server) decodeTestResponseStringBase64ArrayArrayRequest(r *http.Request } } -func (s *Server) decodeTestResponseStringBase64NullableRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringBase64Request(r *http.Request) ( req string, close func() error, rerr error, @@ -49974,8 +49779,6 @@ func (s *Server) decodeTestResponseStringBase64NullableRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -49986,6 +49789,8 @@ func (s *Server) decodeTestResponseStringBase64NullableRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -50010,7 +49815,7 @@ func (s *Server) decodeTestResponseStringBase64NullableRequest(r *http.Request) } } -func (s *Server) decodeTestResponseStringBase64NullableArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringBase64ArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -50039,8 +49844,6 @@ func (s *Server) decodeTestResponseStringBase64NullableArrayRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -50051,6 +49854,8 @@ func (s *Server) decodeTestResponseStringBase64NullableArrayRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -50075,7 +49880,7 @@ func (s *Server) decodeTestResponseStringBase64NullableArrayRequest(r *http.Requ } } -func (s *Server) decodeTestResponseStringBase64NullableArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringBase64ArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -50104,8 +49909,6 @@ func (s *Server) decodeTestResponseStringBase64NullableArrayArrayRequest(r *http if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -50116,6 +49919,8 @@ func (s *Server) decodeTestResponseStringBase64NullableArrayArrayRequest(r *http } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -50140,7 +49945,7 @@ func (s *Server) decodeTestResponseStringBase64NullableArrayArrayRequest(r *http } } -func (s *Server) decodeTestResponseStringBinaryRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringBase64NullableRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -50169,8 +49974,6 @@ func (s *Server) decodeTestResponseStringBinaryRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -50181,6 +49984,8 @@ func (s *Server) decodeTestResponseStringBinaryRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -50205,7 +50010,7 @@ func (s *Server) decodeTestResponseStringBinaryRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringBinaryArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringBase64NullableArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -50234,8 +50039,6 @@ func (s *Server) decodeTestResponseStringBinaryArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -50246,6 +50049,8 @@ func (s *Server) decodeTestResponseStringBinaryArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -50270,7 +50075,7 @@ func (s *Server) decodeTestResponseStringBinaryArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringBinaryArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringBase64NullableArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -50299,8 +50104,6 @@ func (s *Server) decodeTestResponseStringBinaryArrayArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -50311,6 +50114,8 @@ func (s *Server) decodeTestResponseStringBinaryArrayArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -50335,7 +50140,7 @@ func (s *Server) decodeTestResponseStringBinaryArrayArrayRequest(r *http.Request } } -func (s *Server) decodeTestResponseStringBinaryNullableRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringBinaryRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -50364,8 +50169,6 @@ func (s *Server) decodeTestResponseStringBinaryNullableRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -50376,6 +50179,8 @@ func (s *Server) decodeTestResponseStringBinaryNullableRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -50400,7 +50205,7 @@ func (s *Server) decodeTestResponseStringBinaryNullableRequest(r *http.Request) } } -func (s *Server) decodeTestResponseStringBinaryNullableArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringBinaryArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -50429,8 +50234,6 @@ func (s *Server) decodeTestResponseStringBinaryNullableArrayRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -50441,6 +50244,8 @@ func (s *Server) decodeTestResponseStringBinaryNullableArrayRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -50465,7 +50270,7 @@ func (s *Server) decodeTestResponseStringBinaryNullableArrayRequest(r *http.Requ } } -func (s *Server) decodeTestResponseStringBinaryNullableArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringBinaryArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -50494,8 +50299,6 @@ func (s *Server) decodeTestResponseStringBinaryNullableArrayArrayRequest(r *http if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -50506,6 +50309,8 @@ func (s *Server) decodeTestResponseStringBinaryNullableArrayArrayRequest(r *http } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -50530,7 +50335,7 @@ func (s *Server) decodeTestResponseStringBinaryNullableArrayArrayRequest(r *http } } -func (s *Server) decodeTestResponseStringByteRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringBinaryNullableRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -50559,8 +50364,6 @@ func (s *Server) decodeTestResponseStringByteRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -50571,6 +50374,8 @@ func (s *Server) decodeTestResponseStringByteRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -50595,7 +50400,7 @@ func (s *Server) decodeTestResponseStringByteRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringByteArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringBinaryNullableArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -50624,8 +50429,6 @@ func (s *Server) decodeTestResponseStringByteArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -50636,6 +50439,8 @@ func (s *Server) decodeTestResponseStringByteArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -50660,7 +50465,7 @@ func (s *Server) decodeTestResponseStringByteArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringByteArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringBinaryNullableArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -50689,8 +50494,6 @@ func (s *Server) decodeTestResponseStringByteArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -50701,6 +50504,8 @@ func (s *Server) decodeTestResponseStringByteArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -50725,7 +50530,7 @@ func (s *Server) decodeTestResponseStringByteArrayArrayRequest(r *http.Request) } } -func (s *Server) decodeTestResponseStringByteNullableRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringByteRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -50754,8 +50559,71 @@ func (s *Server) decodeTestResponseStringByteNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } + buf, err := io.ReadAll(r.Body) + if err != nil { + return req, close, err + } + + if len(buf) == 0 { + return req, close, validate.ErrBodyRequired + } + + d := jx.DecodeBytes(buf) var request string + if err := func() error { + v, err := d.Str() + request = string(v) + if err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return req, close, err + } + return request, close, nil + default: + return req, close, validate.InvalidContentType(ct) + } +} + +func (s *Server) decodeTestResponseStringByteArrayRequest(r *http.Request) ( + req string, + close func() error, + rerr error, +) { + var closers []func() error + close = func() error { + var merr error + // Close in reverse order, to match defer behavior. + for i := len(closers) - 1; i >= 0; i-- { + c := closers[i] + merr = multierr.Append(merr, c()) + } + return merr + } + defer func() { + if rerr != nil { + rerr = multierr.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 ct == "application/json": + if r.ContentLength == 0 { + return req, close, validate.ErrBodyRequired + } buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -50766,6 +50634,8 @@ func (s *Server) decodeTestResponseStringByteNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -50790,7 +50660,7 @@ func (s *Server) decodeTestResponseStringByteNullableRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringByteNullableArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringByteArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -50819,8 +50689,71 @@ func (s *Server) decodeTestResponseStringByteNullableArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } + buf, err := io.ReadAll(r.Body) + if err != nil { + return req, close, err + } + + if len(buf) == 0 { + return req, close, validate.ErrBodyRequired + } + + d := jx.DecodeBytes(buf) var request string + if err := func() error { + v, err := d.Str() + request = string(v) + if err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return req, close, err + } + return request, close, nil + default: + return req, close, validate.InvalidContentType(ct) + } +} + +func (s *Server) decodeTestResponseStringByteNullableRequest(r *http.Request) ( + req string, + close func() error, + rerr error, +) { + var closers []func() error + close = func() error { + var merr error + // Close in reverse order, to match defer behavior. + for i := len(closers) - 1; i >= 0; i-- { + c := closers[i] + merr = multierr.Append(merr, c()) + } + return merr + } + defer func() { + if rerr != nil { + rerr = multierr.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 ct == "application/json": + if r.ContentLength == 0 { + return req, close, validate.ErrBodyRequired + } buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -50831,6 +50764,8 @@ func (s *Server) decodeTestResponseStringByteNullableArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -50855,7 +50790,7 @@ func (s *Server) decodeTestResponseStringByteNullableArrayRequest(r *http.Reques } } -func (s *Server) decodeTestResponseStringByteNullableArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringByteNullableArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -50884,8 +50819,71 @@ func (s *Server) decodeTestResponseStringByteNullableArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } + buf, err := io.ReadAll(r.Body) + if err != nil { + return req, close, err + } + + if len(buf) == 0 { + return req, close, validate.ErrBodyRequired + } + + d := jx.DecodeBytes(buf) var request string + if err := func() error { + v, err := d.Str() + request = string(v) + if err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return req, close, err + } + return request, close, nil + default: + return req, close, validate.InvalidContentType(ct) + } +} + +func (s *Server) decodeTestResponseStringByteNullableArrayArrayRequest(r *http.Request) ( + req string, + close func() error, + rerr error, +) { + var closers []func() error + close = func() error { + var merr error + // Close in reverse order, to match defer behavior. + for i := len(closers) - 1; i >= 0; i-- { + c := closers[i] + merr = multierr.Append(merr, c()) + } + return merr + } + defer func() { + if rerr != nil { + rerr = multierr.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 ct == "application/json": + if r.ContentLength == 0 { + return req, close, validate.ErrBodyRequired + } buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -50896,6 +50894,8 @@ func (s *Server) decodeTestResponseStringByteNullableArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -50949,8 +50949,6 @@ func (s *Server) decodeTestResponseStringDateRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -50961,6 +50959,8 @@ func (s *Server) decodeTestResponseStringDateRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -51014,8 +51014,6 @@ func (s *Server) decodeTestResponseStringDateArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -51026,6 +51024,8 @@ func (s *Server) decodeTestResponseStringDateArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -51079,8 +51079,6 @@ func (s *Server) decodeTestResponseStringDateArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -51091,6 +51089,8 @@ func (s *Server) decodeTestResponseStringDateArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -51144,8 +51144,6 @@ func (s *Server) decodeTestResponseStringDateNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -51156,6 +51154,8 @@ func (s *Server) decodeTestResponseStringDateNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -51209,8 +51209,6 @@ func (s *Server) decodeTestResponseStringDateNullableArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -51221,6 +51219,8 @@ func (s *Server) decodeTestResponseStringDateNullableArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -51274,8 +51274,6 @@ func (s *Server) decodeTestResponseStringDateNullableArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -51286,6 +51284,8 @@ func (s *Server) decodeTestResponseStringDateNullableArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -51339,8 +51339,6 @@ func (s *Server) decodeTestResponseStringDateTimeRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -51351,6 +51349,8 @@ func (s *Server) decodeTestResponseStringDateTimeRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -51404,8 +51404,6 @@ func (s *Server) decodeTestResponseStringDateTimeArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -51416,6 +51414,8 @@ func (s *Server) decodeTestResponseStringDateTimeArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -51469,8 +51469,6 @@ func (s *Server) decodeTestResponseStringDateTimeArrayArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -51481,6 +51479,8 @@ func (s *Server) decodeTestResponseStringDateTimeArrayArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -51534,8 +51534,6 @@ func (s *Server) decodeTestResponseStringDateTimeNullableRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -51546,6 +51544,8 @@ func (s *Server) decodeTestResponseStringDateTimeNullableRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -51599,8 +51599,6 @@ func (s *Server) decodeTestResponseStringDateTimeNullableArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -51611,6 +51609,8 @@ func (s *Server) decodeTestResponseStringDateTimeNullableArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -51664,8 +51664,6 @@ func (s *Server) decodeTestResponseStringDateTimeNullableArrayArrayRequest(r *ht if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -51676,6 +51674,8 @@ func (s *Server) decodeTestResponseStringDateTimeNullableArrayArrayRequest(r *ht } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -51729,8 +51729,6 @@ func (s *Server) decodeTestResponseStringDurationRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -51741,6 +51739,8 @@ func (s *Server) decodeTestResponseStringDurationRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -51794,8 +51794,6 @@ func (s *Server) decodeTestResponseStringDurationArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -51806,6 +51804,8 @@ func (s *Server) decodeTestResponseStringDurationArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -51859,8 +51859,71 @@ func (s *Server) decodeTestResponseStringDurationArrayArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } + buf, err := io.ReadAll(r.Body) + if err != nil { + return req, close, err + } + + if len(buf) == 0 { + return req, close, validate.ErrBodyRequired + } + + d := jx.DecodeBytes(buf) var request string + if err := func() error { + v, err := d.Str() + request = string(v) + if err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return req, close, err + } + return request, close, nil + default: + return req, close, validate.InvalidContentType(ct) + } +} + +func (s *Server) decodeTestResponseStringDurationNullableRequest(r *http.Request) ( + req string, + close func() error, + rerr error, +) { + var closers []func() error + close = func() error { + var merr error + // Close in reverse order, to match defer behavior. + for i := len(closers) - 1; i >= 0; i-- { + c := closers[i] + merr = multierr.Append(merr, c()) + } + return merr + } + defer func() { + if rerr != nil { + rerr = multierr.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 ct == "application/json": + if r.ContentLength == 0 { + return req, close, validate.ErrBodyRequired + } buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -51871,6 +51934,8 @@ func (s *Server) decodeTestResponseStringDurationArrayArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -51895,7 +51960,7 @@ func (s *Server) decodeTestResponseStringDurationArrayArrayRequest(r *http.Reque } } -func (s *Server) decodeTestResponseStringDurationNullableRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringDurationNullableArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -51924,8 +51989,6 @@ func (s *Server) decodeTestResponseStringDurationNullableRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -51936,6 +51999,8 @@ func (s *Server) decodeTestResponseStringDurationNullableRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -51960,7 +52025,7 @@ func (s *Server) decodeTestResponseStringDurationNullableRequest(r *http.Request } } -func (s *Server) decodeTestResponseStringDurationNullableArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringDurationNullableArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -51989,8 +52054,6 @@ func (s *Server) decodeTestResponseStringDurationNullableArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -52001,6 +52064,8 @@ func (s *Server) decodeTestResponseStringDurationNullableArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -52025,7 +52090,7 @@ func (s *Server) decodeTestResponseStringDurationNullableArrayRequest(r *http.Re } } -func (s *Server) decodeTestResponseStringDurationNullableArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringEmailRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -52054,8 +52119,6 @@ func (s *Server) decodeTestResponseStringDurationNullableArrayArrayRequest(r *ht if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -52066,6 +52129,8 @@ func (s *Server) decodeTestResponseStringDurationNullableArrayArrayRequest(r *ht } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -52090,7 +52155,7 @@ func (s *Server) decodeTestResponseStringDurationNullableArrayArrayRequest(r *ht } } -func (s *Server) decodeTestResponseStringEmailRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringEmailArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -52119,8 +52184,6 @@ func (s *Server) decodeTestResponseStringEmailRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -52131,6 +52194,8 @@ func (s *Server) decodeTestResponseStringEmailRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -52155,7 +52220,7 @@ func (s *Server) decodeTestResponseStringEmailRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringEmailArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringEmailArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -52184,8 +52249,6 @@ func (s *Server) decodeTestResponseStringEmailArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -52196,6 +52259,8 @@ func (s *Server) decodeTestResponseStringEmailArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -52220,7 +52285,7 @@ func (s *Server) decodeTestResponseStringEmailArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringEmailArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringEmailNullableRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -52249,8 +52314,6 @@ func (s *Server) decodeTestResponseStringEmailArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -52261,6 +52324,8 @@ func (s *Server) decodeTestResponseStringEmailArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -52285,7 +52350,7 @@ func (s *Server) decodeTestResponseStringEmailArrayArrayRequest(r *http.Request) } } -func (s *Server) decodeTestResponseStringEmailNullableRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringEmailNullableArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -52314,8 +52379,6 @@ func (s *Server) decodeTestResponseStringEmailNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -52326,6 +52389,8 @@ func (s *Server) decodeTestResponseStringEmailNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -52350,7 +52415,7 @@ func (s *Server) decodeTestResponseStringEmailNullableRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringEmailNullableArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringEmailNullableArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -52379,8 +52444,6 @@ func (s *Server) decodeTestResponseStringEmailNullableArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -52391,6 +52454,8 @@ func (s *Server) decodeTestResponseStringEmailNullableArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -52415,7 +52480,7 @@ func (s *Server) decodeTestResponseStringEmailNullableArrayRequest(r *http.Reque } } -func (s *Server) decodeTestResponseStringEmailNullableArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringHostnameRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -52444,8 +52509,6 @@ func (s *Server) decodeTestResponseStringEmailNullableArrayArrayRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -52456,6 +52519,8 @@ func (s *Server) decodeTestResponseStringEmailNullableArrayArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -52480,7 +52545,7 @@ func (s *Server) decodeTestResponseStringEmailNullableArrayArrayRequest(r *http. } } -func (s *Server) decodeTestResponseStringHostnameRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringHostnameArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -52509,8 +52574,6 @@ func (s *Server) decodeTestResponseStringHostnameRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -52521,6 +52584,8 @@ func (s *Server) decodeTestResponseStringHostnameRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -52545,7 +52610,7 @@ func (s *Server) decodeTestResponseStringHostnameRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringHostnameArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringHostnameArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -52574,8 +52639,6 @@ func (s *Server) decodeTestResponseStringHostnameArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -52586,6 +52649,8 @@ func (s *Server) decodeTestResponseStringHostnameArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -52610,7 +52675,7 @@ func (s *Server) decodeTestResponseStringHostnameArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringHostnameArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringHostnameNullableRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -52639,8 +52704,6 @@ func (s *Server) decodeTestResponseStringHostnameArrayArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -52651,6 +52714,8 @@ func (s *Server) decodeTestResponseStringHostnameArrayArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -52675,7 +52740,7 @@ func (s *Server) decodeTestResponseStringHostnameArrayArrayRequest(r *http.Reque } } -func (s *Server) decodeTestResponseStringHostnameNullableRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringHostnameNullableArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -52704,8 +52769,6 @@ func (s *Server) decodeTestResponseStringHostnameNullableRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -52716,6 +52779,8 @@ func (s *Server) decodeTestResponseStringHostnameNullableRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -52740,7 +52805,7 @@ func (s *Server) decodeTestResponseStringHostnameNullableRequest(r *http.Request } } -func (s *Server) decodeTestResponseStringHostnameNullableArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringHostnameNullableArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -52769,8 +52834,6 @@ func (s *Server) decodeTestResponseStringHostnameNullableArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -52781,6 +52844,8 @@ func (s *Server) decodeTestResponseStringHostnameNullableArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -52805,7 +52870,7 @@ func (s *Server) decodeTestResponseStringHostnameNullableArrayRequest(r *http.Re } } -func (s *Server) decodeTestResponseStringHostnameNullableArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringIPRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -52834,8 +52899,6 @@ func (s *Server) decodeTestResponseStringHostnameNullableArrayArrayRequest(r *ht if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -52846,6 +52909,8 @@ func (s *Server) decodeTestResponseStringHostnameNullableArrayArrayRequest(r *ht } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -52870,7 +52935,7 @@ func (s *Server) decodeTestResponseStringHostnameNullableArrayArrayRequest(r *ht } } -func (s *Server) decodeTestResponseStringIPRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringIPArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -52899,8 +52964,6 @@ func (s *Server) decodeTestResponseStringIPRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -52911,6 +52974,8 @@ func (s *Server) decodeTestResponseStringIPRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -52935,7 +53000,7 @@ func (s *Server) decodeTestResponseStringIPRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringIPArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringIPArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -52964,8 +53029,6 @@ func (s *Server) decodeTestResponseStringIPArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -52976,6 +53039,8 @@ func (s *Server) decodeTestResponseStringIPArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -53000,7 +53065,7 @@ func (s *Server) decodeTestResponseStringIPArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringIPArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringIPNullableRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -53029,8 +53094,6 @@ func (s *Server) decodeTestResponseStringIPArrayArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -53041,6 +53104,8 @@ func (s *Server) decodeTestResponseStringIPArrayArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -53065,7 +53130,7 @@ func (s *Server) decodeTestResponseStringIPArrayArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringIPNullableRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringIPNullableArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -53094,8 +53159,6 @@ func (s *Server) decodeTestResponseStringIPNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -53106,6 +53169,8 @@ func (s *Server) decodeTestResponseStringIPNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -53130,7 +53195,7 @@ func (s *Server) decodeTestResponseStringIPNullableRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringIPNullableArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringIPNullableArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -53159,8 +53224,6 @@ func (s *Server) decodeTestResponseStringIPNullableArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -53171,6 +53234,8 @@ func (s *Server) decodeTestResponseStringIPNullableArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -53195,7 +53260,7 @@ func (s *Server) decodeTestResponseStringIPNullableArrayRequest(r *http.Request) } } -func (s *Server) decodeTestResponseStringIPNullableArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringInt32Request(r *http.Request) ( req string, close func() error, rerr error, @@ -53224,8 +53289,6 @@ func (s *Server) decodeTestResponseStringIPNullableArrayArrayRequest(r *http.Req if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -53236,6 +53299,8 @@ func (s *Server) decodeTestResponseStringIPNullableArrayArrayRequest(r *http.Req } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -53260,7 +53325,7 @@ func (s *Server) decodeTestResponseStringIPNullableArrayArrayRequest(r *http.Req } } -func (s *Server) decodeTestResponseStringInt32Request(r *http.Request) ( +func (s *Server) decodeTestResponseStringInt32ArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -53289,8 +53354,6 @@ func (s *Server) decodeTestResponseStringInt32Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -53301,6 +53364,8 @@ func (s *Server) decodeTestResponseStringInt32Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -53325,7 +53390,7 @@ func (s *Server) decodeTestResponseStringInt32Request(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringInt32ArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringInt32ArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -53354,8 +53419,6 @@ func (s *Server) decodeTestResponseStringInt32ArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -53366,6 +53429,8 @@ func (s *Server) decodeTestResponseStringInt32ArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -53390,7 +53455,7 @@ func (s *Server) decodeTestResponseStringInt32ArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringInt32ArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringInt32NullableRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -53419,8 +53484,6 @@ func (s *Server) decodeTestResponseStringInt32ArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -53431,6 +53494,8 @@ func (s *Server) decodeTestResponseStringInt32ArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -53455,7 +53520,7 @@ func (s *Server) decodeTestResponseStringInt32ArrayArrayRequest(r *http.Request) } } -func (s *Server) decodeTestResponseStringInt32NullableRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringInt32NullableArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -53484,8 +53549,6 @@ func (s *Server) decodeTestResponseStringInt32NullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -53496,6 +53559,8 @@ func (s *Server) decodeTestResponseStringInt32NullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -53520,7 +53585,7 @@ func (s *Server) decodeTestResponseStringInt32NullableRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringInt32NullableArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringInt32NullableArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -53549,8 +53614,6 @@ func (s *Server) decodeTestResponseStringInt32NullableArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -53561,6 +53624,8 @@ func (s *Server) decodeTestResponseStringInt32NullableArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -53585,7 +53650,7 @@ func (s *Server) decodeTestResponseStringInt32NullableArrayRequest(r *http.Reque } } -func (s *Server) decodeTestResponseStringInt32NullableArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringInt64Request(r *http.Request) ( req string, close func() error, rerr error, @@ -53614,8 +53679,6 @@ func (s *Server) decodeTestResponseStringInt32NullableArrayArrayRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -53626,6 +53689,8 @@ func (s *Server) decodeTestResponseStringInt32NullableArrayArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -53650,7 +53715,7 @@ func (s *Server) decodeTestResponseStringInt32NullableArrayArrayRequest(r *http. } } -func (s *Server) decodeTestResponseStringInt64Request(r *http.Request) ( +func (s *Server) decodeTestResponseStringInt64ArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -53679,8 +53744,6 @@ func (s *Server) decodeTestResponseStringInt64Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -53691,6 +53754,8 @@ func (s *Server) decodeTestResponseStringInt64Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -53715,7 +53780,7 @@ func (s *Server) decodeTestResponseStringInt64Request(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringInt64ArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringInt64ArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -53744,8 +53809,6 @@ func (s *Server) decodeTestResponseStringInt64ArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -53756,6 +53819,8 @@ func (s *Server) decodeTestResponseStringInt64ArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -53780,7 +53845,7 @@ func (s *Server) decodeTestResponseStringInt64ArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringInt64ArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringInt64NullableRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -53809,8 +53874,6 @@ func (s *Server) decodeTestResponseStringInt64ArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -53821,6 +53884,8 @@ func (s *Server) decodeTestResponseStringInt64ArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -53845,7 +53910,7 @@ func (s *Server) decodeTestResponseStringInt64ArrayArrayRequest(r *http.Request) } } -func (s *Server) decodeTestResponseStringInt64NullableRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringInt64NullableArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -53874,8 +53939,6 @@ func (s *Server) decodeTestResponseStringInt64NullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -53886,6 +53949,8 @@ func (s *Server) decodeTestResponseStringInt64NullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -53910,7 +53975,7 @@ func (s *Server) decodeTestResponseStringInt64NullableRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringInt64NullableArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringInt64NullableArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -53939,8 +54004,6 @@ func (s *Server) decodeTestResponseStringInt64NullableArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -53951,6 +54014,8 @@ func (s *Server) decodeTestResponseStringInt64NullableArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -53975,7 +54040,7 @@ func (s *Server) decodeTestResponseStringInt64NullableArrayRequest(r *http.Reque } } -func (s *Server) decodeTestResponseStringInt64NullableArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringIpv4Request(r *http.Request) ( req string, close func() error, rerr error, @@ -54004,8 +54069,71 @@ func (s *Server) decodeTestResponseStringInt64NullableArrayArrayRequest(r *http. if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } + buf, err := io.ReadAll(r.Body) + if err != nil { + return req, close, err + } + + if len(buf) == 0 { + return req, close, validate.ErrBodyRequired + } + + d := jx.DecodeBytes(buf) var request string + if err := func() error { + v, err := d.Str() + request = string(v) + if err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return req, close, err + } + return request, close, nil + default: + return req, close, validate.InvalidContentType(ct) + } +} + +func (s *Server) decodeTestResponseStringIpv4ArrayRequest(r *http.Request) ( + req string, + close func() error, + rerr error, +) { + var closers []func() error + close = func() error { + var merr error + // Close in reverse order, to match defer behavior. + for i := len(closers) - 1; i >= 0; i-- { + c := closers[i] + merr = multierr.Append(merr, c()) + } + return merr + } + defer func() { + if rerr != nil { + rerr = multierr.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 ct == "application/json": + if r.ContentLength == 0 { + return req, close, validate.ErrBodyRequired + } buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -54016,6 +54144,8 @@ func (s *Server) decodeTestResponseStringInt64NullableArrayArrayRequest(r *http. } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -54040,7 +54170,7 @@ func (s *Server) decodeTestResponseStringInt64NullableArrayArrayRequest(r *http. } } -func (s *Server) decodeTestResponseStringIpv4Request(r *http.Request) ( +func (s *Server) decodeTestResponseStringIpv4ArrayArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -54069,8 +54199,6 @@ func (s *Server) decodeTestResponseStringIpv4Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -54081,71 +54209,8 @@ func (s *Server) decodeTestResponseStringIpv4Request(r *http.Request) ( } d := jx.DecodeBytes(buf) - if err := func() error { - v, err := d.Str() - request = string(v) - if err != nil { - return err - } - if err := d.Skip(); err != io.EOF { - return errors.New("unexpected trailing data") - } - return nil - }(); err != nil { - err = &ogenerrors.DecodeBodyError{ - ContentType: ct, - Body: buf, - Err: err, - } - return req, close, err - } - return request, close, nil - default: - return req, close, validate.InvalidContentType(ct) - } -} - -func (s *Server) decodeTestResponseStringIpv4ArrayRequest(r *http.Request) ( - req string, - close func() error, - rerr error, -) { - var closers []func() error - close = func() error { - var merr error - // Close in reverse order, to match defer behavior. - for i := len(closers) - 1; i >= 0; i-- { - c := closers[i] - merr = multierr.Append(merr, c()) - } - return merr - } - defer func() { - if rerr != nil { - rerr = multierr.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 ct == "application/json": - if r.ContentLength == 0 { - return req, close, validate.ErrBodyRequired - } var request string - buf, err := io.ReadAll(r.Body) - if err != nil { - return req, close, err - } - - if len(buf) == 0 { - return req, close, validate.ErrBodyRequired - } - - d := jx.DecodeBytes(buf) if err := func() error { v, err := d.Str() request = string(v) @@ -54170,7 +54235,7 @@ func (s *Server) decodeTestResponseStringIpv4ArrayRequest(r *http.Request) ( } } -func (s *Server) decodeTestResponseStringIpv4ArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringIpv4NullableRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -54199,8 +54264,6 @@ func (s *Server) decodeTestResponseStringIpv4ArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -54211,71 +54274,8 @@ func (s *Server) decodeTestResponseStringIpv4ArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) - if err := func() error { - v, err := d.Str() - request = string(v) - if err != nil { - return err - } - if err := d.Skip(); err != io.EOF { - return errors.New("unexpected trailing data") - } - return nil - }(); err != nil { - err = &ogenerrors.DecodeBodyError{ - ContentType: ct, - Body: buf, - Err: err, - } - return req, close, err - } - return request, close, nil - default: - return req, close, validate.InvalidContentType(ct) - } -} - -func (s *Server) decodeTestResponseStringIpv4NullableRequest(r *http.Request) ( - req string, - close func() error, - rerr error, -) { - var closers []func() error - close = func() error { - var merr error - // Close in reverse order, to match defer behavior. - for i := len(closers) - 1; i >= 0; i-- { - c := closers[i] - merr = multierr.Append(merr, c()) - } - return merr - } - defer func() { - if rerr != nil { - rerr = multierr.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 ct == "application/json": - if r.ContentLength == 0 { - return req, close, validate.ErrBodyRequired - } var request string - buf, err := io.ReadAll(r.Body) - if err != nil { - return req, close, err - } - - if len(buf) == 0 { - return req, close, validate.ErrBodyRequired - } - - d := jx.DecodeBytes(buf) if err := func() error { v, err := d.Str() request = string(v) @@ -54329,8 +54329,6 @@ func (s *Server) decodeTestResponseStringIpv4NullableArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -54341,6 +54339,8 @@ func (s *Server) decodeTestResponseStringIpv4NullableArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -54394,8 +54394,6 @@ func (s *Server) decodeTestResponseStringIpv4NullableArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -54406,6 +54404,8 @@ func (s *Server) decodeTestResponseStringIpv4NullableArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -54459,8 +54459,6 @@ func (s *Server) decodeTestResponseStringIpv6Request(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -54471,6 +54469,8 @@ func (s *Server) decodeTestResponseStringIpv6Request(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -54524,8 +54524,6 @@ func (s *Server) decodeTestResponseStringIpv6ArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -54536,6 +54534,8 @@ func (s *Server) decodeTestResponseStringIpv6ArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -54589,8 +54589,6 @@ func (s *Server) decodeTestResponseStringIpv6ArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -54601,6 +54599,8 @@ func (s *Server) decodeTestResponseStringIpv6ArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -54654,8 +54654,6 @@ func (s *Server) decodeTestResponseStringIpv6NullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -54666,6 +54664,8 @@ func (s *Server) decodeTestResponseStringIpv6NullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -54719,8 +54719,6 @@ func (s *Server) decodeTestResponseStringIpv6NullableArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -54731,6 +54729,8 @@ func (s *Server) decodeTestResponseStringIpv6NullableArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -54784,8 +54784,6 @@ func (s *Server) decodeTestResponseStringIpv6NullableArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -54796,6 +54794,8 @@ func (s *Server) decodeTestResponseStringIpv6NullableArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -54849,8 +54849,6 @@ func (s *Server) decodeTestResponseStringNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -54861,6 +54859,8 @@ func (s *Server) decodeTestResponseStringNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -54914,8 +54914,6 @@ func (s *Server) decodeTestResponseStringNullableArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -54926,6 +54924,8 @@ func (s *Server) decodeTestResponseStringNullableArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -54979,8 +54979,6 @@ func (s *Server) decodeTestResponseStringNullableArrayArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -54991,6 +54989,8 @@ func (s *Server) decodeTestResponseStringNullableArrayArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -55044,8 +55044,6 @@ func (s *Server) decodeTestResponseStringPasswordRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -55056,6 +55054,8 @@ func (s *Server) decodeTestResponseStringPasswordRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -55109,8 +55109,6 @@ func (s *Server) decodeTestResponseStringPasswordArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -55121,6 +55119,8 @@ func (s *Server) decodeTestResponseStringPasswordArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -55174,8 +55174,6 @@ func (s *Server) decodeTestResponseStringPasswordArrayArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -55186,6 +55184,8 @@ func (s *Server) decodeTestResponseStringPasswordArrayArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -55239,8 +55239,6 @@ func (s *Server) decodeTestResponseStringPasswordNullableRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -55251,71 +55249,8 @@ func (s *Server) decodeTestResponseStringPasswordNullableRequest(r *http.Request } d := jx.DecodeBytes(buf) - if err := func() error { - v, err := d.Str() - request = string(v) - if err != nil { - return err - } - if err := d.Skip(); err != io.EOF { - return errors.New("unexpected trailing data") - } - return nil - }(); err != nil { - err = &ogenerrors.DecodeBodyError{ - ContentType: ct, - Body: buf, - Err: err, - } - return req, close, err - } - return request, close, nil - default: - return req, close, validate.InvalidContentType(ct) - } -} - -func (s *Server) decodeTestResponseStringPasswordNullableArrayRequest(r *http.Request) ( - req string, - close func() error, - rerr error, -) { - var closers []func() error - close = func() error { - var merr error - // Close in reverse order, to match defer behavior. - for i := len(closers) - 1; i >= 0; i-- { - c := closers[i] - merr = multierr.Append(merr, c()) - } - return merr - } - defer func() { - if rerr != nil { - rerr = multierr.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 ct == "application/json": - if r.ContentLength == 0 { - return req, close, validate.ErrBodyRequired - } var request string - buf, err := io.ReadAll(r.Body) - if err != nil { - return req, close, err - } - - if len(buf) == 0 { - return req, close, validate.ErrBodyRequired - } - - d := jx.DecodeBytes(buf) if err := func() error { v, err := d.Str() request = string(v) @@ -55340,7 +55275,7 @@ func (s *Server) decodeTestResponseStringPasswordNullableArrayRequest(r *http.Re } } -func (s *Server) decodeTestResponseStringPasswordNullableArrayArrayRequest(r *http.Request) ( +func (s *Server) decodeTestResponseStringPasswordNullableArrayRequest(r *http.Request) ( req string, close func() error, rerr error, @@ -55369,8 +55304,71 @@ func (s *Server) decodeTestResponseStringPasswordNullableArrayArrayRequest(r *ht if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } + buf, err := io.ReadAll(r.Body) + if err != nil { + return req, close, err + } + + if len(buf) == 0 { + return req, close, validate.ErrBodyRequired + } + + d := jx.DecodeBytes(buf) var request string + if err := func() error { + v, err := d.Str() + request = string(v) + if err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return req, close, err + } + return request, close, nil + default: + return req, close, validate.InvalidContentType(ct) + } +} + +func (s *Server) decodeTestResponseStringPasswordNullableArrayArrayRequest(r *http.Request) ( + req string, + close func() error, + rerr error, +) { + var closers []func() error + close = func() error { + var merr error + // Close in reverse order, to match defer behavior. + for i := len(closers) - 1; i >= 0; i-- { + c := closers[i] + merr = multierr.Append(merr, c()) + } + return merr + } + defer func() { + if rerr != nil { + rerr = multierr.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 ct == "application/json": + if r.ContentLength == 0 { + return req, close, validate.ErrBodyRequired + } buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -55381,6 +55379,8 @@ func (s *Server) decodeTestResponseStringPasswordNullableArrayArrayRequest(r *ht } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -55434,8 +55434,6 @@ func (s *Server) decodeTestResponseStringTimeRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -55446,6 +55444,8 @@ func (s *Server) decodeTestResponseStringTimeRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -55499,8 +55499,6 @@ func (s *Server) decodeTestResponseStringTimeArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -55511,6 +55509,8 @@ func (s *Server) decodeTestResponseStringTimeArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -55564,8 +55564,6 @@ func (s *Server) decodeTestResponseStringTimeArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -55576,6 +55574,8 @@ func (s *Server) decodeTestResponseStringTimeArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -55629,8 +55629,6 @@ func (s *Server) decodeTestResponseStringTimeNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -55641,6 +55639,8 @@ func (s *Server) decodeTestResponseStringTimeNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -55694,8 +55694,6 @@ func (s *Server) decodeTestResponseStringTimeNullableArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -55706,6 +55704,8 @@ func (s *Server) decodeTestResponseStringTimeNullableArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -55759,8 +55759,6 @@ func (s *Server) decodeTestResponseStringTimeNullableArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -55771,6 +55769,8 @@ func (s *Server) decodeTestResponseStringTimeNullableArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -55824,8 +55824,6 @@ func (s *Server) decodeTestResponseStringURIRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -55836,6 +55834,8 @@ func (s *Server) decodeTestResponseStringURIRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -55889,8 +55889,6 @@ func (s *Server) decodeTestResponseStringURIArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -55901,6 +55899,8 @@ func (s *Server) decodeTestResponseStringURIArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -55954,8 +55954,6 @@ func (s *Server) decodeTestResponseStringURIArrayArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -55966,6 +55964,8 @@ func (s *Server) decodeTestResponseStringURIArrayArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -56019,8 +56019,6 @@ func (s *Server) decodeTestResponseStringURINullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56031,6 +56029,8 @@ func (s *Server) decodeTestResponseStringURINullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -56084,8 +56084,6 @@ func (s *Server) decodeTestResponseStringURINullableArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56096,6 +56094,8 @@ func (s *Server) decodeTestResponseStringURINullableArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -56149,8 +56149,6 @@ func (s *Server) decodeTestResponseStringURINullableArrayArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56161,6 +56159,8 @@ func (s *Server) decodeTestResponseStringURINullableArrayArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -56214,8 +56214,6 @@ func (s *Server) decodeTestResponseStringUUIDRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56226,6 +56224,8 @@ func (s *Server) decodeTestResponseStringUUIDRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -56279,8 +56279,6 @@ func (s *Server) decodeTestResponseStringUUIDArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56291,6 +56289,8 @@ func (s *Server) decodeTestResponseStringUUIDArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -56344,8 +56344,6 @@ func (s *Server) decodeTestResponseStringUUIDArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56356,6 +56354,8 @@ func (s *Server) decodeTestResponseStringUUIDArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -56409,8 +56409,6 @@ func (s *Server) decodeTestResponseStringUUIDNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56421,6 +56419,8 @@ func (s *Server) decodeTestResponseStringUUIDNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -56474,8 +56474,6 @@ func (s *Server) decodeTestResponseStringUUIDNullableArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56486,6 +56484,8 @@ func (s *Server) decodeTestResponseStringUUIDNullableArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -56539,8 +56539,6 @@ func (s *Server) decodeTestResponseStringUUIDNullableArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56551,6 +56549,8 @@ func (s *Server) decodeTestResponseStringUUIDNullableArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -56604,8 +56604,6 @@ func (s *Server) decodeTestResponseStringUnixRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56616,6 +56614,8 @@ func (s *Server) decodeTestResponseStringUnixRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -56669,8 +56669,6 @@ func (s *Server) decodeTestResponseStringUnixArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56681,6 +56679,8 @@ func (s *Server) decodeTestResponseStringUnixArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -56734,8 +56734,6 @@ func (s *Server) decodeTestResponseStringUnixArrayArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56746,6 +56744,8 @@ func (s *Server) decodeTestResponseStringUnixArrayArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -56799,8 +56799,6 @@ func (s *Server) decodeTestResponseStringUnixMicroRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56811,6 +56809,8 @@ func (s *Server) decodeTestResponseStringUnixMicroRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -56864,8 +56864,6 @@ func (s *Server) decodeTestResponseStringUnixMicroArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56876,6 +56874,8 @@ func (s *Server) decodeTestResponseStringUnixMicroArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -56929,8 +56929,6 @@ func (s *Server) decodeTestResponseStringUnixMicroArrayArrayRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56941,6 +56939,8 @@ func (s *Server) decodeTestResponseStringUnixMicroArrayArrayRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -56994,8 +56994,6 @@ func (s *Server) decodeTestResponseStringUnixMicroNullableRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -57006,6 +57004,8 @@ func (s *Server) decodeTestResponseStringUnixMicroNullableRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -57059,8 +57059,6 @@ func (s *Server) decodeTestResponseStringUnixMicroNullableArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -57071,6 +57069,8 @@ func (s *Server) decodeTestResponseStringUnixMicroNullableArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -57124,8 +57124,6 @@ func (s *Server) decodeTestResponseStringUnixMicroNullableArrayArrayRequest(r *h if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -57136,6 +57134,8 @@ func (s *Server) decodeTestResponseStringUnixMicroNullableArrayArrayRequest(r *h } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -57189,8 +57189,6 @@ func (s *Server) decodeTestResponseStringUnixMilliRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -57201,6 +57199,8 @@ func (s *Server) decodeTestResponseStringUnixMilliRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -57254,8 +57254,6 @@ func (s *Server) decodeTestResponseStringUnixMilliArrayRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -57266,6 +57264,8 @@ func (s *Server) decodeTestResponseStringUnixMilliArrayRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -57319,8 +57319,6 @@ func (s *Server) decodeTestResponseStringUnixMilliArrayArrayRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -57331,6 +57329,8 @@ func (s *Server) decodeTestResponseStringUnixMilliArrayArrayRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -57384,8 +57384,6 @@ func (s *Server) decodeTestResponseStringUnixMilliNullableRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -57396,6 +57394,8 @@ func (s *Server) decodeTestResponseStringUnixMilliNullableRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -57449,8 +57449,6 @@ func (s *Server) decodeTestResponseStringUnixMilliNullableArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -57461,6 +57459,8 @@ func (s *Server) decodeTestResponseStringUnixMilliNullableArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -57514,8 +57514,6 @@ func (s *Server) decodeTestResponseStringUnixMilliNullableArrayArrayRequest(r *h if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -57526,6 +57524,8 @@ func (s *Server) decodeTestResponseStringUnixMilliNullableArrayArrayRequest(r *h } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -57579,8 +57579,6 @@ func (s *Server) decodeTestResponseStringUnixNanoRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -57591,6 +57589,8 @@ func (s *Server) decodeTestResponseStringUnixNanoRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -57644,8 +57644,6 @@ func (s *Server) decodeTestResponseStringUnixNanoArrayRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -57656,6 +57654,8 @@ func (s *Server) decodeTestResponseStringUnixNanoArrayRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -57709,8 +57709,6 @@ func (s *Server) decodeTestResponseStringUnixNanoArrayArrayRequest(r *http.Reque if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -57721,6 +57719,8 @@ func (s *Server) decodeTestResponseStringUnixNanoArrayArrayRequest(r *http.Reque } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -57774,8 +57774,6 @@ func (s *Server) decodeTestResponseStringUnixNanoNullableRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -57786,6 +57784,8 @@ func (s *Server) decodeTestResponseStringUnixNanoNullableRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -57839,8 +57839,6 @@ func (s *Server) decodeTestResponseStringUnixNanoNullableArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -57851,6 +57849,8 @@ func (s *Server) decodeTestResponseStringUnixNanoNullableArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -57904,8 +57904,6 @@ func (s *Server) decodeTestResponseStringUnixNanoNullableArrayArrayRequest(r *ht if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -57916,6 +57914,8 @@ func (s *Server) decodeTestResponseStringUnixNanoNullableArrayArrayRequest(r *ht } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -57969,8 +57969,6 @@ func (s *Server) decodeTestResponseStringUnixNullableRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -57981,6 +57979,8 @@ func (s *Server) decodeTestResponseStringUnixNullableRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -58034,8 +58034,6 @@ func (s *Server) decodeTestResponseStringUnixNullableArrayRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -58046,6 +58044,8 @@ func (s *Server) decodeTestResponseStringUnixNullableArrayRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -58099,8 +58099,6 @@ func (s *Server) decodeTestResponseStringUnixNullableArrayArrayRequest(r *http.R if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -58111,6 +58109,8 @@ func (s *Server) decodeTestResponseStringUnixNullableArrayArrayRequest(r *http.R } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -58164,8 +58164,6 @@ func (s *Server) decodeTestResponseStringUnixSecondsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -58176,6 +58174,8 @@ func (s *Server) decodeTestResponseStringUnixSecondsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -58229,8 +58229,6 @@ func (s *Server) decodeTestResponseStringUnixSecondsArrayRequest(r *http.Request if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -58241,6 +58239,8 @@ func (s *Server) decodeTestResponseStringUnixSecondsArrayRequest(r *http.Request } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -58294,8 +58294,6 @@ func (s *Server) decodeTestResponseStringUnixSecondsArrayArrayRequest(r *http.Re if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -58306,6 +58304,8 @@ func (s *Server) decodeTestResponseStringUnixSecondsArrayArrayRequest(r *http.Re } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -58359,8 +58359,6 @@ func (s *Server) decodeTestResponseStringUnixSecondsNullableRequest(r *http.Requ if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -58371,6 +58369,8 @@ func (s *Server) decodeTestResponseStringUnixSecondsNullableRequest(r *http.Requ } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -58424,8 +58424,6 @@ func (s *Server) decodeTestResponseStringUnixSecondsNullableArrayRequest(r *http if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -58436,6 +58434,8 @@ func (s *Server) decodeTestResponseStringUnixSecondsNullableArrayRequest(r *http } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) @@ -58489,8 +58489,6 @@ func (s *Server) decodeTestResponseStringUnixSecondsNullableArrayArrayRequest(r if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request string buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -58501,6 +58499,8 @@ func (s *Server) decodeTestResponseStringUnixSecondsNullableArrayArrayRequest(r } d := jx.DecodeBytes(buf) + + var request string if err := func() error { v, err := d.Str() request = string(v) diff --git a/examples/ex_test_format/oas_response_decoders_gen.go b/examples/ex_test_format/oas_response_decoders_gen.go index ba2d44b62..68641f51c 100644 --- a/examples/ex_test_format/oas_response_decoders_gen.go +++ b/examples/ex_test_format/oas_response_decoders_gen.go @@ -33,8 +33,8 @@ func decodeTestQueryParameterResponse(resp *http.Response) (res *Error, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -74,8 +74,8 @@ func decodeTestRequestAnyResponse(resp *http.Response) (res *Error, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -115,8 +115,8 @@ func decodeTestRequestBooleanResponse(resp *http.Response) (res *Error, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -156,8 +156,8 @@ func decodeTestRequestBooleanArrayResponse(resp *http.Response) (res *Error, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -197,8 +197,8 @@ func decodeTestRequestBooleanArrayArrayResponse(resp *http.Response) (res *Error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -238,8 +238,8 @@ func decodeTestRequestBooleanNullableResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -279,8 +279,8 @@ func decodeTestRequestBooleanNullableArrayResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -320,8 +320,8 @@ func decodeTestRequestBooleanNullableArrayArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -361,8 +361,8 @@ func decodeTestRequestEmptyStructResponse(resp *http.Response) (res *Error, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -402,8 +402,8 @@ func decodeTestRequestFormatTestResponse(resp *http.Response) (res *Error, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -443,8 +443,8 @@ func decodeTestRequestIntegerResponse(resp *http.Response) (res *Error, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -484,8 +484,8 @@ func decodeTestRequestIntegerArrayResponse(resp *http.Response) (res *Error, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -525,8 +525,8 @@ func decodeTestRequestIntegerArrayArrayResponse(resp *http.Response) (res *Error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -566,8 +566,8 @@ func decodeTestRequestIntegerInt32Response(resp *http.Response) (res *Error, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -607,8 +607,8 @@ func decodeTestRequestIntegerInt32ArrayResponse(resp *http.Response) (res *Error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -648,8 +648,8 @@ func decodeTestRequestIntegerInt32ArrayArrayResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -689,8 +689,8 @@ func decodeTestRequestIntegerInt32NullableResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -730,8 +730,8 @@ func decodeTestRequestIntegerInt32NullableArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -771,8 +771,8 @@ func decodeTestRequestIntegerInt32NullableArrayArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -812,8 +812,8 @@ func decodeTestRequestIntegerInt64Response(resp *http.Response) (res *Error, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -853,8 +853,8 @@ func decodeTestRequestIntegerInt64ArrayResponse(resp *http.Response) (res *Error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -894,8 +894,8 @@ func decodeTestRequestIntegerInt64ArrayArrayResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -935,8 +935,8 @@ func decodeTestRequestIntegerInt64NullableResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -976,8 +976,8 @@ func decodeTestRequestIntegerInt64NullableArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1017,8 +1017,8 @@ func decodeTestRequestIntegerInt64NullableArrayArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1058,8 +1058,8 @@ func decodeTestRequestIntegerNullableResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1099,8 +1099,8 @@ func decodeTestRequestIntegerNullableArrayResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1140,8 +1140,8 @@ func decodeTestRequestIntegerNullableArrayArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1181,8 +1181,8 @@ func decodeTestRequestIntegerUintResponse(resp *http.Response) (res *Error, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1222,8 +1222,8 @@ func decodeTestRequestIntegerUint32Response(resp *http.Response) (res *Error, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1263,8 +1263,8 @@ func decodeTestRequestIntegerUint32ArrayResponse(resp *http.Response) (res *Erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1304,8 +1304,8 @@ func decodeTestRequestIntegerUint32ArrayArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1345,8 +1345,8 @@ func decodeTestRequestIntegerUint32NullableResponse(resp *http.Response) (res *E if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1386,8 +1386,8 @@ func decodeTestRequestIntegerUint32NullableArrayResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1427,8 +1427,8 @@ func decodeTestRequestIntegerUint32NullableArrayArrayResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1468,8 +1468,8 @@ func decodeTestRequestIntegerUint64Response(resp *http.Response) (res *Error, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1509,8 +1509,8 @@ func decodeTestRequestIntegerUint64ArrayResponse(resp *http.Response) (res *Erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1550,8 +1550,8 @@ func decodeTestRequestIntegerUint64ArrayArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1591,8 +1591,8 @@ func decodeTestRequestIntegerUint64NullableResponse(resp *http.Response) (res *E if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1632,8 +1632,8 @@ func decodeTestRequestIntegerUint64NullableArrayResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1673,8 +1673,8 @@ func decodeTestRequestIntegerUint64NullableArrayArrayResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1714,8 +1714,8 @@ func decodeTestRequestIntegerUintArrayResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1755,8 +1755,8 @@ func decodeTestRequestIntegerUintArrayArrayResponse(resp *http.Response) (res *E if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1796,8 +1796,8 @@ func decodeTestRequestIntegerUintNullableResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1837,8 +1837,8 @@ func decodeTestRequestIntegerUintNullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1878,8 +1878,8 @@ func decodeTestRequestIntegerUintNullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1919,8 +1919,8 @@ func decodeTestRequestIntegerUnixResponse(resp *http.Response) (res *Error, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1960,8 +1960,8 @@ func decodeTestRequestIntegerUnixArrayResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2001,8 +2001,8 @@ func decodeTestRequestIntegerUnixArrayArrayResponse(resp *http.Response) (res *E if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2042,8 +2042,8 @@ func decodeTestRequestIntegerUnixMicroResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2083,8 +2083,8 @@ func decodeTestRequestIntegerUnixMicroArrayResponse(resp *http.Response) (res *E if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2124,8 +2124,8 @@ func decodeTestRequestIntegerUnixMicroArrayArrayResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2165,8 +2165,8 @@ func decodeTestRequestIntegerUnixMicroNullableResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2206,8 +2206,8 @@ func decodeTestRequestIntegerUnixMicroNullableArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2247,8 +2247,8 @@ func decodeTestRequestIntegerUnixMicroNullableArrayArrayResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2288,8 +2288,8 @@ func decodeTestRequestIntegerUnixMilliResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2329,8 +2329,8 @@ func decodeTestRequestIntegerUnixMilliArrayResponse(resp *http.Response) (res *E if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2370,8 +2370,8 @@ func decodeTestRequestIntegerUnixMilliArrayArrayResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2411,8 +2411,8 @@ func decodeTestRequestIntegerUnixMilliNullableResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2452,8 +2452,8 @@ func decodeTestRequestIntegerUnixMilliNullableArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2493,8 +2493,8 @@ func decodeTestRequestIntegerUnixMilliNullableArrayArrayResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2534,8 +2534,8 @@ func decodeTestRequestIntegerUnixNanoResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2575,8 +2575,8 @@ func decodeTestRequestIntegerUnixNanoArrayResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2616,8 +2616,8 @@ func decodeTestRequestIntegerUnixNanoArrayArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2657,8 +2657,8 @@ func decodeTestRequestIntegerUnixNanoNullableResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2698,8 +2698,8 @@ func decodeTestRequestIntegerUnixNanoNullableArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2739,8 +2739,8 @@ func decodeTestRequestIntegerUnixNanoNullableArrayArrayResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2780,8 +2780,8 @@ func decodeTestRequestIntegerUnixNullableResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2821,8 +2821,8 @@ func decodeTestRequestIntegerUnixNullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2862,8 +2862,8 @@ func decodeTestRequestIntegerUnixNullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2903,8 +2903,8 @@ func decodeTestRequestIntegerUnixSecondsResponse(resp *http.Response) (res *Erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2944,8 +2944,8 @@ func decodeTestRequestIntegerUnixSecondsArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -2985,8 +2985,8 @@ func decodeTestRequestIntegerUnixSecondsArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3026,8 +3026,8 @@ func decodeTestRequestIntegerUnixSecondsNullableResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3067,8 +3067,8 @@ func decodeTestRequestIntegerUnixSecondsNullableArrayResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3108,8 +3108,8 @@ func decodeTestRequestIntegerUnixSecondsNullableArrayArrayResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3149,8 +3149,8 @@ func decodeTestRequestNullResponse(resp *http.Response) (res *Error, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3190,8 +3190,8 @@ func decodeTestRequestNullArrayResponse(resp *http.Response) (res *Error, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3231,8 +3231,8 @@ func decodeTestRequestNullArrayArrayResponse(resp *http.Response) (res *Error, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3272,8 +3272,8 @@ func decodeTestRequestNullNullableResponse(resp *http.Response) (res *Error, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3313,8 +3313,8 @@ func decodeTestRequestNullNullableArrayResponse(resp *http.Response) (res *Error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3354,8 +3354,8 @@ func decodeTestRequestNullNullableArrayArrayResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3395,8 +3395,8 @@ func decodeTestRequestNumberResponse(resp *http.Response) (res *Error, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3436,8 +3436,8 @@ func decodeTestRequestNumberArrayResponse(resp *http.Response) (res *Error, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3477,8 +3477,8 @@ func decodeTestRequestNumberArrayArrayResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3518,8 +3518,8 @@ func decodeTestRequestNumberDoubleResponse(resp *http.Response) (res *Error, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3559,8 +3559,8 @@ func decodeTestRequestNumberDoubleArrayResponse(resp *http.Response) (res *Error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3600,8 +3600,8 @@ func decodeTestRequestNumberDoubleArrayArrayResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3641,8 +3641,8 @@ func decodeTestRequestNumberDoubleNullableResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3682,8 +3682,8 @@ func decodeTestRequestNumberDoubleNullableArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3723,8 +3723,8 @@ func decodeTestRequestNumberDoubleNullableArrayArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3764,8 +3764,8 @@ func decodeTestRequestNumberFloatResponse(resp *http.Response) (res *Error, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3805,8 +3805,8 @@ func decodeTestRequestNumberFloatArrayResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3846,8 +3846,8 @@ func decodeTestRequestNumberFloatArrayArrayResponse(resp *http.Response) (res *E if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3887,8 +3887,8 @@ func decodeTestRequestNumberFloatNullableResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3928,8 +3928,8 @@ func decodeTestRequestNumberFloatNullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -3969,8 +3969,8 @@ func decodeTestRequestNumberFloatNullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4010,8 +4010,8 @@ func decodeTestRequestNumberInt32Response(resp *http.Response) (res *Error, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4051,8 +4051,8 @@ func decodeTestRequestNumberInt32ArrayResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4092,8 +4092,8 @@ func decodeTestRequestNumberInt32ArrayArrayResponse(resp *http.Response) (res *E if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4133,8 +4133,8 @@ func decodeTestRequestNumberInt32NullableResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4174,8 +4174,8 @@ func decodeTestRequestNumberInt32NullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4215,8 +4215,8 @@ func decodeTestRequestNumberInt32NullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4256,8 +4256,8 @@ func decodeTestRequestNumberInt64Response(resp *http.Response) (res *Error, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4297,8 +4297,8 @@ func decodeTestRequestNumberInt64ArrayResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4338,8 +4338,8 @@ func decodeTestRequestNumberInt64ArrayArrayResponse(resp *http.Response) (res *E if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4379,8 +4379,8 @@ func decodeTestRequestNumberInt64NullableResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4420,8 +4420,8 @@ func decodeTestRequestNumberInt64NullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4461,49 +4461,8 @@ func decodeTestRequestNumberInt64NullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) - var response Error - if err := func() error { - if err := response.Decode(d); err != nil { - return err - } - if err := d.Skip(); err != io.EOF { - return errors.New("unexpected trailing data") - } - return nil - }(); err != nil { - err = &ogenerrors.DecodeBodyError{ - ContentType: ct, - Body: buf, - Err: err, - } - return res, err - } - return &response, nil - default: - return res, validate.InvalidContentType(ct) - } - } - return res, validate.UnexpectedStatusCode(resp.StatusCode) -} -func decodeTestRequestNumberNullableResponse(resp *http.Response) (res *Error, err error) { - switch resp.StatusCode { - case 200: - // Code 200. - ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type")) - if err != nil { - return res, errors.Wrap(err, "parse media type") - } - switch { - case ct == "application/json": - buf, err := io.ReadAll(resp.Body) - if err != nil { - return res, err - } - - d := jx.DecodeBytes(buf) var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4529,7 +4488,7 @@ func decodeTestRequestNumberNullableResponse(resp *http.Response) (res *Error, e return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestRequestNumberNullableArrayResponse(resp *http.Response) (res *Error, err error) { +func decodeTestRequestNumberNullableResponse(resp *http.Response) (res *Error, err error) { switch resp.StatusCode { case 200: // Code 200. @@ -4543,8 +4502,49 @@ func decodeTestRequestNumberNullableArrayResponse(resp *http.Response) (res *Err if err != nil { return res, err } + d := jx.DecodeBytes(buf) + var response Error + if err := func() error { + if err := response.Decode(d); err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return res, err + } + return &response, nil + default: + return res, validate.InvalidContentType(ct) + } + } + return res, validate.UnexpectedStatusCode(resp.StatusCode) +} + +func decodeTestRequestNumberNullableArrayResponse(resp *http.Response) (res *Error, err error) { + switch resp.StatusCode { + case 200: + // Code 200. + ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type")) + if err != nil { + return res, errors.Wrap(err, "parse media type") + } + switch { + case ct == "application/json": + buf, err := io.ReadAll(resp.Body) + if err != nil { + return res, err + } d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4584,8 +4584,8 @@ func decodeTestRequestNumberNullableArrayArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4625,8 +4625,8 @@ func decodeTestRequestRequiredAnyResponse(resp *http.Response) (res *Error, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4666,8 +4666,8 @@ func decodeTestRequestRequiredBooleanResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4707,8 +4707,8 @@ func decodeTestRequestRequiredBooleanArrayResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4748,8 +4748,8 @@ func decodeTestRequestRequiredBooleanArrayArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4789,8 +4789,8 @@ func decodeTestRequestRequiredBooleanNullableResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4830,8 +4830,8 @@ func decodeTestRequestRequiredBooleanNullableArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4871,8 +4871,8 @@ func decodeTestRequestRequiredBooleanNullableArrayArrayResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4912,8 +4912,8 @@ func decodeTestRequestRequiredEmptyStructResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4953,8 +4953,8 @@ func decodeTestRequestRequiredFormatTestResponse(resp *http.Response) (res *Erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -4994,8 +4994,8 @@ func decodeTestRequestRequiredIntegerResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5035,8 +5035,8 @@ func decodeTestRequestRequiredIntegerArrayResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5076,8 +5076,8 @@ func decodeTestRequestRequiredIntegerArrayArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5117,8 +5117,8 @@ func decodeTestRequestRequiredIntegerInt32Response(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5158,8 +5158,8 @@ func decodeTestRequestRequiredIntegerInt32ArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5199,8 +5199,8 @@ func decodeTestRequestRequiredIntegerInt32ArrayArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5240,8 +5240,8 @@ func decodeTestRequestRequiredIntegerInt32NullableResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5281,8 +5281,8 @@ func decodeTestRequestRequiredIntegerInt32NullableArrayResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5322,8 +5322,8 @@ func decodeTestRequestRequiredIntegerInt32NullableArrayArrayResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5363,8 +5363,8 @@ func decodeTestRequestRequiredIntegerInt64Response(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5404,8 +5404,8 @@ func decodeTestRequestRequiredIntegerInt64ArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5445,8 +5445,8 @@ func decodeTestRequestRequiredIntegerInt64ArrayArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5486,8 +5486,8 @@ func decodeTestRequestRequiredIntegerInt64NullableResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5527,8 +5527,8 @@ func decodeTestRequestRequiredIntegerInt64NullableArrayResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5568,8 +5568,8 @@ func decodeTestRequestRequiredIntegerInt64NullableArrayArrayResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5609,8 +5609,8 @@ func decodeTestRequestRequiredIntegerNullableResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5650,8 +5650,8 @@ func decodeTestRequestRequiredIntegerNullableArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5691,8 +5691,8 @@ func decodeTestRequestRequiredIntegerNullableArrayArrayResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5732,8 +5732,8 @@ func decodeTestRequestRequiredIntegerUintResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5773,8 +5773,8 @@ func decodeTestRequestRequiredIntegerUint32Response(resp *http.Response) (res *E if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5814,8 +5814,8 @@ func decodeTestRequestRequiredIntegerUint32ArrayResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5855,8 +5855,8 @@ func decodeTestRequestRequiredIntegerUint32ArrayArrayResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5896,8 +5896,8 @@ func decodeTestRequestRequiredIntegerUint32NullableResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5937,8 +5937,8 @@ func decodeTestRequestRequiredIntegerUint32NullableArrayResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -5978,8 +5978,8 @@ func decodeTestRequestRequiredIntegerUint32NullableArrayArrayResponse(resp *http if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6019,8 +6019,8 @@ func decodeTestRequestRequiredIntegerUint64Response(resp *http.Response) (res *E if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6060,8 +6060,8 @@ func decodeTestRequestRequiredIntegerUint64ArrayResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6101,8 +6101,8 @@ func decodeTestRequestRequiredIntegerUint64ArrayArrayResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6142,8 +6142,8 @@ func decodeTestRequestRequiredIntegerUint64NullableResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6183,8 +6183,8 @@ func decodeTestRequestRequiredIntegerUint64NullableArrayResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6224,8 +6224,8 @@ func decodeTestRequestRequiredIntegerUint64NullableArrayArrayResponse(resp *http if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6265,8 +6265,8 @@ func decodeTestRequestRequiredIntegerUintArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6306,8 +6306,8 @@ func decodeTestRequestRequiredIntegerUintArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6347,8 +6347,8 @@ func decodeTestRequestRequiredIntegerUintNullableResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6388,8 +6388,8 @@ func decodeTestRequestRequiredIntegerUintNullableArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6429,8 +6429,8 @@ func decodeTestRequestRequiredIntegerUintNullableArrayArrayResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6470,8 +6470,8 @@ func decodeTestRequestRequiredIntegerUnixResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6511,8 +6511,8 @@ func decodeTestRequestRequiredIntegerUnixArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6552,8 +6552,8 @@ func decodeTestRequestRequiredIntegerUnixArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6593,8 +6593,8 @@ func decodeTestRequestRequiredIntegerUnixMicroResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6634,8 +6634,8 @@ func decodeTestRequestRequiredIntegerUnixMicroArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6675,8 +6675,8 @@ func decodeTestRequestRequiredIntegerUnixMicroArrayArrayResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6716,8 +6716,8 @@ func decodeTestRequestRequiredIntegerUnixMicroNullableResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6757,8 +6757,8 @@ func decodeTestRequestRequiredIntegerUnixMicroNullableArrayResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6798,8 +6798,8 @@ func decodeTestRequestRequiredIntegerUnixMicroNullableArrayArrayResponse(resp *h if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6839,8 +6839,8 @@ func decodeTestRequestRequiredIntegerUnixMilliResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6880,8 +6880,8 @@ func decodeTestRequestRequiredIntegerUnixMilliArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6921,8 +6921,8 @@ func decodeTestRequestRequiredIntegerUnixMilliArrayArrayResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -6962,8 +6962,8 @@ func decodeTestRequestRequiredIntegerUnixMilliNullableResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7003,8 +7003,8 @@ func decodeTestRequestRequiredIntegerUnixMilliNullableArrayResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7044,8 +7044,8 @@ func decodeTestRequestRequiredIntegerUnixMilliNullableArrayArrayResponse(resp *h if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7085,8 +7085,8 @@ func decodeTestRequestRequiredIntegerUnixNanoResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7126,8 +7126,8 @@ func decodeTestRequestRequiredIntegerUnixNanoArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7167,8 +7167,8 @@ func decodeTestRequestRequiredIntegerUnixNanoArrayArrayResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7208,8 +7208,8 @@ func decodeTestRequestRequiredIntegerUnixNanoNullableResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7249,8 +7249,8 @@ func decodeTestRequestRequiredIntegerUnixNanoNullableArrayResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7290,8 +7290,8 @@ func decodeTestRequestRequiredIntegerUnixNanoNullableArrayArrayResponse(resp *ht if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7331,8 +7331,8 @@ func decodeTestRequestRequiredIntegerUnixNullableResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7372,8 +7372,8 @@ func decodeTestRequestRequiredIntegerUnixNullableArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7413,8 +7413,8 @@ func decodeTestRequestRequiredIntegerUnixNullableArrayArrayResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7454,8 +7454,8 @@ func decodeTestRequestRequiredIntegerUnixSecondsResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7495,8 +7495,8 @@ func decodeTestRequestRequiredIntegerUnixSecondsArrayResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7536,8 +7536,8 @@ func decodeTestRequestRequiredIntegerUnixSecondsArrayArrayResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7577,8 +7577,8 @@ func decodeTestRequestRequiredIntegerUnixSecondsNullableResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7618,8 +7618,8 @@ func decodeTestRequestRequiredIntegerUnixSecondsNullableArrayResponse(resp *http if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7659,8 +7659,8 @@ func decodeTestRequestRequiredIntegerUnixSecondsNullableArrayArrayResponse(resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7700,8 +7700,8 @@ func decodeTestRequestRequiredNullResponse(resp *http.Response) (res *Error, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7741,8 +7741,8 @@ func decodeTestRequestRequiredNullArrayResponse(resp *http.Response) (res *Error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7782,8 +7782,8 @@ func decodeTestRequestRequiredNullArrayArrayResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7823,8 +7823,8 @@ func decodeTestRequestRequiredNullNullableResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7864,8 +7864,8 @@ func decodeTestRequestRequiredNullNullableArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7905,8 +7905,8 @@ func decodeTestRequestRequiredNullNullableArrayArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7946,8 +7946,8 @@ func decodeTestRequestRequiredNumberResponse(resp *http.Response) (res *Error, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -7987,8 +7987,8 @@ func decodeTestRequestRequiredNumberArrayResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8028,8 +8028,8 @@ func decodeTestRequestRequiredNumberArrayArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8069,8 +8069,8 @@ func decodeTestRequestRequiredNumberDoubleResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8110,8 +8110,8 @@ func decodeTestRequestRequiredNumberDoubleArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8151,8 +8151,8 @@ func decodeTestRequestRequiredNumberDoubleArrayArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8192,8 +8192,8 @@ func decodeTestRequestRequiredNumberDoubleNullableResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8233,8 +8233,8 @@ func decodeTestRequestRequiredNumberDoubleNullableArrayResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8274,8 +8274,8 @@ func decodeTestRequestRequiredNumberDoubleNullableArrayArrayResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8315,8 +8315,8 @@ func decodeTestRequestRequiredNumberFloatResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8356,8 +8356,8 @@ func decodeTestRequestRequiredNumberFloatArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8397,8 +8397,8 @@ func decodeTestRequestRequiredNumberFloatArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8438,8 +8438,8 @@ func decodeTestRequestRequiredNumberFloatNullableResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8479,8 +8479,8 @@ func decodeTestRequestRequiredNumberFloatNullableArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8520,8 +8520,8 @@ func decodeTestRequestRequiredNumberFloatNullableArrayArrayResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8561,8 +8561,8 @@ func decodeTestRequestRequiredNumberInt32Response(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8602,8 +8602,8 @@ func decodeTestRequestRequiredNumberInt32ArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8643,8 +8643,8 @@ func decodeTestRequestRequiredNumberInt32ArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8684,8 +8684,8 @@ func decodeTestRequestRequiredNumberInt32NullableResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8725,8 +8725,8 @@ func decodeTestRequestRequiredNumberInt32NullableArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8766,8 +8766,8 @@ func decodeTestRequestRequiredNumberInt32NullableArrayArrayResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8807,8 +8807,8 @@ func decodeTestRequestRequiredNumberInt64Response(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8848,8 +8848,8 @@ func decodeTestRequestRequiredNumberInt64ArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8889,8 +8889,8 @@ func decodeTestRequestRequiredNumberInt64ArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8930,8 +8930,8 @@ func decodeTestRequestRequiredNumberInt64NullableResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -8971,8 +8971,8 @@ func decodeTestRequestRequiredNumberInt64NullableArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9012,8 +9012,8 @@ func decodeTestRequestRequiredNumberInt64NullableArrayArrayResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9053,8 +9053,8 @@ func decodeTestRequestRequiredNumberNullableResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9094,8 +9094,8 @@ func decodeTestRequestRequiredNumberNullableArrayResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9135,8 +9135,8 @@ func decodeTestRequestRequiredNumberNullableArrayArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9176,8 +9176,8 @@ func decodeTestRequestRequiredStringResponse(resp *http.Response) (res *Error, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9217,8 +9217,8 @@ func decodeTestRequestRequiredStringArrayResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9258,8 +9258,8 @@ func decodeTestRequestRequiredStringArrayArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9299,8 +9299,8 @@ func decodeTestRequestRequiredStringBase64Response(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9340,8 +9340,8 @@ func decodeTestRequestRequiredStringBase64ArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9381,8 +9381,8 @@ func decodeTestRequestRequiredStringBase64ArrayArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9422,8 +9422,8 @@ func decodeTestRequestRequiredStringBase64NullableResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9463,8 +9463,8 @@ func decodeTestRequestRequiredStringBase64NullableArrayResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9504,8 +9504,8 @@ func decodeTestRequestRequiredStringBase64NullableArrayArrayResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9545,8 +9545,8 @@ func decodeTestRequestRequiredStringBinaryResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9586,8 +9586,8 @@ func decodeTestRequestRequiredStringBinaryArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9627,8 +9627,8 @@ func decodeTestRequestRequiredStringBinaryArrayArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9668,8 +9668,8 @@ func decodeTestRequestRequiredStringBinaryNullableResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9709,8 +9709,8 @@ func decodeTestRequestRequiredStringBinaryNullableArrayResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9750,8 +9750,8 @@ func decodeTestRequestRequiredStringBinaryNullableArrayArrayResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9791,8 +9791,8 @@ func decodeTestRequestRequiredStringByteResponse(resp *http.Response) (res *Erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9832,8 +9832,8 @@ func decodeTestRequestRequiredStringByteArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9873,8 +9873,8 @@ func decodeTestRequestRequiredStringByteArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9914,8 +9914,8 @@ func decodeTestRequestRequiredStringByteNullableResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9955,8 +9955,8 @@ func decodeTestRequestRequiredStringByteNullableArrayResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -9996,8 +9996,8 @@ func decodeTestRequestRequiredStringByteNullableArrayArrayResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10037,8 +10037,8 @@ func decodeTestRequestRequiredStringDateResponse(resp *http.Response) (res *Erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10078,8 +10078,8 @@ func decodeTestRequestRequiredStringDateArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10119,8 +10119,8 @@ func decodeTestRequestRequiredStringDateArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10160,8 +10160,8 @@ func decodeTestRequestRequiredStringDateNullableResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10201,8 +10201,8 @@ func decodeTestRequestRequiredStringDateNullableArrayResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10242,8 +10242,8 @@ func decodeTestRequestRequiredStringDateNullableArrayArrayResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10283,8 +10283,8 @@ func decodeTestRequestRequiredStringDateTimeResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10324,8 +10324,8 @@ func decodeTestRequestRequiredStringDateTimeArrayResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10365,8 +10365,8 @@ func decodeTestRequestRequiredStringDateTimeArrayArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10406,8 +10406,8 @@ func decodeTestRequestRequiredStringDateTimeNullableResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10447,8 +10447,8 @@ func decodeTestRequestRequiredStringDateTimeNullableArrayResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10488,8 +10488,8 @@ func decodeTestRequestRequiredStringDateTimeNullableArrayArrayResponse(resp *htt if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10529,8 +10529,8 @@ func decodeTestRequestRequiredStringDurationResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10570,8 +10570,8 @@ func decodeTestRequestRequiredStringDurationArrayResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10611,8 +10611,8 @@ func decodeTestRequestRequiredStringDurationArrayArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10652,8 +10652,8 @@ func decodeTestRequestRequiredStringDurationNullableResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10693,8 +10693,8 @@ func decodeTestRequestRequiredStringDurationNullableArrayResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10734,8 +10734,8 @@ func decodeTestRequestRequiredStringDurationNullableArrayArrayResponse(resp *htt if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10775,8 +10775,8 @@ func decodeTestRequestRequiredStringEmailResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10816,8 +10816,8 @@ func decodeTestRequestRequiredStringEmailArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10857,8 +10857,8 @@ func decodeTestRequestRequiredStringEmailArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10898,8 +10898,8 @@ func decodeTestRequestRequiredStringEmailNullableResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10939,8 +10939,8 @@ func decodeTestRequestRequiredStringEmailNullableArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -10980,8 +10980,8 @@ func decodeTestRequestRequiredStringEmailNullableArrayArrayResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11021,8 +11021,8 @@ func decodeTestRequestRequiredStringHostnameResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11062,8 +11062,8 @@ func decodeTestRequestRequiredStringHostnameArrayResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11103,8 +11103,8 @@ func decodeTestRequestRequiredStringHostnameArrayArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11144,8 +11144,8 @@ func decodeTestRequestRequiredStringHostnameNullableResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11185,8 +11185,8 @@ func decodeTestRequestRequiredStringHostnameNullableArrayResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11226,8 +11226,8 @@ func decodeTestRequestRequiredStringHostnameNullableArrayArrayResponse(resp *htt if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11267,8 +11267,8 @@ func decodeTestRequestRequiredStringIPResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11308,8 +11308,8 @@ func decodeTestRequestRequiredStringIPArrayResponse(resp *http.Response) (res *E if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11349,8 +11349,8 @@ func decodeTestRequestRequiredStringIPArrayArrayResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11390,8 +11390,8 @@ func decodeTestRequestRequiredStringIPNullableResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11431,8 +11431,8 @@ func decodeTestRequestRequiredStringIPNullableArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11472,8 +11472,8 @@ func decodeTestRequestRequiredStringIPNullableArrayArrayResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11513,8 +11513,8 @@ func decodeTestRequestRequiredStringInt32Response(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11554,8 +11554,8 @@ func decodeTestRequestRequiredStringInt32ArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11595,8 +11595,8 @@ func decodeTestRequestRequiredStringInt32ArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11636,8 +11636,8 @@ func decodeTestRequestRequiredStringInt32NullableResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11677,8 +11677,8 @@ func decodeTestRequestRequiredStringInt32NullableArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11718,8 +11718,8 @@ func decodeTestRequestRequiredStringInt32NullableArrayArrayResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11759,8 +11759,8 @@ func decodeTestRequestRequiredStringInt64Response(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11800,8 +11800,8 @@ func decodeTestRequestRequiredStringInt64ArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11841,8 +11841,8 @@ func decodeTestRequestRequiredStringInt64ArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11882,8 +11882,8 @@ func decodeTestRequestRequiredStringInt64NullableResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11923,8 +11923,8 @@ func decodeTestRequestRequiredStringInt64NullableArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -11964,8 +11964,8 @@ func decodeTestRequestRequiredStringInt64NullableArrayArrayResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12005,8 +12005,8 @@ func decodeTestRequestRequiredStringIpv4Response(resp *http.Response) (res *Erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12046,8 +12046,8 @@ func decodeTestRequestRequiredStringIpv4ArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12087,8 +12087,8 @@ func decodeTestRequestRequiredStringIpv4ArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12128,8 +12128,8 @@ func decodeTestRequestRequiredStringIpv4NullableResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12169,8 +12169,8 @@ func decodeTestRequestRequiredStringIpv4NullableArrayResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12210,8 +12210,8 @@ func decodeTestRequestRequiredStringIpv4NullableArrayArrayResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12251,8 +12251,8 @@ func decodeTestRequestRequiredStringIpv6Response(resp *http.Response) (res *Erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12292,8 +12292,8 @@ func decodeTestRequestRequiredStringIpv6ArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12333,8 +12333,8 @@ func decodeTestRequestRequiredStringIpv6ArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12374,8 +12374,8 @@ func decodeTestRequestRequiredStringIpv6NullableResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12415,8 +12415,8 @@ func decodeTestRequestRequiredStringIpv6NullableArrayResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12456,8 +12456,8 @@ func decodeTestRequestRequiredStringIpv6NullableArrayArrayResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12497,8 +12497,8 @@ func decodeTestRequestRequiredStringNullableResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12538,8 +12538,8 @@ func decodeTestRequestRequiredStringNullableArrayResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12579,8 +12579,8 @@ func decodeTestRequestRequiredStringNullableArrayArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12620,8 +12620,8 @@ func decodeTestRequestRequiredStringPasswordResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12661,8 +12661,8 @@ func decodeTestRequestRequiredStringPasswordArrayResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12702,8 +12702,8 @@ func decodeTestRequestRequiredStringPasswordArrayArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12743,8 +12743,8 @@ func decodeTestRequestRequiredStringPasswordNullableResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12784,8 +12784,8 @@ func decodeTestRequestRequiredStringPasswordNullableArrayResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12825,8 +12825,8 @@ func decodeTestRequestRequiredStringPasswordNullableArrayArrayResponse(resp *htt if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12866,8 +12866,8 @@ func decodeTestRequestRequiredStringTimeResponse(resp *http.Response) (res *Erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12907,8 +12907,8 @@ func decodeTestRequestRequiredStringTimeArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12948,8 +12948,8 @@ func decodeTestRequestRequiredStringTimeArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -12989,8 +12989,8 @@ func decodeTestRequestRequiredStringTimeNullableResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13030,8 +13030,8 @@ func decodeTestRequestRequiredStringTimeNullableArrayResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13071,8 +13071,8 @@ func decodeTestRequestRequiredStringTimeNullableArrayArrayResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13112,8 +13112,8 @@ func decodeTestRequestRequiredStringURIResponse(resp *http.Response) (res *Error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13153,8 +13153,8 @@ func decodeTestRequestRequiredStringURIArrayResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13194,8 +13194,8 @@ func decodeTestRequestRequiredStringURIArrayArrayResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13235,8 +13235,8 @@ func decodeTestRequestRequiredStringURINullableResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13276,8 +13276,8 @@ func decodeTestRequestRequiredStringURINullableArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13317,8 +13317,8 @@ func decodeTestRequestRequiredStringURINullableArrayArrayResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13358,8 +13358,8 @@ func decodeTestRequestRequiredStringUUIDResponse(resp *http.Response) (res *Erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13399,49 +13399,8 @@ func decodeTestRequestRequiredStringUUIDArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) - var response Error - if err := func() error { - if err := response.Decode(d); err != nil { - return err - } - if err := d.Skip(); err != io.EOF { - return errors.New("unexpected trailing data") - } - return nil - }(); err != nil { - err = &ogenerrors.DecodeBodyError{ - ContentType: ct, - Body: buf, - Err: err, - } - return res, err - } - return &response, nil - default: - return res, validate.InvalidContentType(ct) - } - } - return res, validate.UnexpectedStatusCode(resp.StatusCode) -} -func decodeTestRequestRequiredStringUUIDArrayArrayResponse(resp *http.Response) (res *Error, err error) { - switch resp.StatusCode { - case 200: - // Code 200. - ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type")) - if err != nil { - return res, errors.Wrap(err, "parse media type") - } - switch { - case ct == "application/json": - buf, err := io.ReadAll(resp.Body) - if err != nil { - return res, err - } - - d := jx.DecodeBytes(buf) var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13467,7 +13426,7 @@ func decodeTestRequestRequiredStringUUIDArrayArrayResponse(resp *http.Response) return res, validate.UnexpectedStatusCode(resp.StatusCode) } -func decodeTestRequestRequiredStringUUIDNullableResponse(resp *http.Response) (res *Error, err error) { +func decodeTestRequestRequiredStringUUIDArrayArrayResponse(resp *http.Response) (res *Error, err error) { switch resp.StatusCode { case 200: // Code 200. @@ -13481,8 +13440,49 @@ func decodeTestRequestRequiredStringUUIDNullableResponse(resp *http.Response) (r if err != nil { return res, err } + d := jx.DecodeBytes(buf) + var response Error + if err := func() error { + if err := response.Decode(d); err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return res, err + } + return &response, nil + default: + return res, validate.InvalidContentType(ct) + } + } + return res, validate.UnexpectedStatusCode(resp.StatusCode) +} + +func decodeTestRequestRequiredStringUUIDNullableResponse(resp *http.Response) (res *Error, err error) { + switch resp.StatusCode { + case 200: + // Code 200. + ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type")) + if err != nil { + return res, errors.Wrap(err, "parse media type") + } + switch { + case ct == "application/json": + buf, err := io.ReadAll(resp.Body) + if err != nil { + return res, err + } d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13522,8 +13522,8 @@ func decodeTestRequestRequiredStringUUIDNullableArrayResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13563,8 +13563,8 @@ func decodeTestRequestRequiredStringUUIDNullableArrayArrayResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13604,8 +13604,8 @@ func decodeTestRequestRequiredStringUnixResponse(resp *http.Response) (res *Erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13645,8 +13645,8 @@ func decodeTestRequestRequiredStringUnixArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13686,8 +13686,8 @@ func decodeTestRequestRequiredStringUnixArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13727,8 +13727,8 @@ func decodeTestRequestRequiredStringUnixMicroResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13768,8 +13768,8 @@ func decodeTestRequestRequiredStringUnixMicroArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13809,8 +13809,8 @@ func decodeTestRequestRequiredStringUnixMicroArrayArrayResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13850,8 +13850,8 @@ func decodeTestRequestRequiredStringUnixMicroNullableResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13891,8 +13891,8 @@ func decodeTestRequestRequiredStringUnixMicroNullableArrayResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13932,8 +13932,8 @@ func decodeTestRequestRequiredStringUnixMicroNullableArrayArrayResponse(resp *ht if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -13973,8 +13973,8 @@ func decodeTestRequestRequiredStringUnixMilliResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14014,8 +14014,8 @@ func decodeTestRequestRequiredStringUnixMilliArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14055,8 +14055,8 @@ func decodeTestRequestRequiredStringUnixMilliArrayArrayResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14096,8 +14096,8 @@ func decodeTestRequestRequiredStringUnixMilliNullableResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14137,8 +14137,8 @@ func decodeTestRequestRequiredStringUnixMilliNullableArrayResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14178,8 +14178,8 @@ func decodeTestRequestRequiredStringUnixMilliNullableArrayArrayResponse(resp *ht if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14219,8 +14219,8 @@ func decodeTestRequestRequiredStringUnixNanoResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14260,8 +14260,8 @@ func decodeTestRequestRequiredStringUnixNanoArrayResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14301,8 +14301,8 @@ func decodeTestRequestRequiredStringUnixNanoArrayArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14342,8 +14342,8 @@ func decodeTestRequestRequiredStringUnixNanoNullableResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14383,8 +14383,8 @@ func decodeTestRequestRequiredStringUnixNanoNullableArrayResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14424,8 +14424,8 @@ func decodeTestRequestRequiredStringUnixNanoNullableArrayArrayResponse(resp *htt if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14465,8 +14465,8 @@ func decodeTestRequestRequiredStringUnixNullableResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14506,8 +14506,8 @@ func decodeTestRequestRequiredStringUnixNullableArrayResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14547,8 +14547,8 @@ func decodeTestRequestRequiredStringUnixNullableArrayArrayResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14588,8 +14588,8 @@ func decodeTestRequestRequiredStringUnixSecondsResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14629,8 +14629,8 @@ func decodeTestRequestRequiredStringUnixSecondsArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14670,8 +14670,8 @@ func decodeTestRequestRequiredStringUnixSecondsArrayArrayResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14711,8 +14711,8 @@ func decodeTestRequestRequiredStringUnixSecondsNullableResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14752,8 +14752,8 @@ func decodeTestRequestRequiredStringUnixSecondsNullableArrayResponse(resp *http. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14793,8 +14793,8 @@ func decodeTestRequestRequiredStringUnixSecondsNullableArrayArrayResponse(resp * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14834,8 +14834,8 @@ func decodeTestRequestStringResponse(resp *http.Response) (res *Error, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14875,8 +14875,8 @@ func decodeTestRequestStringArrayResponse(resp *http.Response) (res *Error, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14916,8 +14916,8 @@ func decodeTestRequestStringArrayArrayResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14957,8 +14957,8 @@ func decodeTestRequestStringBase64Response(resp *http.Response) (res *Error, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -14998,8 +14998,8 @@ func decodeTestRequestStringBase64ArrayResponse(resp *http.Response) (res *Error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15039,8 +15039,8 @@ func decodeTestRequestStringBase64ArrayArrayResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15080,8 +15080,8 @@ func decodeTestRequestStringBase64NullableResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15121,8 +15121,8 @@ func decodeTestRequestStringBase64NullableArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15162,8 +15162,8 @@ func decodeTestRequestStringBase64NullableArrayArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15203,8 +15203,8 @@ func decodeTestRequestStringBinaryResponse(resp *http.Response) (res *Error, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15244,8 +15244,8 @@ func decodeTestRequestStringBinaryArrayResponse(resp *http.Response) (res *Error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15285,8 +15285,8 @@ func decodeTestRequestStringBinaryArrayArrayResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15326,8 +15326,8 @@ func decodeTestRequestStringBinaryNullableResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15367,8 +15367,8 @@ func decodeTestRequestStringBinaryNullableArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15408,8 +15408,8 @@ func decodeTestRequestStringBinaryNullableArrayArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15449,8 +15449,8 @@ func decodeTestRequestStringByteResponse(resp *http.Response) (res *Error, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15490,8 +15490,8 @@ func decodeTestRequestStringByteArrayResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15531,8 +15531,8 @@ func decodeTestRequestStringByteArrayArrayResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15572,8 +15572,8 @@ func decodeTestRequestStringByteNullableResponse(resp *http.Response) (res *Erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15613,8 +15613,8 @@ func decodeTestRequestStringByteNullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15654,8 +15654,8 @@ func decodeTestRequestStringByteNullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15695,8 +15695,8 @@ func decodeTestRequestStringDateResponse(resp *http.Response) (res *Error, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15736,8 +15736,8 @@ func decodeTestRequestStringDateArrayResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15777,8 +15777,8 @@ func decodeTestRequestStringDateArrayArrayResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15818,8 +15818,8 @@ func decodeTestRequestStringDateNullableResponse(resp *http.Response) (res *Erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15859,8 +15859,8 @@ func decodeTestRequestStringDateNullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15900,8 +15900,8 @@ func decodeTestRequestStringDateNullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15941,8 +15941,8 @@ func decodeTestRequestStringDateTimeResponse(resp *http.Response) (res *Error, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -15982,8 +15982,8 @@ func decodeTestRequestStringDateTimeArrayResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16023,8 +16023,8 @@ func decodeTestRequestStringDateTimeArrayArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16064,8 +16064,8 @@ func decodeTestRequestStringDateTimeNullableResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16105,8 +16105,8 @@ func decodeTestRequestStringDateTimeNullableArrayResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16146,8 +16146,8 @@ func decodeTestRequestStringDateTimeNullableArrayArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16187,8 +16187,8 @@ func decodeTestRequestStringDurationResponse(resp *http.Response) (res *Error, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16228,8 +16228,8 @@ func decodeTestRequestStringDurationArrayResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16269,8 +16269,8 @@ func decodeTestRequestStringDurationArrayArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16310,8 +16310,8 @@ func decodeTestRequestStringDurationNullableResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16351,8 +16351,8 @@ func decodeTestRequestStringDurationNullableArrayResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16392,8 +16392,8 @@ func decodeTestRequestStringDurationNullableArrayArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16433,8 +16433,8 @@ func decodeTestRequestStringEmailResponse(resp *http.Response) (res *Error, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16474,8 +16474,8 @@ func decodeTestRequestStringEmailArrayResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16515,8 +16515,8 @@ func decodeTestRequestStringEmailArrayArrayResponse(resp *http.Response) (res *E if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16556,8 +16556,8 @@ func decodeTestRequestStringEmailNullableResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16597,8 +16597,8 @@ func decodeTestRequestStringEmailNullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16638,8 +16638,8 @@ func decodeTestRequestStringEmailNullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16679,8 +16679,8 @@ func decodeTestRequestStringHostnameResponse(resp *http.Response) (res *Error, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16720,8 +16720,8 @@ func decodeTestRequestStringHostnameArrayResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16761,8 +16761,8 @@ func decodeTestRequestStringHostnameArrayArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16802,8 +16802,8 @@ func decodeTestRequestStringHostnameNullableResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16843,8 +16843,8 @@ func decodeTestRequestStringHostnameNullableArrayResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16884,8 +16884,8 @@ func decodeTestRequestStringHostnameNullableArrayArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16925,8 +16925,8 @@ func decodeTestRequestStringIPResponse(resp *http.Response) (res *Error, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -16966,8 +16966,8 @@ func decodeTestRequestStringIPArrayResponse(resp *http.Response) (res *Error, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17007,8 +17007,8 @@ func decodeTestRequestStringIPArrayArrayResponse(resp *http.Response) (res *Erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17048,8 +17048,8 @@ func decodeTestRequestStringIPNullableResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17089,8 +17089,8 @@ func decodeTestRequestStringIPNullableArrayResponse(resp *http.Response) (res *E if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17130,8 +17130,8 @@ func decodeTestRequestStringIPNullableArrayArrayResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17171,8 +17171,8 @@ func decodeTestRequestStringInt32Response(resp *http.Response) (res *Error, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17212,8 +17212,8 @@ func decodeTestRequestStringInt32ArrayResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17253,8 +17253,8 @@ func decodeTestRequestStringInt32ArrayArrayResponse(resp *http.Response) (res *E if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17294,8 +17294,8 @@ func decodeTestRequestStringInt32NullableResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17335,8 +17335,8 @@ func decodeTestRequestStringInt32NullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17376,8 +17376,8 @@ func decodeTestRequestStringInt32NullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17417,8 +17417,8 @@ func decodeTestRequestStringInt64Response(resp *http.Response) (res *Error, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17458,8 +17458,8 @@ func decodeTestRequestStringInt64ArrayResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17499,8 +17499,8 @@ func decodeTestRequestStringInt64ArrayArrayResponse(resp *http.Response) (res *E if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17540,8 +17540,8 @@ func decodeTestRequestStringInt64NullableResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17581,8 +17581,8 @@ func decodeTestRequestStringInt64NullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17622,8 +17622,8 @@ func decodeTestRequestStringInt64NullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17663,8 +17663,8 @@ func decodeTestRequestStringIpv4Response(resp *http.Response) (res *Error, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17704,8 +17704,8 @@ func decodeTestRequestStringIpv4ArrayResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17745,8 +17745,8 @@ func decodeTestRequestStringIpv4ArrayArrayResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17786,8 +17786,8 @@ func decodeTestRequestStringIpv4NullableResponse(resp *http.Response) (res *Erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17827,8 +17827,8 @@ func decodeTestRequestStringIpv4NullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17868,8 +17868,8 @@ func decodeTestRequestStringIpv4NullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17909,8 +17909,8 @@ func decodeTestRequestStringIpv6Response(resp *http.Response) (res *Error, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17950,8 +17950,8 @@ func decodeTestRequestStringIpv6ArrayResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -17991,8 +17991,8 @@ func decodeTestRequestStringIpv6ArrayArrayResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18032,8 +18032,8 @@ func decodeTestRequestStringIpv6NullableResponse(resp *http.Response) (res *Erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18073,8 +18073,8 @@ func decodeTestRequestStringIpv6NullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18114,8 +18114,8 @@ func decodeTestRequestStringIpv6NullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18155,8 +18155,8 @@ func decodeTestRequestStringNullableResponse(resp *http.Response) (res *Error, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18196,8 +18196,8 @@ func decodeTestRequestStringNullableArrayResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18237,8 +18237,8 @@ func decodeTestRequestStringNullableArrayArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18278,8 +18278,8 @@ func decodeTestRequestStringPasswordResponse(resp *http.Response) (res *Error, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18319,8 +18319,8 @@ func decodeTestRequestStringPasswordArrayResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18360,8 +18360,8 @@ func decodeTestRequestStringPasswordArrayArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18401,8 +18401,8 @@ func decodeTestRequestStringPasswordNullableResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18442,8 +18442,8 @@ func decodeTestRequestStringPasswordNullableArrayResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18483,8 +18483,8 @@ func decodeTestRequestStringPasswordNullableArrayArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18524,8 +18524,8 @@ func decodeTestRequestStringTimeResponse(resp *http.Response) (res *Error, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18565,8 +18565,8 @@ func decodeTestRequestStringTimeArrayResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18606,8 +18606,8 @@ func decodeTestRequestStringTimeArrayArrayResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18647,8 +18647,8 @@ func decodeTestRequestStringTimeNullableResponse(resp *http.Response) (res *Erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18688,8 +18688,8 @@ func decodeTestRequestStringTimeNullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18729,8 +18729,8 @@ func decodeTestRequestStringTimeNullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18770,8 +18770,8 @@ func decodeTestRequestStringURIResponse(resp *http.Response) (res *Error, err er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18811,8 +18811,8 @@ func decodeTestRequestStringURIArrayResponse(resp *http.Response) (res *Error, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18852,8 +18852,8 @@ func decodeTestRequestStringURIArrayArrayResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18893,8 +18893,8 @@ func decodeTestRequestStringURINullableResponse(resp *http.Response) (res *Error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18934,8 +18934,8 @@ func decodeTestRequestStringURINullableArrayResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -18975,8 +18975,8 @@ func decodeTestRequestStringURINullableArrayArrayResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19016,8 +19016,8 @@ func decodeTestRequestStringUUIDResponse(resp *http.Response) (res *Error, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19057,8 +19057,8 @@ func decodeTestRequestStringUUIDArrayResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19098,8 +19098,8 @@ func decodeTestRequestStringUUIDArrayArrayResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19139,8 +19139,8 @@ func decodeTestRequestStringUUIDNullableResponse(resp *http.Response) (res *Erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19180,8 +19180,8 @@ func decodeTestRequestStringUUIDNullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19221,8 +19221,8 @@ func decodeTestRequestStringUUIDNullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19262,8 +19262,8 @@ func decodeTestRequestStringUnixResponse(resp *http.Response) (res *Error, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19303,8 +19303,8 @@ func decodeTestRequestStringUnixArrayResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19344,8 +19344,8 @@ func decodeTestRequestStringUnixArrayArrayResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19385,8 +19385,8 @@ func decodeTestRequestStringUnixMicroResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19426,8 +19426,8 @@ func decodeTestRequestStringUnixMicroArrayResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19467,8 +19467,8 @@ func decodeTestRequestStringUnixMicroArrayArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19508,8 +19508,8 @@ func decodeTestRequestStringUnixMicroNullableResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19549,8 +19549,8 @@ func decodeTestRequestStringUnixMicroNullableArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19590,8 +19590,8 @@ func decodeTestRequestStringUnixMicroNullableArrayArrayResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19631,8 +19631,8 @@ func decodeTestRequestStringUnixMilliResponse(resp *http.Response) (res *Error, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19672,8 +19672,8 @@ func decodeTestRequestStringUnixMilliArrayResponse(resp *http.Response) (res *Er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19713,8 +19713,8 @@ func decodeTestRequestStringUnixMilliArrayArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19754,8 +19754,8 @@ func decodeTestRequestStringUnixMilliNullableResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19795,8 +19795,8 @@ func decodeTestRequestStringUnixMilliNullableArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19836,8 +19836,8 @@ func decodeTestRequestStringUnixMilliNullableArrayArrayResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19877,8 +19877,8 @@ func decodeTestRequestStringUnixNanoResponse(resp *http.Response) (res *Error, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19918,8 +19918,8 @@ func decodeTestRequestStringUnixNanoArrayResponse(resp *http.Response) (res *Err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -19959,8 +19959,8 @@ func decodeTestRequestStringUnixNanoArrayArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -20000,8 +20000,8 @@ func decodeTestRequestStringUnixNanoNullableResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -20041,8 +20041,8 @@ func decodeTestRequestStringUnixNanoNullableArrayResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -20082,8 +20082,8 @@ func decodeTestRequestStringUnixNanoNullableArrayArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -20123,8 +20123,8 @@ func decodeTestRequestStringUnixNullableResponse(resp *http.Response) (res *Erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -20164,8 +20164,8 @@ func decodeTestRequestStringUnixNullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -20205,8 +20205,8 @@ func decodeTestRequestStringUnixNullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -20246,8 +20246,8 @@ func decodeTestRequestStringUnixSecondsResponse(resp *http.Response) (res *Error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -20287,8 +20287,8 @@ func decodeTestRequestStringUnixSecondsArrayResponse(resp *http.Response) (res * if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -20328,8 +20328,8 @@ func decodeTestRequestStringUnixSecondsArrayArrayResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -20369,8 +20369,8 @@ func decodeTestRequestStringUnixSecondsNullableResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -20410,8 +20410,8 @@ func decodeTestRequestStringUnixSecondsNullableArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -20451,8 +20451,8 @@ func decodeTestRequestStringUnixSecondsNullableArrayArrayResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -20492,8 +20492,8 @@ func decodeTestResponseAnyResponse(resp *http.Response) (res jx.Raw, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response jx.Raw if err := func() error { v, err := d.RawAppend(nil) @@ -20535,8 +20535,8 @@ func decodeTestResponseBooleanResponse(resp *http.Response) (res bool, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response bool if err := func() error { v, err := d.Bool() @@ -20578,8 +20578,8 @@ func decodeTestResponseBooleanArrayResponse(resp *http.Response) (res []bool, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []bool if err := func() error { response = make([]bool, 0) @@ -20629,8 +20629,8 @@ func decodeTestResponseBooleanArrayArrayResponse(resp *http.Response) (res [][]b if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]bool if err := func() error { response = make([][]bool, 0) @@ -20688,8 +20688,8 @@ func decodeTestResponseBooleanNullableResponse(resp *http.Response) (res NilBool if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilBool if err := func() error { if err := response.Decode(d); err != nil { @@ -20729,8 +20729,8 @@ func decodeTestResponseBooleanNullableArrayResponse(resp *http.Response) (res [] if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilBool if err := func() error { response = make([]NilBool, 0) @@ -20778,8 +20778,8 @@ func decodeTestResponseBooleanNullableArrayArrayResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilBool if err := func() error { response = make([][]NilBool, 0) @@ -20835,8 +20835,8 @@ func decodeTestResponseEmptyStructResponse(resp *http.Response) (res *TestRespon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TestResponseEmptyStructOK if err := func() error { if err := response.Decode(d); err != nil { @@ -20876,8 +20876,8 @@ func decodeTestResponseFormatTestResponse(resp *http.Response) (res *TestRespons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TestResponseFormatTestOK if err := func() error { if err := response.Decode(d); err != nil { @@ -20917,8 +20917,8 @@ func decodeTestResponseIntegerResponse(resp *http.Response) (res int, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response int if err := func() error { v, err := d.Int() @@ -20960,8 +20960,8 @@ func decodeTestResponseIntegerArrayResponse(resp *http.Response) (res []int, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []int if err := func() error { response = make([]int, 0) @@ -21011,8 +21011,8 @@ func decodeTestResponseIntegerArrayArrayResponse(resp *http.Response) (res [][]i if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]int if err := func() error { response = make([][]int, 0) @@ -21070,8 +21070,8 @@ func decodeTestResponseIntegerInt32Response(resp *http.Response) (res int32, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response int32 if err := func() error { v, err := d.Int32() @@ -21113,8 +21113,8 @@ func decodeTestResponseIntegerInt32ArrayResponse(resp *http.Response) (res []int if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []int32 if err := func() error { response = make([]int32, 0) @@ -21164,8 +21164,8 @@ func decodeTestResponseIntegerInt32ArrayArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]int32 if err := func() error { response = make([][]int32, 0) @@ -21223,8 +21223,8 @@ func decodeTestResponseIntegerInt32NullableResponse(resp *http.Response) (res Ni if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilInt32 if err := func() error { if err := response.Decode(d); err != nil { @@ -21264,8 +21264,8 @@ func decodeTestResponseIntegerInt32NullableArrayResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilInt32 if err := func() error { response = make([]NilInt32, 0) @@ -21313,8 +21313,8 @@ func decodeTestResponseIntegerInt32NullableArrayArrayResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilInt32 if err := func() error { response = make([][]NilInt32, 0) @@ -21370,8 +21370,8 @@ func decodeTestResponseIntegerInt64Response(resp *http.Response) (res int64, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response int64 if err := func() error { v, err := d.Int64() @@ -21413,8 +21413,8 @@ func decodeTestResponseIntegerInt64ArrayResponse(resp *http.Response) (res []int if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []int64 if err := func() error { response = make([]int64, 0) @@ -21464,8 +21464,8 @@ func decodeTestResponseIntegerInt64ArrayArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]int64 if err := func() error { response = make([][]int64, 0) @@ -21523,8 +21523,8 @@ func decodeTestResponseIntegerInt64NullableResponse(resp *http.Response) (res Ni if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilInt64 if err := func() error { if err := response.Decode(d); err != nil { @@ -21564,8 +21564,8 @@ func decodeTestResponseIntegerInt64NullableArrayResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilInt64 if err := func() error { response = make([]NilInt64, 0) @@ -21613,8 +21613,8 @@ func decodeTestResponseIntegerInt64NullableArrayArrayResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilInt64 if err := func() error { response = make([][]NilInt64, 0) @@ -21670,8 +21670,8 @@ func decodeTestResponseIntegerNullableResponse(resp *http.Response) (res NilInt, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilInt if err := func() error { if err := response.Decode(d); err != nil { @@ -21711,8 +21711,8 @@ func decodeTestResponseIntegerNullableArrayResponse(resp *http.Response) (res [] if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilInt if err := func() error { response = make([]NilInt, 0) @@ -21760,8 +21760,8 @@ func decodeTestResponseIntegerNullableArrayArrayResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilInt if err := func() error { response = make([][]NilInt, 0) @@ -21817,8 +21817,8 @@ func decodeTestResponseIntegerUintResponse(resp *http.Response) (res uint, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response uint if err := func() error { v, err := d.UInt() @@ -21860,8 +21860,8 @@ func decodeTestResponseIntegerUint32Response(resp *http.Response) (res uint32, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response uint32 if err := func() error { v, err := d.UInt32() @@ -21903,8 +21903,8 @@ func decodeTestResponseIntegerUint32ArrayResponse(resp *http.Response) (res []ui if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []uint32 if err := func() error { response = make([]uint32, 0) @@ -21954,8 +21954,8 @@ func decodeTestResponseIntegerUint32ArrayArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]uint32 if err := func() error { response = make([][]uint32, 0) @@ -22013,8 +22013,8 @@ func decodeTestResponseIntegerUint32NullableResponse(resp *http.Response) (res N if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilUint32 if err := func() error { if err := response.Decode(d); err != nil { @@ -22054,8 +22054,8 @@ func decodeTestResponseIntegerUint32NullableArrayResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilUint32 if err := func() error { response = make([]NilUint32, 0) @@ -22103,8 +22103,8 @@ func decodeTestResponseIntegerUint32NullableArrayArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilUint32 if err := func() error { response = make([][]NilUint32, 0) @@ -22160,8 +22160,8 @@ func decodeTestResponseIntegerUint64Response(resp *http.Response) (res uint64, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response uint64 if err := func() error { v, err := d.UInt64() @@ -22203,8 +22203,8 @@ func decodeTestResponseIntegerUint64ArrayResponse(resp *http.Response) (res []ui if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []uint64 if err := func() error { response = make([]uint64, 0) @@ -22254,8 +22254,8 @@ func decodeTestResponseIntegerUint64ArrayArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]uint64 if err := func() error { response = make([][]uint64, 0) @@ -22313,8 +22313,8 @@ func decodeTestResponseIntegerUint64NullableResponse(resp *http.Response) (res N if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilUint64 if err := func() error { if err := response.Decode(d); err != nil { @@ -22354,8 +22354,8 @@ func decodeTestResponseIntegerUint64NullableArrayResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilUint64 if err := func() error { response = make([]NilUint64, 0) @@ -22403,8 +22403,8 @@ func decodeTestResponseIntegerUint64NullableArrayArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilUint64 if err := func() error { response = make([][]NilUint64, 0) @@ -22460,8 +22460,8 @@ func decodeTestResponseIntegerUintArrayResponse(resp *http.Response) (res []uint if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []uint if err := func() error { response = make([]uint, 0) @@ -22511,8 +22511,8 @@ func decodeTestResponseIntegerUintArrayArrayResponse(resp *http.Response) (res [ if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]uint if err := func() error { response = make([][]uint, 0) @@ -22570,8 +22570,8 @@ func decodeTestResponseIntegerUintNullableResponse(resp *http.Response) (res Nil if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilUint if err := func() error { if err := response.Decode(d); err != nil { @@ -22611,8 +22611,8 @@ func decodeTestResponseIntegerUintNullableArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilUint if err := func() error { response = make([]NilUint, 0) @@ -22660,8 +22660,8 @@ func decodeTestResponseIntegerUintNullableArrayArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilUint if err := func() error { response = make([][]NilUint, 0) @@ -22717,8 +22717,8 @@ func decodeTestResponseIntegerUnixResponse(resp *http.Response) (res time.Time, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response time.Time if err := func() error { v, err := json.DecodeUnixSeconds(d) @@ -22760,8 +22760,8 @@ func decodeTestResponseIntegerUnixArrayResponse(resp *http.Response) (res []time if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []time.Time if err := func() error { response = make([]time.Time, 0) @@ -22811,8 +22811,8 @@ func decodeTestResponseIntegerUnixArrayArrayResponse(resp *http.Response) (res [ if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]time.Time if err := func() error { response = make([][]time.Time, 0) @@ -22870,8 +22870,8 @@ func decodeTestResponseIntegerUnixMicroResponse(resp *http.Response) (res time.T if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response time.Time if err := func() error { v, err := json.DecodeUnixMicro(d) @@ -22913,8 +22913,8 @@ func decodeTestResponseIntegerUnixMicroArrayResponse(resp *http.Response) (res [ if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []time.Time if err := func() error { response = make([]time.Time, 0) @@ -22964,8 +22964,8 @@ func decodeTestResponseIntegerUnixMicroArrayArrayResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]time.Time if err := func() error { response = make([][]time.Time, 0) @@ -23023,8 +23023,8 @@ func decodeTestResponseIntegerUnixMicroNullableResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilUnixMicro if err := func() error { if err := response.Decode(d, json.DecodeUnixMicro); err != nil { @@ -23064,8 +23064,8 @@ func decodeTestResponseIntegerUnixMicroNullableArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilUnixMicro if err := func() error { response = make([]NilUnixMicro, 0) @@ -23113,8 +23113,8 @@ func decodeTestResponseIntegerUnixMicroNullableArrayArrayResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilUnixMicro if err := func() error { response = make([][]NilUnixMicro, 0) @@ -23170,8 +23170,8 @@ func decodeTestResponseIntegerUnixMilliResponse(resp *http.Response) (res time.T if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response time.Time if err := func() error { v, err := json.DecodeUnixMilli(d) @@ -23213,8 +23213,8 @@ func decodeTestResponseIntegerUnixMilliArrayResponse(resp *http.Response) (res [ if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []time.Time if err := func() error { response = make([]time.Time, 0) @@ -23264,8 +23264,8 @@ func decodeTestResponseIntegerUnixMilliArrayArrayResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]time.Time if err := func() error { response = make([][]time.Time, 0) @@ -23323,8 +23323,8 @@ func decodeTestResponseIntegerUnixMilliNullableResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilUnixMilli if err := func() error { if err := response.Decode(d, json.DecodeUnixMilli); err != nil { @@ -23364,8 +23364,8 @@ func decodeTestResponseIntegerUnixMilliNullableArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilUnixMilli if err := func() error { response = make([]NilUnixMilli, 0) @@ -23413,8 +23413,8 @@ func decodeTestResponseIntegerUnixMilliNullableArrayArrayResponse(resp *http.Res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilUnixMilli if err := func() error { response = make([][]NilUnixMilli, 0) @@ -23470,8 +23470,8 @@ func decodeTestResponseIntegerUnixNanoResponse(resp *http.Response) (res time.Ti if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response time.Time if err := func() error { v, err := json.DecodeUnixNano(d) @@ -23513,8 +23513,8 @@ func decodeTestResponseIntegerUnixNanoArrayResponse(resp *http.Response) (res [] if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []time.Time if err := func() error { response = make([]time.Time, 0) @@ -23564,8 +23564,8 @@ func decodeTestResponseIntegerUnixNanoArrayArrayResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]time.Time if err := func() error { response = make([][]time.Time, 0) @@ -23623,8 +23623,8 @@ func decodeTestResponseIntegerUnixNanoNullableResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilUnixNano if err := func() error { if err := response.Decode(d, json.DecodeUnixNano); err != nil { @@ -23664,8 +23664,8 @@ func decodeTestResponseIntegerUnixNanoNullableArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilUnixNano if err := func() error { response = make([]NilUnixNano, 0) @@ -23713,8 +23713,8 @@ func decodeTestResponseIntegerUnixNanoNullableArrayArrayResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilUnixNano if err := func() error { response = make([][]NilUnixNano, 0) @@ -23770,8 +23770,8 @@ func decodeTestResponseIntegerUnixNullableResponse(resp *http.Response) (res Nil if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilUnixSeconds if err := func() error { if err := response.Decode(d, json.DecodeUnixSeconds); err != nil { @@ -23811,8 +23811,8 @@ func decodeTestResponseIntegerUnixNullableArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilUnixSeconds if err := func() error { response = make([]NilUnixSeconds, 0) @@ -23860,8 +23860,8 @@ func decodeTestResponseIntegerUnixNullableArrayArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilUnixSeconds if err := func() error { response = make([][]NilUnixSeconds, 0) @@ -23917,8 +23917,8 @@ func decodeTestResponseIntegerUnixSecondsResponse(resp *http.Response) (res time if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response time.Time if err := func() error { v, err := json.DecodeUnixSeconds(d) @@ -23960,8 +23960,8 @@ func decodeTestResponseIntegerUnixSecondsArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []time.Time if err := func() error { response = make([]time.Time, 0) @@ -24011,8 +24011,8 @@ func decodeTestResponseIntegerUnixSecondsArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]time.Time if err := func() error { response = make([][]time.Time, 0) @@ -24070,8 +24070,8 @@ func decodeTestResponseIntegerUnixSecondsNullableResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilUnixSeconds if err := func() error { if err := response.Decode(d, json.DecodeUnixSeconds); err != nil { @@ -24111,8 +24111,8 @@ func decodeTestResponseIntegerUnixSecondsNullableArrayResponse(resp *http.Respon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilUnixSeconds if err := func() error { response = make([]NilUnixSeconds, 0) @@ -24160,8 +24160,8 @@ func decodeTestResponseIntegerUnixSecondsNullableArrayArrayResponse(resp *http.R if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilUnixSeconds if err := func() error { response = make([][]NilUnixSeconds, 0) @@ -24217,8 +24217,8 @@ func decodeTestResponseNullResponse(resp *http.Response) (res struct{}, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response struct{} if err := func() error { if err := d.Null(); err != nil { @@ -24258,8 +24258,8 @@ func decodeTestResponseNullArrayResponse(resp *http.Response) (res []struct{}, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []struct{} if err := func() error { response = make([]struct{}, 0) @@ -24307,8 +24307,8 @@ func decodeTestResponseNullArrayArrayResponse(resp *http.Response) (res [][]stru if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]struct{} if err := func() error { response = make([][]struct{}, 0) @@ -24364,8 +24364,8 @@ func decodeTestResponseNullNullableResponse(resp *http.Response) (res struct{}, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response struct{} if err := func() error { if err := d.Null(); err != nil { @@ -24405,8 +24405,8 @@ func decodeTestResponseNullNullableArrayResponse(resp *http.Response) (res []str if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []struct{} if err := func() error { response = make([]struct{}, 0) @@ -24454,8 +24454,8 @@ func decodeTestResponseNullNullableArrayArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]struct{} if err := func() error { response = make([][]struct{}, 0) @@ -24511,8 +24511,8 @@ func decodeTestResponseNumberResponse(resp *http.Response) (res float64, err err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response float64 if err := func() error { v, err := d.Float64() @@ -24554,8 +24554,8 @@ func decodeTestResponseNumberArrayResponse(resp *http.Response) (res []float64, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []float64 if err := func() error { response = make([]float64, 0) @@ -24605,8 +24605,8 @@ func decodeTestResponseNumberArrayArrayResponse(resp *http.Response) (res [][]fl if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]float64 if err := func() error { response = make([][]float64, 0) @@ -24664,8 +24664,8 @@ func decodeTestResponseNumberDoubleResponse(resp *http.Response) (res float64, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response float64 if err := func() error { v, err := d.Float64() @@ -24707,8 +24707,8 @@ func decodeTestResponseNumberDoubleArrayResponse(resp *http.Response) (res []flo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []float64 if err := func() error { response = make([]float64, 0) @@ -24758,8 +24758,8 @@ func decodeTestResponseNumberDoubleArrayArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]float64 if err := func() error { response = make([][]float64, 0) @@ -24817,8 +24817,8 @@ func decodeTestResponseNumberDoubleNullableResponse(resp *http.Response) (res Ni if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilFloat64 if err := func() error { if err := response.Decode(d); err != nil { @@ -24858,8 +24858,8 @@ func decodeTestResponseNumberDoubleNullableArrayResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilFloat64 if err := func() error { response = make([]NilFloat64, 0) @@ -24907,8 +24907,8 @@ func decodeTestResponseNumberDoubleNullableArrayArrayResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilFloat64 if err := func() error { response = make([][]NilFloat64, 0) @@ -24964,8 +24964,8 @@ func decodeTestResponseNumberFloatResponse(resp *http.Response) (res float32, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response float32 if err := func() error { v, err := d.Float32() @@ -25007,8 +25007,8 @@ func decodeTestResponseNumberFloatArrayResponse(resp *http.Response) (res []floa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []float32 if err := func() error { response = make([]float32, 0) @@ -25058,8 +25058,8 @@ func decodeTestResponseNumberFloatArrayArrayResponse(resp *http.Response) (res [ if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]float32 if err := func() error { response = make([][]float32, 0) @@ -25117,8 +25117,8 @@ func decodeTestResponseNumberFloatNullableResponse(resp *http.Response) (res Nil if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilFloat32 if err := func() error { if err := response.Decode(d); err != nil { @@ -25158,8 +25158,8 @@ func decodeTestResponseNumberFloatNullableArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilFloat32 if err := func() error { response = make([]NilFloat32, 0) @@ -25207,8 +25207,8 @@ func decodeTestResponseNumberFloatNullableArrayArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilFloat32 if err := func() error { response = make([][]NilFloat32, 0) @@ -25264,8 +25264,8 @@ func decodeTestResponseNumberInt32Response(resp *http.Response) (res int32, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response int32 if err := func() error { v, err := d.Int32() @@ -25307,8 +25307,8 @@ func decodeTestResponseNumberInt32ArrayResponse(resp *http.Response) (res []int3 if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []int32 if err := func() error { response = make([]int32, 0) @@ -25358,8 +25358,8 @@ func decodeTestResponseNumberInt32ArrayArrayResponse(resp *http.Response) (res [ if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]int32 if err := func() error { response = make([][]int32, 0) @@ -25417,8 +25417,8 @@ func decodeTestResponseNumberInt32NullableResponse(resp *http.Response) (res Nil if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilInt32 if err := func() error { if err := response.Decode(d); err != nil { @@ -25458,8 +25458,8 @@ func decodeTestResponseNumberInt32NullableArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilInt32 if err := func() error { response = make([]NilInt32, 0) @@ -25507,8 +25507,8 @@ func decodeTestResponseNumberInt32NullableArrayArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilInt32 if err := func() error { response = make([][]NilInt32, 0) @@ -25564,8 +25564,8 @@ func decodeTestResponseNumberInt64Response(resp *http.Response) (res int64, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response int64 if err := func() error { v, err := d.Int64() @@ -25607,8 +25607,8 @@ func decodeTestResponseNumberInt64ArrayResponse(resp *http.Response) (res []int6 if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []int64 if err := func() error { response = make([]int64, 0) @@ -25658,8 +25658,8 @@ func decodeTestResponseNumberInt64ArrayArrayResponse(resp *http.Response) (res [ if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]int64 if err := func() error { response = make([][]int64, 0) @@ -25717,8 +25717,8 @@ func decodeTestResponseNumberInt64NullableResponse(resp *http.Response) (res Nil if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilInt64 if err := func() error { if err := response.Decode(d); err != nil { @@ -25758,8 +25758,8 @@ func decodeTestResponseNumberInt64NullableArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilInt64 if err := func() error { response = make([]NilInt64, 0) @@ -25807,8 +25807,8 @@ func decodeTestResponseNumberInt64NullableArrayArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilInt64 if err := func() error { response = make([][]NilInt64, 0) @@ -25864,8 +25864,8 @@ func decodeTestResponseNumberNullableResponse(resp *http.Response) (res NilFloat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilFloat64 if err := func() error { if err := response.Decode(d); err != nil { @@ -25905,8 +25905,8 @@ func decodeTestResponseNumberNullableArrayResponse(resp *http.Response) (res []N if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilFloat64 if err := func() error { response = make([]NilFloat64, 0) @@ -25954,8 +25954,8 @@ func decodeTestResponseNumberNullableArrayArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilFloat64 if err := func() error { response = make([][]NilFloat64, 0) @@ -26011,8 +26011,8 @@ func decodeTestResponseStringResponse(resp *http.Response) (res string, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response string if err := func() error { v, err := d.Str() @@ -26054,8 +26054,8 @@ func decodeTestResponseStringArrayResponse(resp *http.Response) (res []string, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []string if err := func() error { response = make([]string, 0) @@ -26105,8 +26105,8 @@ func decodeTestResponseStringArrayArrayResponse(resp *http.Response) (res [][]st if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]string if err := func() error { response = make([][]string, 0) @@ -26164,8 +26164,8 @@ func decodeTestResponseStringBase64Response(resp *http.Response) (res []byte, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []byte if err := func() error { v, err := d.Base64() @@ -26207,8 +26207,8 @@ func decodeTestResponseStringBase64ArrayResponse(resp *http.Response) (res [][]b if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]byte if err := func() error { response = make([][]byte, 0) @@ -26258,8 +26258,8 @@ func decodeTestResponseStringBase64ArrayArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][][]byte if err := func() error { response = make([][][]byte, 0) @@ -26317,8 +26317,8 @@ func decodeTestResponseStringBase64NullableResponse(resp *http.Response) (res [] if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []byte if err := func() error { v, err := d.Base64() @@ -26360,8 +26360,8 @@ func decodeTestResponseStringBase64NullableArrayResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]byte if err := func() error { response = make([][]byte, 0) @@ -26411,8 +26411,8 @@ func decodeTestResponseStringBase64NullableArrayArrayResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][][]byte if err := func() error { response = make([][][]byte, 0) @@ -26470,8 +26470,8 @@ func decodeTestResponseStringBinaryResponse(resp *http.Response) (res string, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response string if err := func() error { v, err := d.Str() @@ -26513,8 +26513,8 @@ func decodeTestResponseStringBinaryArrayResponse(resp *http.Response) (res []str if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []string if err := func() error { response = make([]string, 0) @@ -26564,8 +26564,8 @@ func decodeTestResponseStringBinaryArrayArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]string if err := func() error { response = make([][]string, 0) @@ -26623,8 +26623,8 @@ func decodeTestResponseStringBinaryNullableResponse(resp *http.Response) (res Ni if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilString if err := func() error { if err := response.Decode(d); err != nil { @@ -26664,8 +26664,8 @@ func decodeTestResponseStringBinaryNullableArrayResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilString if err := func() error { response = make([]NilString, 0) @@ -26713,8 +26713,8 @@ func decodeTestResponseStringBinaryNullableArrayArrayResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilString if err := func() error { response = make([][]NilString, 0) @@ -26770,8 +26770,8 @@ func decodeTestResponseStringByteResponse(resp *http.Response) (res []byte, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []byte if err := func() error { v, err := d.Base64() @@ -26813,8 +26813,8 @@ func decodeTestResponseStringByteArrayResponse(resp *http.Response) (res [][]byt if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]byte if err := func() error { response = make([][]byte, 0) @@ -26864,8 +26864,8 @@ func decodeTestResponseStringByteArrayArrayResponse(resp *http.Response) (res [] if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][][]byte if err := func() error { response = make([][][]byte, 0) @@ -26923,8 +26923,8 @@ func decodeTestResponseStringByteNullableResponse(resp *http.Response) (res []by if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []byte if err := func() error { v, err := d.Base64() @@ -26966,8 +26966,8 @@ func decodeTestResponseStringByteNullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]byte if err := func() error { response = make([][]byte, 0) @@ -27017,8 +27017,8 @@ func decodeTestResponseStringByteNullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][][]byte if err := func() error { response = make([][][]byte, 0) @@ -27076,8 +27076,8 @@ func decodeTestResponseStringDateResponse(resp *http.Response) (res time.Time, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response time.Time if err := func() error { v, err := json.DecodeDate(d) @@ -27119,8 +27119,8 @@ func decodeTestResponseStringDateArrayResponse(resp *http.Response) (res []time. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []time.Time if err := func() error { response = make([]time.Time, 0) @@ -27170,8 +27170,8 @@ func decodeTestResponseStringDateArrayArrayResponse(resp *http.Response) (res [] if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]time.Time if err := func() error { response = make([][]time.Time, 0) @@ -27229,8 +27229,8 @@ func decodeTestResponseStringDateNullableResponse(resp *http.Response) (res NilD if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilDate if err := func() error { if err := response.Decode(d, json.DecodeDate); err != nil { @@ -27270,8 +27270,8 @@ func decodeTestResponseStringDateNullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilDate if err := func() error { response = make([]NilDate, 0) @@ -27319,8 +27319,8 @@ func decodeTestResponseStringDateNullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilDate if err := func() error { response = make([][]NilDate, 0) @@ -27376,8 +27376,8 @@ func decodeTestResponseStringDateTimeResponse(resp *http.Response) (res time.Tim if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response time.Time if err := func() error { v, err := json.DecodeDateTime(d) @@ -27419,8 +27419,8 @@ func decodeTestResponseStringDateTimeArrayResponse(resp *http.Response) (res []t if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []time.Time if err := func() error { response = make([]time.Time, 0) @@ -27470,8 +27470,8 @@ func decodeTestResponseStringDateTimeArrayArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]time.Time if err := func() error { response = make([][]time.Time, 0) @@ -27529,8 +27529,8 @@ func decodeTestResponseStringDateTimeNullableResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilDateTime if err := func() error { if err := response.Decode(d, json.DecodeDateTime); err != nil { @@ -27570,8 +27570,8 @@ func decodeTestResponseStringDateTimeNullableArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilDateTime if err := func() error { response = make([]NilDateTime, 0) @@ -27619,8 +27619,8 @@ func decodeTestResponseStringDateTimeNullableArrayArrayResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilDateTime if err := func() error { response = make([][]NilDateTime, 0) @@ -27676,8 +27676,8 @@ func decodeTestResponseStringDurationResponse(resp *http.Response) (res time.Dur if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response time.Duration if err := func() error { v, err := json.DecodeDuration(d) @@ -27719,8 +27719,8 @@ func decodeTestResponseStringDurationArrayResponse(resp *http.Response) (res []t if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []time.Duration if err := func() error { response = make([]time.Duration, 0) @@ -27770,8 +27770,8 @@ func decodeTestResponseStringDurationArrayArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]time.Duration if err := func() error { response = make([][]time.Duration, 0) @@ -27829,8 +27829,8 @@ func decodeTestResponseStringDurationNullableResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilDuration if err := func() error { if err := response.Decode(d); err != nil { @@ -27870,8 +27870,8 @@ func decodeTestResponseStringDurationNullableArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilDuration if err := func() error { response = make([]NilDuration, 0) @@ -27919,8 +27919,8 @@ func decodeTestResponseStringDurationNullableArrayArrayResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilDuration if err := func() error { response = make([][]NilDuration, 0) @@ -27976,8 +27976,8 @@ func decodeTestResponseStringEmailResponse(resp *http.Response) (res string, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response string if err := func() error { v, err := d.Str() @@ -28019,8 +28019,8 @@ func decodeTestResponseStringEmailArrayResponse(resp *http.Response) (res []stri if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []string if err := func() error { response = make([]string, 0) @@ -28070,8 +28070,8 @@ func decodeTestResponseStringEmailArrayArrayResponse(resp *http.Response) (res [ if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]string if err := func() error { response = make([][]string, 0) @@ -28129,8 +28129,8 @@ func decodeTestResponseStringEmailNullableResponse(resp *http.Response) (res Nil if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilString if err := func() error { if err := response.Decode(d); err != nil { @@ -28170,8 +28170,8 @@ func decodeTestResponseStringEmailNullableArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilString if err := func() error { response = make([]NilString, 0) @@ -28219,8 +28219,8 @@ func decodeTestResponseStringEmailNullableArrayArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilString if err := func() error { response = make([][]NilString, 0) @@ -28276,8 +28276,8 @@ func decodeTestResponseStringHostnameResponse(resp *http.Response) (res string, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response string if err := func() error { v, err := d.Str() @@ -28319,8 +28319,8 @@ func decodeTestResponseStringHostnameArrayResponse(resp *http.Response) (res []s if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []string if err := func() error { response = make([]string, 0) @@ -28370,8 +28370,8 @@ func decodeTestResponseStringHostnameArrayArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]string if err := func() error { response = make([][]string, 0) @@ -28429,8 +28429,8 @@ func decodeTestResponseStringHostnameNullableResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilString if err := func() error { if err := response.Decode(d); err != nil { @@ -28470,8 +28470,8 @@ func decodeTestResponseStringHostnameNullableArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilString if err := func() error { response = make([]NilString, 0) @@ -28519,8 +28519,8 @@ func decodeTestResponseStringHostnameNullableArrayArrayResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilString if err := func() error { response = make([][]NilString, 0) @@ -28576,8 +28576,8 @@ func decodeTestResponseStringIPResponse(resp *http.Response) (res netip.Addr, er if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response netip.Addr if err := func() error { v, err := json.DecodeIP(d) @@ -28619,8 +28619,8 @@ func decodeTestResponseStringIPArrayResponse(resp *http.Response) (res []netip.A if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []netip.Addr if err := func() error { response = make([]netip.Addr, 0) @@ -28670,8 +28670,8 @@ func decodeTestResponseStringIPArrayArrayResponse(resp *http.Response) (res [][] if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]netip.Addr if err := func() error { response = make([][]netip.Addr, 0) @@ -28729,8 +28729,8 @@ func decodeTestResponseStringIPNullableResponse(resp *http.Response) (res NilIP, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilIP if err := func() error { if err := response.Decode(d); err != nil { @@ -28770,8 +28770,8 @@ func decodeTestResponseStringIPNullableArrayResponse(resp *http.Response) (res [ if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilIP if err := func() error { response = make([]NilIP, 0) @@ -28819,8 +28819,8 @@ func decodeTestResponseStringIPNullableArrayArrayResponse(resp *http.Response) ( if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilIP if err := func() error { response = make([][]NilIP, 0) @@ -28876,8 +28876,8 @@ func decodeTestResponseStringInt32Response(resp *http.Response) (res int32, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response int32 if err := func() error { v, err := json.DecodeStringInt32(d) @@ -28919,8 +28919,8 @@ func decodeTestResponseStringInt32ArrayResponse(resp *http.Response) (res []int3 if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []int32 if err := func() error { response = make([]int32, 0) @@ -28970,8 +28970,8 @@ func decodeTestResponseStringInt32ArrayArrayResponse(resp *http.Response) (res [ if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]int32 if err := func() error { response = make([][]int32, 0) @@ -29029,8 +29029,8 @@ func decodeTestResponseStringInt32NullableResponse(resp *http.Response) (res Nil if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilStringInt32 if err := func() error { if err := response.Decode(d); err != nil { @@ -29070,8 +29070,8 @@ func decodeTestResponseStringInt32NullableArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilStringInt32 if err := func() error { response = make([]NilStringInt32, 0) @@ -29119,8 +29119,8 @@ func decodeTestResponseStringInt32NullableArrayArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilStringInt32 if err := func() error { response = make([][]NilStringInt32, 0) @@ -29176,8 +29176,8 @@ func decodeTestResponseStringInt64Response(resp *http.Response) (res int64, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response int64 if err := func() error { v, err := json.DecodeStringInt64(d) @@ -29219,8 +29219,8 @@ func decodeTestResponseStringInt64ArrayResponse(resp *http.Response) (res []int6 if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []int64 if err := func() error { response = make([]int64, 0) @@ -29270,8 +29270,8 @@ func decodeTestResponseStringInt64ArrayArrayResponse(resp *http.Response) (res [ if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]int64 if err := func() error { response = make([][]int64, 0) @@ -29329,8 +29329,8 @@ func decodeTestResponseStringInt64NullableResponse(resp *http.Response) (res Nil if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilStringInt64 if err := func() error { if err := response.Decode(d); err != nil { @@ -29370,8 +29370,8 @@ func decodeTestResponseStringInt64NullableArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilStringInt64 if err := func() error { response = make([]NilStringInt64, 0) @@ -29419,8 +29419,8 @@ func decodeTestResponseStringInt64NullableArrayArrayResponse(resp *http.Response if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilStringInt64 if err := func() error { response = make([][]NilStringInt64, 0) @@ -29476,8 +29476,8 @@ func decodeTestResponseStringIpv4Response(resp *http.Response) (res netip.Addr, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response netip.Addr if err := func() error { v, err := json.DecodeIPv4(d) @@ -29519,8 +29519,8 @@ func decodeTestResponseStringIpv4ArrayResponse(resp *http.Response) (res []netip if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []netip.Addr if err := func() error { response = make([]netip.Addr, 0) @@ -29570,8 +29570,8 @@ func decodeTestResponseStringIpv4ArrayArrayResponse(resp *http.Response) (res [] if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]netip.Addr if err := func() error { response = make([][]netip.Addr, 0) @@ -29629,8 +29629,8 @@ func decodeTestResponseStringIpv4NullableResponse(resp *http.Response) (res NilI if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilIPv4 if err := func() error { if err := response.Decode(d); err != nil { @@ -29670,8 +29670,8 @@ func decodeTestResponseStringIpv4NullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilIPv4 if err := func() error { response = make([]NilIPv4, 0) @@ -29719,8 +29719,8 @@ func decodeTestResponseStringIpv4NullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilIPv4 if err := func() error { response = make([][]NilIPv4, 0) @@ -29776,8 +29776,8 @@ func decodeTestResponseStringIpv6Response(resp *http.Response) (res netip.Addr, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response netip.Addr if err := func() error { v, err := json.DecodeIPv6(d) @@ -29819,8 +29819,8 @@ func decodeTestResponseStringIpv6ArrayResponse(resp *http.Response) (res []netip if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []netip.Addr if err := func() error { response = make([]netip.Addr, 0) @@ -29870,8 +29870,8 @@ func decodeTestResponseStringIpv6ArrayArrayResponse(resp *http.Response) (res [] if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]netip.Addr if err := func() error { response = make([][]netip.Addr, 0) @@ -29929,8 +29929,8 @@ func decodeTestResponseStringIpv6NullableResponse(resp *http.Response) (res NilI if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilIPv6 if err := func() error { if err := response.Decode(d); err != nil { @@ -29970,8 +29970,8 @@ func decodeTestResponseStringIpv6NullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilIPv6 if err := func() error { response = make([]NilIPv6, 0) @@ -30019,8 +30019,8 @@ func decodeTestResponseStringIpv6NullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilIPv6 if err := func() error { response = make([][]NilIPv6, 0) @@ -30076,8 +30076,8 @@ func decodeTestResponseStringNullableResponse(resp *http.Response) (res NilStrin if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilString if err := func() error { if err := response.Decode(d); err != nil { @@ -30117,8 +30117,8 @@ func decodeTestResponseStringNullableArrayResponse(resp *http.Response) (res []N if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilString if err := func() error { response = make([]NilString, 0) @@ -30166,8 +30166,8 @@ func decodeTestResponseStringNullableArrayArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilString if err := func() error { response = make([][]NilString, 0) @@ -30223,8 +30223,8 @@ func decodeTestResponseStringPasswordResponse(resp *http.Response) (res string, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response string if err := func() error { v, err := d.Str() @@ -30266,8 +30266,8 @@ func decodeTestResponseStringPasswordArrayResponse(resp *http.Response) (res []s if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []string if err := func() error { response = make([]string, 0) @@ -30317,8 +30317,8 @@ func decodeTestResponseStringPasswordArrayArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]string if err := func() error { response = make([][]string, 0) @@ -30376,8 +30376,8 @@ func decodeTestResponseStringPasswordNullableResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilString if err := func() error { if err := response.Decode(d); err != nil { @@ -30417,8 +30417,8 @@ func decodeTestResponseStringPasswordNullableArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilString if err := func() error { response = make([]NilString, 0) @@ -30466,8 +30466,8 @@ func decodeTestResponseStringPasswordNullableArrayArrayResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilString if err := func() error { response = make([][]NilString, 0) @@ -30523,8 +30523,8 @@ func decodeTestResponseStringTimeResponse(resp *http.Response) (res time.Time, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response time.Time if err := func() error { v, err := json.DecodeTime(d) @@ -30566,8 +30566,8 @@ func decodeTestResponseStringTimeArrayResponse(resp *http.Response) (res []time. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []time.Time if err := func() error { response = make([]time.Time, 0) @@ -30617,8 +30617,8 @@ func decodeTestResponseStringTimeArrayArrayResponse(resp *http.Response) (res [] if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]time.Time if err := func() error { response = make([][]time.Time, 0) @@ -30676,8 +30676,8 @@ func decodeTestResponseStringTimeNullableResponse(resp *http.Response) (res NilT if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilTime if err := func() error { if err := response.Decode(d, json.DecodeTime); err != nil { @@ -30717,8 +30717,8 @@ func decodeTestResponseStringTimeNullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilTime if err := func() error { response = make([]NilTime, 0) @@ -30766,8 +30766,8 @@ func decodeTestResponseStringTimeNullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilTime if err := func() error { response = make([][]NilTime, 0) @@ -30823,8 +30823,8 @@ func decodeTestResponseStringURIResponse(resp *http.Response) (res url.URL, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response url.URL if err := func() error { v, err := json.DecodeURI(d) @@ -30866,8 +30866,8 @@ func decodeTestResponseStringURIArrayResponse(resp *http.Response) (res []url.UR if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []url.URL if err := func() error { response = make([]url.URL, 0) @@ -30917,8 +30917,8 @@ func decodeTestResponseStringURIArrayArrayResponse(resp *http.Response) (res [][ if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]url.URL if err := func() error { response = make([][]url.URL, 0) @@ -30976,8 +30976,8 @@ func decodeTestResponseStringURINullableResponse(resp *http.Response) (res NilUR if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilURI if err := func() error { if err := response.Decode(d); err != nil { @@ -31017,8 +31017,8 @@ func decodeTestResponseStringURINullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilURI if err := func() error { response = make([]NilURI, 0) @@ -31066,8 +31066,8 @@ func decodeTestResponseStringURINullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilURI if err := func() error { response = make([][]NilURI, 0) @@ -31123,8 +31123,8 @@ func decodeTestResponseStringUUIDResponse(resp *http.Response) (res uuid.UUID, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response uuid.UUID if err := func() error { v, err := json.DecodeUUID(d) @@ -31166,8 +31166,8 @@ func decodeTestResponseStringUUIDArrayResponse(resp *http.Response) (res []uuid. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []uuid.UUID if err := func() error { response = make([]uuid.UUID, 0) @@ -31217,8 +31217,8 @@ func decodeTestResponseStringUUIDArrayArrayResponse(resp *http.Response) (res [] if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]uuid.UUID if err := func() error { response = make([][]uuid.UUID, 0) @@ -31276,8 +31276,8 @@ func decodeTestResponseStringUUIDNullableResponse(resp *http.Response) (res NilU if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilUUID if err := func() error { if err := response.Decode(d); err != nil { @@ -31317,8 +31317,8 @@ func decodeTestResponseStringUUIDNullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilUUID if err := func() error { response = make([]NilUUID, 0) @@ -31366,8 +31366,8 @@ func decodeTestResponseStringUUIDNullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilUUID if err := func() error { response = make([][]NilUUID, 0) @@ -31423,8 +31423,8 @@ func decodeTestResponseStringUnixResponse(resp *http.Response) (res time.Time, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response time.Time if err := func() error { v, err := json.DecodeStringUnixSeconds(d) @@ -31466,8 +31466,8 @@ func decodeTestResponseStringUnixArrayResponse(resp *http.Response) (res []time. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []time.Time if err := func() error { response = make([]time.Time, 0) @@ -31517,8 +31517,8 @@ func decodeTestResponseStringUnixArrayArrayResponse(resp *http.Response) (res [] if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]time.Time if err := func() error { response = make([][]time.Time, 0) @@ -31576,8 +31576,8 @@ func decodeTestResponseStringUnixMicroResponse(resp *http.Response) (res time.Ti if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response time.Time if err := func() error { v, err := json.DecodeStringUnixMicro(d) @@ -31619,8 +31619,8 @@ func decodeTestResponseStringUnixMicroArrayResponse(resp *http.Response) (res [] if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []time.Time if err := func() error { response = make([]time.Time, 0) @@ -31670,8 +31670,8 @@ func decodeTestResponseStringUnixMicroArrayArrayResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]time.Time if err := func() error { response = make([][]time.Time, 0) @@ -31729,8 +31729,8 @@ func decodeTestResponseStringUnixMicroNullableResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilStringUnixMicro if err := func() error { if err := response.Decode(d, json.DecodeStringUnixMicro); err != nil { @@ -31770,8 +31770,8 @@ func decodeTestResponseStringUnixMicroNullableArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilStringUnixMicro if err := func() error { response = make([]NilStringUnixMicro, 0) @@ -31819,8 +31819,8 @@ func decodeTestResponseStringUnixMicroNullableArrayArrayResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilStringUnixMicro if err := func() error { response = make([][]NilStringUnixMicro, 0) @@ -31876,8 +31876,8 @@ func decodeTestResponseStringUnixMilliResponse(resp *http.Response) (res time.Ti if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response time.Time if err := func() error { v, err := json.DecodeStringUnixMilli(d) @@ -31919,8 +31919,8 @@ func decodeTestResponseStringUnixMilliArrayResponse(resp *http.Response) (res [] if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []time.Time if err := func() error { response = make([]time.Time, 0) @@ -31970,8 +31970,8 @@ func decodeTestResponseStringUnixMilliArrayArrayResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]time.Time if err := func() error { response = make([][]time.Time, 0) @@ -32029,8 +32029,8 @@ func decodeTestResponseStringUnixMilliNullableResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilStringUnixMilli if err := func() error { if err := response.Decode(d, json.DecodeStringUnixMilli); err != nil { @@ -32070,8 +32070,8 @@ func decodeTestResponseStringUnixMilliNullableArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilStringUnixMilli if err := func() error { response = make([]NilStringUnixMilli, 0) @@ -32119,8 +32119,8 @@ func decodeTestResponseStringUnixMilliNullableArrayArrayResponse(resp *http.Resp if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilStringUnixMilli if err := func() error { response = make([][]NilStringUnixMilli, 0) @@ -32176,8 +32176,8 @@ func decodeTestResponseStringUnixNanoResponse(resp *http.Response) (res time.Tim if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response time.Time if err := func() error { v, err := json.DecodeStringUnixNano(d) @@ -32219,8 +32219,8 @@ func decodeTestResponseStringUnixNanoArrayResponse(resp *http.Response) (res []t if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []time.Time if err := func() error { response = make([]time.Time, 0) @@ -32270,8 +32270,8 @@ func decodeTestResponseStringUnixNanoArrayArrayResponse(resp *http.Response) (re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]time.Time if err := func() error { response = make([][]time.Time, 0) @@ -32329,8 +32329,8 @@ func decodeTestResponseStringUnixNanoNullableResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilStringUnixNano if err := func() error { if err := response.Decode(d, json.DecodeStringUnixNano); err != nil { @@ -32370,8 +32370,8 @@ func decodeTestResponseStringUnixNanoNullableArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilStringUnixNano if err := func() error { response = make([]NilStringUnixNano, 0) @@ -32419,8 +32419,8 @@ func decodeTestResponseStringUnixNanoNullableArrayArrayResponse(resp *http.Respo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilStringUnixNano if err := func() error { response = make([][]NilStringUnixNano, 0) @@ -32476,8 +32476,8 @@ func decodeTestResponseStringUnixNullableResponse(resp *http.Response) (res NilS if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilStringUnixSeconds if err := func() error { if err := response.Decode(d, json.DecodeStringUnixSeconds); err != nil { @@ -32517,8 +32517,8 @@ func decodeTestResponseStringUnixNullableArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilStringUnixSeconds if err := func() error { response = make([]NilStringUnixSeconds, 0) @@ -32566,8 +32566,8 @@ func decodeTestResponseStringUnixNullableArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilStringUnixSeconds if err := func() error { response = make([][]NilStringUnixSeconds, 0) @@ -32623,8 +32623,8 @@ func decodeTestResponseStringUnixSecondsResponse(resp *http.Response) (res time. if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response time.Time if err := func() error { v, err := json.DecodeStringUnixSeconds(d) @@ -32666,8 +32666,8 @@ func decodeTestResponseStringUnixSecondsArrayResponse(resp *http.Response) (res if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []time.Time if err := func() error { response = make([]time.Time, 0) @@ -32717,8 +32717,8 @@ func decodeTestResponseStringUnixSecondsArrayArrayResponse(resp *http.Response) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]time.Time if err := func() error { response = make([][]time.Time, 0) @@ -32776,8 +32776,8 @@ func decodeTestResponseStringUnixSecondsNullableResponse(resp *http.Response) (r if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilStringUnixSeconds if err := func() error { if err := response.Decode(d, json.DecodeStringUnixSeconds); err != nil { @@ -32817,8 +32817,8 @@ func decodeTestResponseStringUnixSecondsNullableArrayResponse(resp *http.Respons if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []NilStringUnixSeconds if err := func() error { response = make([]NilStringUnixSeconds, 0) @@ -32866,8 +32866,8 @@ func decodeTestResponseStringUnixSecondsNullableArrayArrayResponse(resp *http.Re if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response [][]NilStringUnixSeconds if err := func() error { response = make([][]NilStringUnixSeconds, 0) diff --git a/examples/ex_tinkoff/oas_request_decoders_gen.go b/examples/ex_tinkoff/oas_request_decoders_gen.go index 8ad397a69..df95215bc 100644 --- a/examples/ex_tinkoff/oas_request_decoders_gen.go +++ b/examples/ex_tinkoff/oas_request_decoders_gen.go @@ -44,8 +44,6 @@ func (s *Server) decodeOrdersLimitOrderPostRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request LimitOrderRequest buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56,6 +54,8 @@ func (s *Server) decodeOrdersLimitOrderPostRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request LimitOrderRequest if err := func() error { if err := request.Decode(d); err != nil { return err @@ -115,8 +115,6 @@ func (s *Server) decodeOrdersMarketOrderPostRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request MarketOrderRequest buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -127,6 +125,8 @@ func (s *Server) decodeOrdersMarketOrderPostRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request MarketOrderRequest if err := func() error { if err := request.Decode(d); err != nil { return err @@ -186,8 +186,6 @@ func (s *Server) decodeSandboxCurrenciesBalancePostRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SandboxSetCurrencyBalanceRequest buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -198,6 +196,8 @@ func (s *Server) decodeSandboxCurrenciesBalancePostRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SandboxSetCurrencyBalanceRequest if err := func() error { if err := request.Decode(d); err != nil { return err @@ -257,8 +257,6 @@ func (s *Server) decodeSandboxPositionsBalancePostRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SandboxSetPositionBalanceRequest buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -269,6 +267,8 @@ func (s *Server) decodeSandboxPositionsBalancePostRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SandboxSetPositionBalanceRequest if err := func() error { if err := request.Decode(d); err != nil { return err @@ -331,8 +331,6 @@ func (s *Server) decodeSandboxRegisterPostRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptSandboxRegisterRequest buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -343,6 +341,8 @@ func (s *Server) decodeSandboxRegisterPostRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptSandboxRegisterRequest if err := func() error { request.Reset() if err := request.Decode(d); err != nil { diff --git a/examples/ex_tinkoff/oas_response_decoders_gen.go b/examples/ex_tinkoff/oas_response_decoders_gen.go index 1f802df58..2721f1718 100644 --- a/examples/ex_tinkoff/oas_response_decoders_gen.go +++ b/examples/ex_tinkoff/oas_response_decoders_gen.go @@ -28,8 +28,8 @@ func decodeMarketBondsGetResponse(resp *http.Response) (res MarketBondsGetRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MarketInstrumentListResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -63,8 +63,8 @@ func decodeMarketBondsGetResponse(resp *http.Response) (res MarketBondsGetRes, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -104,8 +104,8 @@ func decodeMarketCandlesGetResponse(resp *http.Response) (res MarketCandlesGetRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CandlesResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -139,8 +139,8 @@ func decodeMarketCandlesGetResponse(resp *http.Response) (res MarketCandlesGetRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -180,8 +180,8 @@ func decodeMarketCurrenciesGetResponse(resp *http.Response) (res MarketCurrencie if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MarketInstrumentListResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -215,8 +215,8 @@ func decodeMarketCurrenciesGetResponse(resp *http.Response) (res MarketCurrencie if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -256,8 +256,8 @@ func decodeMarketEtfsGetResponse(resp *http.Response) (res MarketEtfsGetRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MarketInstrumentListResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -291,8 +291,8 @@ func decodeMarketEtfsGetResponse(resp *http.Response) (res MarketEtfsGetRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -332,8 +332,8 @@ func decodeMarketOrderbookGetResponse(resp *http.Response) (res MarketOrderbookG if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrderbookResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -367,8 +367,8 @@ func decodeMarketOrderbookGetResponse(resp *http.Response) (res MarketOrderbookG if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -408,8 +408,8 @@ func decodeMarketSearchByFigiGetResponse(resp *http.Response) (res MarketSearchB if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response SearchMarketInstrumentResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -443,8 +443,8 @@ func decodeMarketSearchByFigiGetResponse(resp *http.Response) (res MarketSearchB if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -484,8 +484,8 @@ func decodeMarketSearchByTickerGetResponse(resp *http.Response) (res MarketSearc if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MarketInstrumentListResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -519,8 +519,8 @@ func decodeMarketSearchByTickerGetResponse(resp *http.Response) (res MarketSearc if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -560,8 +560,8 @@ func decodeMarketStocksGetResponse(resp *http.Response) (res MarketStocksGetRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MarketInstrumentListResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -595,8 +595,8 @@ func decodeMarketStocksGetResponse(resp *http.Response) (res MarketStocksGetRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -636,8 +636,8 @@ func decodeOperationsGetResponse(resp *http.Response) (res OperationsGetRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OperationsResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -671,8 +671,8 @@ func decodeOperationsGetResponse(resp *http.Response) (res OperationsGetRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -712,8 +712,8 @@ func decodeOrdersCancelPostResponse(resp *http.Response) (res OrdersCancelPostRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Empty if err := func() error { if err := response.Decode(d); err != nil { @@ -747,8 +747,8 @@ func decodeOrdersCancelPostResponse(resp *http.Response) (res OrdersCancelPostRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -788,8 +788,8 @@ func decodeOrdersGetResponse(resp *http.Response) (res OrdersGetRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OrdersResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -823,8 +823,8 @@ func decodeOrdersGetResponse(resp *http.Response) (res OrdersGetRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -864,8 +864,8 @@ func decodeOrdersLimitOrderPostResponse(resp *http.Response) (res OrdersLimitOrd if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response LimitOrderResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -899,8 +899,8 @@ func decodeOrdersLimitOrderPostResponse(resp *http.Response) (res OrdersLimitOrd if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -940,8 +940,8 @@ func decodeOrdersMarketOrderPostResponse(resp *http.Response) (res OrdersMarketO if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MarketOrderResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -975,8 +975,8 @@ func decodeOrdersMarketOrderPostResponse(resp *http.Response) (res OrdersMarketO if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1016,8 +1016,8 @@ func decodePortfolioCurrenciesGetResponse(resp *http.Response) (res PortfolioCur if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PortfolioCurrenciesResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -1051,8 +1051,8 @@ func decodePortfolioCurrenciesGetResponse(resp *http.Response) (res PortfolioCur if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1092,8 +1092,8 @@ func decodePortfolioGetResponse(resp *http.Response) (res PortfolioGetRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PortfolioResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -1127,8 +1127,8 @@ func decodePortfolioGetResponse(resp *http.Response) (res PortfolioGetRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1168,8 +1168,8 @@ func decodeSandboxClearPostResponse(resp *http.Response) (res SandboxClearPostRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Empty if err := func() error { if err := response.Decode(d); err != nil { @@ -1203,8 +1203,8 @@ func decodeSandboxClearPostResponse(resp *http.Response) (res SandboxClearPostRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1244,8 +1244,8 @@ func decodeSandboxCurrenciesBalancePostResponse(resp *http.Response) (res Sandbo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Empty if err := func() error { if err := response.Decode(d); err != nil { @@ -1279,8 +1279,8 @@ func decodeSandboxCurrenciesBalancePostResponse(resp *http.Response) (res Sandbo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1320,8 +1320,8 @@ func decodeSandboxPositionsBalancePostResponse(resp *http.Response) (res Sandbox if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Empty if err := func() error { if err := response.Decode(d); err != nil { @@ -1355,8 +1355,8 @@ func decodeSandboxPositionsBalancePostResponse(resp *http.Response) (res Sandbox if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1396,8 +1396,8 @@ func decodeSandboxRegisterPostResponse(resp *http.Response) (res SandboxRegister if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response SandboxRegisterResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -1431,8 +1431,8 @@ func decodeSandboxRegisterPostResponse(resp *http.Response) (res SandboxRegister if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1472,8 +1472,8 @@ func decodeSandboxRemovePostResponse(resp *http.Response) (res SandboxRemovePost if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Empty if err := func() error { if err := response.Decode(d); err != nil { @@ -1507,8 +1507,8 @@ func decodeSandboxRemovePostResponse(resp *http.Response) (res SandboxRemovePost if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -1548,8 +1548,8 @@ func decodeUserAccountsGetResponse(resp *http.Response) (res UserAccountsGetRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response UserAccountsResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -1583,8 +1583,8 @@ func decodeUserAccountsGetResponse(resp *http.Response) (res UserAccountsGetRes, if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { diff --git a/internal/integration/referenced_path_item/oas_response_decoders_gen.go b/internal/integration/referenced_path_item/oas_response_decoders_gen.go index 9b55014b0..53e15ab9c 100644 --- a/internal/integration/referenced_path_item/oas_response_decoders_gen.go +++ b/internal/integration/referenced_path_item/oas_response_decoders_gen.go @@ -28,8 +28,8 @@ func decodeFooGetResponse(resp *http.Response) (res string, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response string if err := func() error { v, err := d.Str() diff --git a/internal/integration/sample_api/oas_request_decoders_gen.go b/internal/integration/sample_api/oas_request_decoders_gen.go index df6a51d51..403d83d3c 100644 --- a/internal/integration/sample_api/oas_request_decoders_gen.go +++ b/internal/integration/sample_api/oas_request_decoders_gen.go @@ -44,8 +44,6 @@ func (s *Server) decodeDefaultTestRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request DefaultTest buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56,6 +54,8 @@ func (s *Server) decodeDefaultTestRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request DefaultTest if err := func() error { if err := request.Decode(d); err != nil { return err @@ -118,8 +118,6 @@ func (s *Server) decodeFoobarPostRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptPet buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -130,6 +128,8 @@ func (s *Server) decodeFoobarPostRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptPet if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -197,8 +197,6 @@ func (s *Server) decodeOneofBugRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request OneOfBugs buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -209,6 +207,8 @@ func (s *Server) decodeOneofBugRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OneOfBugs if err := func() error { if err := request.Decode(d); err != nil { return err @@ -271,8 +271,6 @@ func (s *Server) decodePetCreateRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptPet buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -283,6 +281,8 @@ func (s *Server) decodePetCreateRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptPet if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -353,8 +353,6 @@ func (s *Server) decodePetUpdateNameAliasPostRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptPetName buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -365,6 +363,8 @@ func (s *Server) decodePetUpdateNameAliasPostRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptPetName if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -435,8 +435,6 @@ func (s *Server) decodePetUpdateNamePostRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -447,6 +445,8 @@ func (s *Server) decodePetUpdateNamePostRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptString if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -559,8 +559,6 @@ func (s *Server) decodeTestFloatValidationRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request TestFloatValidation buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -571,6 +569,8 @@ func (s *Server) decodeTestFloatValidationRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request TestFloatValidation if err := func() error { if err := request.Decode(d); err != nil { return err diff --git a/internal/integration/sample_api/oas_response_decoders_gen.go b/internal/integration/sample_api/oas_response_decoders_gen.go index f90adeef2..3798ce66e 100644 --- a/internal/integration/sample_api/oas_response_decoders_gen.go +++ b/internal/integration/sample_api/oas_response_decoders_gen.go @@ -29,8 +29,8 @@ func decodeDataGetFormatResponse(resp *http.Response) (res string, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response string if err := func() error { v, err := d.Str() @@ -72,8 +72,8 @@ func decodeDefaultTestResponse(resp *http.Response) (res int32, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response int32 if err := func() error { v, err := d.Int32() @@ -113,8 +113,8 @@ func decodeErrorGetResponse(resp *http.Response) (res *ErrorStatusCode, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -155,8 +155,8 @@ func decodeFoobarGetResponse(resp *http.Response) (res FoobarGetRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Pet if err := func() error { if err := response.Decode(d); err != nil { @@ -199,8 +199,8 @@ func decodeFoobarPostResponse(resp *http.Response) (res FoobarPostRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Pet if err := func() error { if err := response.Decode(d); err != nil { @@ -237,8 +237,8 @@ func decodeFoobarPostResponse(resp *http.Response) (res FoobarPostRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -286,8 +286,8 @@ func decodeNoAdditionalPropertiesTestResponse(resp *http.Response) (res *NoAddit if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NoAdditionalPropertiesTest if err := func() error { if err := response.Decode(d); err != nil { @@ -325,8 +325,8 @@ func decodeNullableDefaultResponseResponse(resp *http.Response) (res *NilIntStat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilInt if err := func() error { if err := response.Decode(d); err != nil { @@ -376,8 +376,8 @@ func decodePatternRecursiveMapGetResponse(resp *http.Response) (res PatternRecur if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PatternRecursiveMap if err := func() error { if err := response.Decode(d); err != nil { @@ -417,8 +417,8 @@ func decodePetCreateResponse(resp *http.Response) (res *Pet, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Pet if err := func() error { if err := response.Decode(d); err != nil { @@ -458,8 +458,8 @@ func decodePetFriendsNamesByIDResponse(resp *http.Response) (res []string, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []string if err := func() error { response = make([]string, 0) @@ -509,8 +509,8 @@ func decodePetGetResponse(resp *http.Response) (res PetGetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Pet if err := func() error { if err := response.Decode(d); err != nil { @@ -544,8 +544,8 @@ func decodePetGetResponse(resp *http.Response) (res PetGetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PetGetDef if err := func() error { if err := response.Decode(d); err != nil { @@ -608,8 +608,8 @@ func decodePetGetAvatarByIDResponse(resp *http.Response) (res PetGetAvatarByIDRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -672,8 +672,8 @@ func decodePetGetAvatarByNameResponse(resp *http.Response) (res PetGetAvatarByNa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -714,8 +714,8 @@ func decodePetGetByNameResponse(resp *http.Response) (res *Pet, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Pet if err := func() error { if err := response.Decode(d); err != nil { @@ -755,8 +755,8 @@ func decodePetNameByIDResponse(resp *http.Response) (res string, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response string if err := func() error { v, err := d.Str() @@ -818,8 +818,8 @@ func decodePetUploadAvatarByIDResponse(resp *http.Response) (res PetUploadAvatar if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -860,8 +860,8 @@ func decodeRecursiveArrayGetResponse(resp *http.Response) (res RecursiveArray, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response RecursiveArray if err := func() error { if err := response.Decode(d); err != nil { @@ -901,8 +901,8 @@ func decodeRecursiveMapGetResponse(resp *http.Response) (res *RecursiveMap, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response RecursiveMap if err := func() error { if err := response.Decode(d); err != nil { @@ -942,8 +942,8 @@ func decodeSecurityTestResponse(resp *http.Response) (res string, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response string if err := func() error { v, err := d.Str() @@ -985,8 +985,8 @@ func decodeStringIntMapGetResponse(resp *http.Response) (res *StringIntMap, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response StringIntMap if err := func() error { if err := response.Decode(d); err != nil { @@ -1035,8 +1035,8 @@ func decodeTestNullableOneofsResponse(resp *http.Response) (res TestNullableOneo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TestNullableOneofsApplicationJSONOK if err := func() error { if err := response.Decode(d); err != nil { @@ -1070,8 +1070,8 @@ func decodeTestNullableOneofsResponse(resp *http.Response) (res TestNullableOneo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TestNullableOneofsApplicationJSONCreated if err := func() error { if err := response.Decode(d); err != nil { @@ -1105,8 +1105,8 @@ func decodeTestNullableOneofsResponse(resp *http.Response) (res TestNullableOneo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OneOfBooleanSumNullables if err := func() error { if err := response.Decode(d); err != nil { diff --git a/internal/integration/sample_api_nc/oas_request_decoders_gen.go b/internal/integration/sample_api_nc/oas_request_decoders_gen.go index df6a51d51..403d83d3c 100644 --- a/internal/integration/sample_api_nc/oas_request_decoders_gen.go +++ b/internal/integration/sample_api_nc/oas_request_decoders_gen.go @@ -44,8 +44,6 @@ func (s *Server) decodeDefaultTestRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request DefaultTest buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56,6 +54,8 @@ func (s *Server) decodeDefaultTestRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request DefaultTest if err := func() error { if err := request.Decode(d); err != nil { return err @@ -118,8 +118,6 @@ func (s *Server) decodeFoobarPostRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptPet buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -130,6 +128,8 @@ func (s *Server) decodeFoobarPostRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptPet if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -197,8 +197,6 @@ func (s *Server) decodeOneofBugRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request OneOfBugs buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -209,6 +207,8 @@ func (s *Server) decodeOneofBugRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OneOfBugs if err := func() error { if err := request.Decode(d); err != nil { return err @@ -271,8 +271,6 @@ func (s *Server) decodePetCreateRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptPet buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -283,6 +281,8 @@ func (s *Server) decodePetCreateRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptPet if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -353,8 +353,6 @@ func (s *Server) decodePetUpdateNameAliasPostRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptPetName buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -365,6 +363,8 @@ func (s *Server) decodePetUpdateNameAliasPostRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptPetName if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -435,8 +435,6 @@ func (s *Server) decodePetUpdateNamePostRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -447,6 +445,8 @@ func (s *Server) decodePetUpdateNamePostRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptString if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -559,8 +559,6 @@ func (s *Server) decodeTestFloatValidationRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request TestFloatValidation buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -571,6 +569,8 @@ func (s *Server) decodeTestFloatValidationRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request TestFloatValidation if err := func() error { if err := request.Decode(d); err != nil { return err diff --git a/internal/integration/sample_api_ns/oas_response_decoders_gen.go b/internal/integration/sample_api_ns/oas_response_decoders_gen.go index f90adeef2..3798ce66e 100644 --- a/internal/integration/sample_api_ns/oas_response_decoders_gen.go +++ b/internal/integration/sample_api_ns/oas_response_decoders_gen.go @@ -29,8 +29,8 @@ func decodeDataGetFormatResponse(resp *http.Response) (res string, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response string if err := func() error { v, err := d.Str() @@ -72,8 +72,8 @@ func decodeDefaultTestResponse(resp *http.Response) (res int32, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response int32 if err := func() error { v, err := d.Int32() @@ -113,8 +113,8 @@ func decodeErrorGetResponse(resp *http.Response) (res *ErrorStatusCode, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -155,8 +155,8 @@ func decodeFoobarGetResponse(resp *http.Response) (res FoobarGetRes, err error) if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Pet if err := func() error { if err := response.Decode(d); err != nil { @@ -199,8 +199,8 @@ func decodeFoobarPostResponse(resp *http.Response) (res FoobarPostRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Pet if err := func() error { if err := response.Decode(d); err != nil { @@ -237,8 +237,8 @@ func decodeFoobarPostResponse(resp *http.Response) (res FoobarPostRes, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -286,8 +286,8 @@ func decodeNoAdditionalPropertiesTestResponse(resp *http.Response) (res *NoAddit if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NoAdditionalPropertiesTest if err := func() error { if err := response.Decode(d); err != nil { @@ -325,8 +325,8 @@ func decodeNullableDefaultResponseResponse(resp *http.Response) (res *NilIntStat if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilInt if err := func() error { if err := response.Decode(d); err != nil { @@ -376,8 +376,8 @@ func decodePatternRecursiveMapGetResponse(resp *http.Response) (res PatternRecur if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PatternRecursiveMap if err := func() error { if err := response.Decode(d); err != nil { @@ -417,8 +417,8 @@ func decodePetCreateResponse(resp *http.Response) (res *Pet, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Pet if err := func() error { if err := response.Decode(d); err != nil { @@ -458,8 +458,8 @@ func decodePetFriendsNamesByIDResponse(resp *http.Response) (res []string, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []string if err := func() error { response = make([]string, 0) @@ -509,8 +509,8 @@ func decodePetGetResponse(resp *http.Response) (res PetGetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Pet if err := func() error { if err := response.Decode(d); err != nil { @@ -544,8 +544,8 @@ func decodePetGetResponse(resp *http.Response) (res PetGetRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response PetGetDef if err := func() error { if err := response.Decode(d); err != nil { @@ -608,8 +608,8 @@ func decodePetGetAvatarByIDResponse(resp *http.Response) (res PetGetAvatarByIDRe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -672,8 +672,8 @@ func decodePetGetAvatarByNameResponse(resp *http.Response) (res PetGetAvatarByNa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -714,8 +714,8 @@ func decodePetGetByNameResponse(resp *http.Response) (res *Pet, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Pet if err := func() error { if err := response.Decode(d); err != nil { @@ -755,8 +755,8 @@ func decodePetNameByIDResponse(resp *http.Response) (res string, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response string if err := func() error { v, err := d.Str() @@ -818,8 +818,8 @@ func decodePetUploadAvatarByIDResponse(resp *http.Response) (res PetUploadAvatar if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -860,8 +860,8 @@ func decodeRecursiveArrayGetResponse(resp *http.Response) (res RecursiveArray, e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response RecursiveArray if err := func() error { if err := response.Decode(d); err != nil { @@ -901,8 +901,8 @@ func decodeRecursiveMapGetResponse(resp *http.Response) (res *RecursiveMap, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response RecursiveMap if err := func() error { if err := response.Decode(d); err != nil { @@ -942,8 +942,8 @@ func decodeSecurityTestResponse(resp *http.Response) (res string, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response string if err := func() error { v, err := d.Str() @@ -985,8 +985,8 @@ func decodeStringIntMapGetResponse(resp *http.Response) (res *StringIntMap, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response StringIntMap if err := func() error { if err := response.Decode(d); err != nil { @@ -1035,8 +1035,8 @@ func decodeTestNullableOneofsResponse(resp *http.Response) (res TestNullableOneo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TestNullableOneofsApplicationJSONOK if err := func() error { if err := response.Decode(d); err != nil { @@ -1070,8 +1070,8 @@ func decodeTestNullableOneofsResponse(resp *http.Response) (res TestNullableOneo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TestNullableOneofsApplicationJSONCreated if err := func() error { if err := response.Decode(d); err != nil { @@ -1105,8 +1105,8 @@ func decodeTestNullableOneofsResponse(resp *http.Response) (res TestNullableOneo if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OneOfBooleanSumNullables if err := func() error { if err := response.Decode(d); err != nil { diff --git a/internal/integration/sample_err/oas_request_decoders_gen.go b/internal/integration/sample_err/oas_request_decoders_gen.go index 221810b5f..dfa5d47ef 100644 --- a/internal/integration/sample_err/oas_request_decoders_gen.go +++ b/internal/integration/sample_err/oas_request_decoders_gen.go @@ -47,8 +47,6 @@ func (s *Server) decodeDataCreateRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptData buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -59,6 +57,8 @@ func (s *Server) decodeDataCreateRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptData if err := func() error { request.Reset() if err := request.Decode(d); err != nil { diff --git a/internal/integration/sample_err/oas_response_decoders_gen.go b/internal/integration/sample_err/oas_response_decoders_gen.go index 9e441a5c9..05a2c6a42 100644 --- a/internal/integration/sample_err/oas_response_decoders_gen.go +++ b/internal/integration/sample_err/oas_response_decoders_gen.go @@ -28,8 +28,8 @@ func decodeDataCreateResponse(resp *http.Response) (res *Data, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Data if err := func() error { if err := response.Decode(d); err != nil { @@ -64,8 +64,8 @@ func decodeDataCreateResponse(resp *http.Response) (res *Data, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -111,8 +111,8 @@ func decodeDataGetResponse(resp *http.Response) (res *Data, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Data if err := func() error { if err := response.Decode(d); err != nil { @@ -147,8 +147,8 @@ func decodeDataGetResponse(resp *http.Response) (res *Data, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { diff --git a/internal/integration/techempower/oas_response_decoders_gen.go b/internal/integration/techempower/oas_response_decoders_gen.go index 006dcfa65..d03047d82 100644 --- a/internal/integration/techempower/oas_response_decoders_gen.go +++ b/internal/integration/techempower/oas_response_decoders_gen.go @@ -28,8 +28,8 @@ func decodeCachingResponse(resp *http.Response) (res WorldObjects, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response WorldObjects if err := func() error { if err := response.Decode(d); err != nil { @@ -69,8 +69,8 @@ func decodeDBResponse(resp *http.Response) (res *WorldObject, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response WorldObject if err := func() error { if err := response.Decode(d); err != nil { @@ -110,8 +110,8 @@ func decodeJSONResponse(resp *http.Response) (res *HelloWorld, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response HelloWorld if err := func() error { if err := response.Decode(d); err != nil { @@ -151,8 +151,8 @@ func decodeQueriesResponse(resp *http.Response) (res WorldObjects, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response WorldObjects if err := func() error { if err := response.Decode(d); err != nil { @@ -192,8 +192,8 @@ func decodeUpdatesResponse(resp *http.Response) (res WorldObjects, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response WorldObjects if err := func() error { if err := response.Decode(d); err != nil { diff --git a/internal/integration/test_allof/oas_request_decoders_gen.go b/internal/integration/test_allof/oas_request_decoders_gen.go index 535db44fa..e7d00657a 100644 --- a/internal/integration/test_allof/oas_request_decoders_gen.go +++ b/internal/integration/test_allof/oas_request_decoders_gen.go @@ -47,8 +47,6 @@ func (s *Server) decodeNullableStringsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -59,6 +57,8 @@ func (s *Server) decodeNullableStringsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request NilString if err := func() error { if err := request.Decode(d); err != nil { return err @@ -126,8 +126,6 @@ func (s *Server) decodeObjectsWithConflictingArrayPropertyRequest(r *http.Reques if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ObjectsWithConflictingArrayPropertyReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -138,6 +136,8 @@ func (s *Server) decodeObjectsWithConflictingArrayPropertyRequest(r *http.Reques } d := jx.DecodeBytes(buf) + + var request ObjectsWithConflictingArrayPropertyReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -197,8 +197,6 @@ func (s *Server) decodeObjectsWithConflictingPropertiesRequest(r *http.Request) if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ObjectsWithConflictingPropertiesReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -209,6 +207,8 @@ func (s *Server) decodeObjectsWithConflictingPropertiesRequest(r *http.Request) } d := jx.DecodeBytes(buf) + + var request ObjectsWithConflictingPropertiesReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -268,8 +268,6 @@ func (s *Server) decodeReferencedAllofRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request ReferencedAllofApplicationJSON buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -280,6 +278,8 @@ func (s *Server) decodeReferencedAllofRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReferencedAllofApplicationJSON if err := func() error { if err := request.Decode(d); err != nil { return err @@ -451,8 +451,6 @@ func (s *Server) decodeReferencedAllofOptionalRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request ReferencedAllofOptionalApplicationJSON buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -463,6 +461,8 @@ func (s *Server) decodeReferencedAllofOptionalRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request ReferencedAllofOptionalApplicationJSON if err := func() error { if err := request.Decode(d); err != nil { return err @@ -630,8 +630,6 @@ func (s *Server) decodeSimpleIntegerRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request int buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -642,6 +640,8 @@ func (s *Server) decodeSimpleIntegerRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request int if err := func() error { v, err := d.Int() request = int(v) @@ -712,8 +712,6 @@ func (s *Server) decodeSimpleObjectsRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SimpleObjectsReq buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -724,6 +722,8 @@ func (s *Server) decodeSimpleObjectsRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SimpleObjectsReq if err := func() error { if err := request.Decode(d); err != nil { return err @@ -775,8 +775,6 @@ func (s *Server) decodeStringsNotypeRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request NilString buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -787,6 +785,8 @@ func (s *Server) decodeStringsNotypeRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request NilString if err := func() error { if err := request.Decode(d); err != nil { return err diff --git a/internal/integration/test_anyof/oas_response_decoders_gen.go b/internal/integration/test_anyof/oas_response_decoders_gen.go index 7769c0fc9..927e6f9ff 100644 --- a/internal/integration/test_anyof/oas_response_decoders_gen.go +++ b/internal/integration/test_anyof/oas_response_decoders_gen.go @@ -28,8 +28,8 @@ func decodeIntegerNumberResponse(resp *http.Response) (res *IntegerNumber, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IntegerNumber if err := func() error { if err := response.Decode(d); err != nil { @@ -69,8 +69,8 @@ func decodeJaegerAnyOfResponse(resp *http.Response) (res *JaegerAnyOf, err error if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response JaegerAnyOf if err := func() error { if err := response.Decode(d); err != nil { @@ -110,8 +110,8 @@ func decodeOneUUIDResponse(resp *http.Response) (res *OneUUID, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response OneUUID if err := func() error { if err := response.Decode(d); err != nil { diff --git a/internal/integration/test_customformats/oas_request_decoders_gen.go b/internal/integration/test_customformats/oas_request_decoders_gen.go index 335e185ba..30d307ae3 100644 --- a/internal/integration/test_customformats/oas_request_decoders_gen.go +++ b/internal/integration/test_customformats/oas_request_decoders_gen.go @@ -44,8 +44,6 @@ func (s *Server) decodeEventPostRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request any buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -56,6 +54,8 @@ func (s *Server) decodeEventPostRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request any if err := func() error { v, err := formatXMyEvent().DecodeJSON(d) request = v @@ -109,8 +109,6 @@ func (s *Server) decodePhoneGetRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request User buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -121,6 +119,8 @@ func (s *Server) decodePhoneGetRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request User if err := func() error { if err := request.Decode(d); err != nil { return err diff --git a/internal/integration/test_customformats/oas_response_decoders_gen.go b/internal/integration/test_customformats/oas_response_decoders_gen.go index 874ffadf3..0c59927c1 100644 --- a/internal/integration/test_customformats/oas_response_decoders_gen.go +++ b/internal/integration/test_customformats/oas_response_decoders_gen.go @@ -28,8 +28,8 @@ func decodeEventPostResponse(resp *http.Response) (res any, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response any if err := func() error { v, err := formatXMyEvent().DecodeJSON(d) @@ -71,8 +71,8 @@ func decodePhoneGetResponse(resp *http.Response) (res *User, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response User if err := func() error { if err := response.Decode(d); err != nil { diff --git a/internal/integration/test_enum_naming/oas_response_decoders_gen.go b/internal/integration/test_enum_naming/oas_response_decoders_gen.go index acfe59870..fecfe0c24 100644 --- a/internal/integration/test_enum_naming/oas_response_decoders_gen.go +++ b/internal/integration/test_enum_naming/oas_response_decoders_gen.go @@ -28,8 +28,8 @@ func decodeProbeLivenessResponse(resp *http.Response) (res *ProbeLivenessOK, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ProbeLivenessOK if err := func() error { if err := response.Decode(d); err != nil { diff --git a/internal/integration/test_form/oas_request_decoders_gen.go b/internal/integration/test_form/oas_request_decoders_gen.go index fabe24d44..7ce52f284 100644 --- a/internal/integration/test_form/oas_request_decoders_gen.go +++ b/internal/integration/test_form/oas_request_decoders_gen.go @@ -669,8 +669,6 @@ func (s *Server) decodeTestShareFormSchemaRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request SharedRequest buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -681,6 +679,8 @@ func (s *Server) decodeTestShareFormSchemaRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request SharedRequest if err := func() error { if err := request.Decode(d); err != nil { return err diff --git a/internal/integration/test_form/oas_response_decoders_gen.go b/internal/integration/test_form/oas_response_decoders_gen.go index b28599325..51f244448 100644 --- a/internal/integration/test_form/oas_response_decoders_gen.go +++ b/internal/integration/test_form/oas_response_decoders_gen.go @@ -46,8 +46,8 @@ func decodeTestMultipartUploadResponse(resp *http.Response) (res *TestMultipartU if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response TestMultipartUploadOK if err := func() error { if err := response.Decode(d); err != nil { diff --git a/internal/integration/test_http_requests/oas_client_gen.go b/internal/integration/test_http_requests/oas_client_gen.go index fc4d7532a..b02eefc4d 100644 --- a/internal/integration/test_http_requests/oas_client_gen.go +++ b/internal/integration/test_http_requests/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "fmt" "net/url" "time" @@ -15,6 +16,7 @@ import ( ht "github.com/ogen-go/ogen/http" "github.com/ogen-go/ogen/otelogen" "github.com/ogen-go/ogen/uri" + "github.com/ogen-go/ogen/validate" ) // Client implements OAS client. @@ -434,3 +436,98 @@ func (c *Client) sendMaskContentTypeOptional(ctx context.Context, request *MaskC return result, nil } + +// StreamJSON invokes streamJSON operation. +// +// POST /streamJSON +func (c *Client) StreamJSON(ctx context.Context, request []float64) (float64, error) { + res, err := c.sendStreamJSON(ctx, request) + _ = res + return res, err +} + +func (c *Client) sendStreamJSON(ctx context.Context, request []float64) (res float64, err error) { + otelAttrs := []attribute.KeyValue{ + otelogen.OperationID("streamJSON"), + } + // Validate request before sending. + if err := func() error { + if request == nil { + return errors.New("nil is invalid value") + } + var failures []validate.FieldError + for i, elem := range request { + if err := func() error { + if err := (validate.Float{}).Validate(float64(elem)); err != nil { + return errors.Wrap(err, "float") + } + return nil + }(); err != nil { + failures = append(failures, validate.FieldError{ + Name: fmt.Sprintf("[%d]", i), + Error: err, + }) + } + } + if len(failures) > 0 { + return &validate.Error{Fields: failures} + } + return nil + }(); err != nil { + return res, errors.Wrap(err, "validate") + } + + // Run stopwatch. + startTime := time.Now() + defer func() { + elapsedDuration := time.Since(startTime) + c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + }() + + // Increment request counter. + c.requests.Add(ctx, 1, otelAttrs...) + + // Start a span for this request. + ctx, span := c.cfg.Tracer.Start(ctx, "StreamJSON", + trace.WithAttributes(otelAttrs...), + clientSpanKind, + ) + // Track stage for error reporting. + var stage string + defer func() { + if err != nil { + span.RecordError(err) + span.SetStatus(codes.Error, stage) + c.errors.Add(ctx, 1, otelAttrs...) + } + span.End() + }() + + stage = "BuildURL" + u := uri.Clone(c.requestURL(ctx)) + u.Path += "/streamJSON" + + stage = "EncodeRequest" + r, err := ht.NewRequest(ctx, "POST", u, nil) + if err != nil { + return res, errors.Wrap(err, "create request") + } + if err := encodeStreamJSONRequest(request, r); err != nil { + return res, errors.Wrap(err, "encode request") + } + + stage = "SendRequest" + resp, err := c.cfg.Client.Do(r) + if err != nil { + return res, errors.Wrap(err, "do request") + } + defer resp.Body.Close() + + stage = "DecodeResponse" + result, err := decodeStreamJSONResponse(resp) + if err != nil { + return res, errors.Wrap(err, "decode response") + } + + return result, nil +} diff --git a/internal/integration/test_http_requests/oas_handlers_gen.go b/internal/integration/test_http_requests/oas_handlers_gen.go index 2d031b1fa..3c13c470c 100644 --- a/internal/integration/test_http_requests/oas_handlers_gen.go +++ b/internal/integration/test_http_requests/oas_handlers_gen.go @@ -505,3 +505,101 @@ func (s *Server) handleMaskContentTypeOptionalRequest(args [0]string, w http.Res return } } + +// handleStreamJSONRequest handles streamJSON operation. +// +// POST /streamJSON +func (s *Server) handleStreamJSONRequest(args [0]string, w http.ResponseWriter, r *http.Request) { + otelAttrs := []attribute.KeyValue{ + otelogen.OperationID("streamJSON"), + } + + // Start a span for this request. + ctx, span := s.cfg.Tracer.Start(r.Context(), "StreamJSON", + trace.WithAttributes(otelAttrs...), + serverSpanKind, + ) + defer span.End() + + // Run stopwatch. + startTime := time.Now() + defer func() { + elapsedDuration := time.Since(startTime) + s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + }() + + // Increment request counter. + s.requests.Add(ctx, 1, otelAttrs...) + + var ( + recordError = func(stage string, err error) { + span.RecordError(err) + span.SetStatus(codes.Error, stage) + s.errors.Add(ctx, 1, otelAttrs...) + } + err error + opErrContext = ogenerrors.OperationContext{ + Name: "StreamJSON", + ID: "streamJSON", + } + ) + request, close, err := s.decodeStreamJSONRequest(r) + if err != nil { + err = &ogenerrors.DecodeRequestError{ + OperationContext: opErrContext, + Err: err, + } + recordError("DecodeRequest", err) + s.cfg.ErrorHandler(ctx, w, r, err) + return + } + defer func() { + if err := close(); err != nil { + recordError("CloseRequest", err) + } + }() + + var response float64 + if m := s.cfg.Middleware; m != nil { + mreq := middleware.Request{ + Context: ctx, + OperationName: "StreamJSON", + OperationID: "streamJSON", + Body: request, + Params: middleware.Parameters{}, + Raw: r, + } + + type ( + Request = []float64 + Params = struct{} + Response = float64 + ) + response, err = middleware.HookMiddleware[ + Request, + Params, + Response, + ]( + m, + mreq, + nil, + func(ctx context.Context, request Request, params Params) (response Response, err error) { + response, err = s.h.StreamJSON(ctx, request) + return response, err + }, + ) + } else { + response, err = s.h.StreamJSON(ctx, request) + } + if err != nil { + recordError("Internal", err) + s.cfg.ErrorHandler(ctx, w, r, err) + return + } + + if err := encodeStreamJSONResponse(response, w, span); err != nil { + recordError("EncodeResponse", err) + s.cfg.ErrorHandler(ctx, w, r, err) + return + } +} diff --git a/internal/integration/test_http_requests/oas_request_decoders_gen.go b/internal/integration/test_http_requests/oas_request_decoders_gen.go index 61b7f8354..d67ec0c87 100644 --- a/internal/integration/test_http_requests/oas_request_decoders_gen.go +++ b/internal/integration/test_http_requests/oas_request_decoders_gen.go @@ -4,6 +4,7 @@ package api import ( "encoding/base64" + "fmt" "io" "mime" "net/http" @@ -49,8 +50,6 @@ func (s *Server) decodeAllRequestBodiesRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, validate.ErrBodyRequired } - - var request AllRequestBodiesApplicationJSON buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -61,6 +60,8 @@ func (s *Server) decodeAllRequestBodiesRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request AllRequestBodiesApplicationJSON if err := func() error { if err := request.Decode(d); err != nil { return err @@ -279,8 +280,6 @@ func (s *Server) decodeAllRequestBodiesOptionalRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request AllRequestBodiesOptionalApplicationJSON buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -291,6 +290,8 @@ func (s *Server) decodeAllRequestBodiesOptionalRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request AllRequestBodiesOptionalApplicationJSON if err := func() error { if err := request.Decode(d); err != nil { return err @@ -588,3 +589,87 @@ func (s *Server) decodeMaskContentTypeOptionalRequest(r *http.Request) ( return req, close, validate.InvalidContentType(ct) } } + +func (s *Server) decodeStreamJSONRequest(r *http.Request) ( + req []float64, + close func() error, + rerr error, +) { + var closers []func() error + close = func() error { + var merr error + // Close in reverse order, to match defer behavior. + for i := len(closers) - 1; i >= 0; i-- { + c := closers[i] + merr = multierr.Append(merr, c()) + } + return merr + } + defer func() { + if rerr != nil { + rerr = multierr.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 ct == "application/json": + if r.ContentLength == 0 { + return req, close, validate.ErrBodyRequired + } + d := jx.Decode(r.Body, -1) + + var request []float64 + if err := func() error { + request = make([]float64, 0) + if err := d.Arr(func(d *jx.Decoder) error { + var elem float64 + v, err := d.Float64() + elem = float64(v) + if err != nil { + return err + } + request = append(request, elem) + return nil + }); err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + return req, close, err + } + if err := func() error { + if request == nil { + return errors.New("nil is invalid value") + } + var failures []validate.FieldError + for i, elem := range request { + if err := func() error { + if err := (validate.Float{}).Validate(float64(elem)); err != nil { + return errors.Wrap(err, "float") + } + return nil + }(); err != nil { + failures = append(failures, validate.FieldError{ + Name: fmt.Sprintf("[%d]", i), + Error: err, + }) + } + } + if len(failures) > 0 { + return &validate.Error{Fields: failures} + } + return nil + }(); err != nil { + return req, close, errors.Wrap(err, "validate") + } + return request, close, nil + default: + return req, close, validate.InvalidContentType(ct) + } +} diff --git a/internal/integration/test_http_requests/oas_request_encoders_gen.go b/internal/integration/test_http_requests/oas_request_encoders_gen.go index 1aa4d626e..dfeb954db 100644 --- a/internal/integration/test_http_requests/oas_request_encoders_gen.go +++ b/internal/integration/test_http_requests/oas_request_encoders_gen.go @@ -243,9 +243,13 @@ func encodeBase64RequestRequest( r *http.Request, ) error { const contentType = "text/plain" - body := ht.CreateBodyWriter(func(w io.Writer) error { + body := ht.CreateBodyWriter(func(w io.Writer) (rerr error) { writer := base64.NewEncoder(base64.StdEncoding, w) - defer writer.Close() + defer func() { + if rerr == nil { + rerr = writer.Close() + } + }() _, err := io.Copy(writer, req) return err @@ -285,3 +289,28 @@ func encodeMaskContentTypeOptionalRequest( return nil } } + +func encodeStreamJSONRequest( + req []float64, + r *http.Request, +) error { + const contentType = "application/json" + body := ht.CreateBodyWriter(func(w io.Writer) (rerr error) { + e := jx.NewStreamingEncoder(w, -1) + defer func() { + if rerr == nil { + rerr = e.Close() + } + }() + { + e.ArrStart() + for _, elem := range req { + e.Float64(elem) + } + e.ArrEnd() + } + return nil + }) + ht.SetCloserBody(r, body, contentType) + return nil +} diff --git a/internal/integration/test_http_requests/oas_response_decoders_gen.go b/internal/integration/test_http_requests/oas_response_decoders_gen.go index 09ea89dcd..e0ff35779 100644 --- a/internal/integration/test_http_requests/oas_response_decoders_gen.go +++ b/internal/integration/test_http_requests/oas_response_decoders_gen.go @@ -105,8 +105,8 @@ func decodeMaskContentTypeResponse(resp *http.Response) (res *MaskResponse, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MaskResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -146,8 +146,8 @@ func decodeMaskContentTypeOptionalResponse(resp *http.Response) (res *MaskRespon if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response MaskResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -172,3 +172,46 @@ func decodeMaskContentTypeOptionalResponse(resp *http.Response) (res *MaskRespon } return res, validate.UnexpectedStatusCode(resp.StatusCode) } + +func decodeStreamJSONResponse(resp *http.Response) (res float64, err error) { + switch resp.StatusCode { + case 200: + // Code 200. + ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type")) + if err != nil { + return res, errors.Wrap(err, "parse media type") + } + switch { + case ct == "application/json": + buf, err := io.ReadAll(resp.Body) + if err != nil { + return res, err + } + d := jx.DecodeBytes(buf) + + var response float64 + if err := func() error { + v, err := d.Float64() + response = float64(v) + if err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return res, err + } + return response, nil + default: + return res, validate.InvalidContentType(ct) + } + } + return res, validate.UnexpectedStatusCode(resp.StatusCode) +} diff --git a/internal/integration/test_http_requests/oas_response_encoders_gen.go b/internal/integration/test_http_requests/oas_response_encoders_gen.go index 330de538f..2a8f61848 100644 --- a/internal/integration/test_http_requests/oas_response_encoders_gen.go +++ b/internal/integration/test_http_requests/oas_response_encoders_gen.go @@ -75,3 +75,16 @@ func encodeMaskContentTypeOptionalResponse(response *MaskResponse, w http.Respon } return nil } + +func encodeStreamJSONResponse(response float64, w http.ResponseWriter, span trace.Span) error { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + span.SetStatus(codes.Ok, http.StatusText(200)) + + e := jx.GetEncoder() + e.Float64(response) + if _, err := e.WriteTo(w); err != nil { + return errors.Wrap(err, "write") + } + return nil +} diff --git a/internal/integration/test_http_requests/oas_router_gen.go b/internal/integration/test_http_requests/oas_router_gen.go index 68d75079a..abd594b15 100644 --- a/internal/integration/test_http_requests/oas_router_gen.go +++ b/internal/integration/test_http_requests/oas_router_gen.go @@ -144,6 +144,24 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { return } } + case 's': // Prefix: "streamJSON" + if l := len("streamJSON"); len(elem) >= l && elem[0:l] == "streamJSON" { + elem = elem[l:] + } else { + break + } + + if len(elem) == 0 { + // Leaf node. + switch r.Method { + case "POST": + s.handleStreamJSONRequest([0]string{}, w, r) + default: + s.notAllowed(w, r, "POST") + } + + return + } } } } @@ -332,6 +350,27 @@ func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool) { } } } + case 's': // Prefix: "streamJSON" + if l := len("streamJSON"); len(elem) >= l && elem[0:l] == "streamJSON" { + elem = elem[l:] + } else { + break + } + + if len(elem) == 0 { + switch method { + case "POST": + // Leaf: StreamJSON + r.name = "StreamJSON" + r.operationID = "streamJSON" + r.pathPattern = "/streamJSON" + r.args = args + r.count = 0 + return r, true + default: + return + } + } } } } diff --git a/internal/integration/test_http_requests/oas_server_gen.go b/internal/integration/test_http_requests/oas_server_gen.go index d5627e283..f5910b874 100644 --- a/internal/integration/test_http_requests/oas_server_gen.go +++ b/internal/integration/test_http_requests/oas_server_gen.go @@ -28,6 +28,10 @@ type Handler interface { // // POST /maskContentTypeOptional MaskContentTypeOptional(ctx context.Context, req *MaskContentTypeOptionalReqWithContentType) (*MaskResponse, error) + // StreamJSON implements streamJSON operation. + // + // POST /streamJSON + StreamJSON(ctx context.Context, req []float64) (float64, error) } // Server implements http server based on OpenAPI v3 specification and diff --git a/internal/integration/test_http_requests/oas_unimplemented_gen.go b/internal/integration/test_http_requests/oas_unimplemented_gen.go index eeb6e9adb..bfb81d2db 100644 --- a/internal/integration/test_http_requests/oas_unimplemented_gen.go +++ b/internal/integration/test_http_requests/oas_unimplemented_gen.go @@ -47,3 +47,10 @@ func (UnimplementedHandler) MaskContentType(ctx context.Context, req *MaskConten func (UnimplementedHandler) MaskContentTypeOptional(ctx context.Context, req *MaskContentTypeOptionalReqWithContentType) (r *MaskResponse, _ error) { return r, ht.ErrNotImplemented } + +// StreamJSON implements streamJSON operation. +// +// POST /streamJSON +func (UnimplementedHandler) StreamJSON(ctx context.Context, req []float64) (r float64, _ error) { + return r, ht.ErrNotImplemented +} diff --git a/internal/integration/test_http_responses/oas_client_gen.go b/internal/integration/test_http_responses/oas_client_gen.go index 7bd54a83f..d04be88ea 100644 --- a/internal/integration/test_http_responses/oas_client_gen.go +++ b/internal/integration/test_http_responses/oas_client_gen.go @@ -908,6 +908,90 @@ func (c *Client) sendOctetStreamEmptySchema(ctx context.Context) (res OctetStrea return result, nil } +// StreamJSON invokes streamJSON operation. +// +// POST /streamJSON +func (c *Client) StreamJSON(ctx context.Context, params StreamJSONParams) (StreamJSONRes, error) { + res, err := c.sendStreamJSON(ctx, params) + _ = res + return res, err +} + +func (c *Client) sendStreamJSON(ctx context.Context, params StreamJSONParams) (res StreamJSONRes, err error) { + otelAttrs := []attribute.KeyValue{ + otelogen.OperationID("streamJSON"), + } + + // Run stopwatch. + startTime := time.Now() + defer func() { + elapsedDuration := time.Since(startTime) + c.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + }() + + // Increment request counter. + c.requests.Add(ctx, 1, otelAttrs...) + + // Start a span for this request. + ctx, span := c.cfg.Tracer.Start(ctx, "StreamJSON", + trace.WithAttributes(otelAttrs...), + clientSpanKind, + ) + // Track stage for error reporting. + var stage string + defer func() { + if err != nil { + span.RecordError(err) + span.SetStatus(codes.Error, stage) + c.errors.Add(ctx, 1, otelAttrs...) + } + span.End() + }() + + stage = "BuildURL" + u := uri.Clone(c.requestURL(ctx)) + u.Path += "/streamJSON" + + stage = "EncodeQueryParams" + q := uri.NewQueryEncoder() + { + // Encode "count" parameter. + cfg := uri.QueryParameterEncodingConfig{ + Name: "count", + Style: uri.QueryStyleForm, + Explode: true, + } + + if err := q.EncodeParam(cfg, func(e uri.Encoder) error { + return e.EncodeValue(conv.IntToString(params.Count)) + }); err != nil { + return res, errors.Wrap(err, "encode query") + } + } + u.RawQuery = q.Values().Encode() + + stage = "EncodeRequest" + r, err := ht.NewRequest(ctx, "POST", u, nil) + if err != nil { + return res, errors.Wrap(err, "create request") + } + + stage = "SendRequest" + resp, err := c.cfg.Client.Do(r) + if err != nil { + return res, errors.Wrap(err, "do request") + } + defer resp.Body.Close() + + stage = "DecodeResponse" + result, err := decodeStreamJSONResponse(resp) + if err != nil { + return res, errors.Wrap(err, "decode response") + } + + return result, nil +} + // TextPlainBinaryStringSchema invokes textPlainBinaryStringSchema operation. // // GET /textPlainBinaryStringSchema diff --git a/internal/integration/test_http_responses/oas_handlers_gen.go b/internal/integration/test_http_responses/oas_handlers_gen.go index 66e669a70..7661d26b3 100644 --- a/internal/integration/test_http_responses/oas_handlers_gen.go +++ b/internal/integration/test_http_responses/oas_handlers_gen.go @@ -1024,6 +1024,104 @@ func (s *Server) handleOctetStreamEmptySchemaRequest(args [0]string, w http.Resp } } +// handleStreamJSONRequest handles streamJSON operation. +// +// POST /streamJSON +func (s *Server) handleStreamJSONRequest(args [0]string, w http.ResponseWriter, r *http.Request) { + otelAttrs := []attribute.KeyValue{ + otelogen.OperationID("streamJSON"), + } + + // Start a span for this request. + ctx, span := s.cfg.Tracer.Start(r.Context(), "StreamJSON", + trace.WithAttributes(otelAttrs...), + serverSpanKind, + ) + defer span.End() + + // Run stopwatch. + startTime := time.Now() + defer func() { + elapsedDuration := time.Since(startTime) + s.duration.Record(ctx, elapsedDuration.Microseconds(), otelAttrs...) + }() + + // Increment request counter. + s.requests.Add(ctx, 1, otelAttrs...) + + var ( + recordError = func(stage string, err error) { + span.RecordError(err) + span.SetStatus(codes.Error, stage) + s.errors.Add(ctx, 1, otelAttrs...) + } + err error + opErrContext = ogenerrors.OperationContext{ + Name: "StreamJSON", + ID: "streamJSON", + } + ) + params, err := decodeStreamJSONParams(args, r) + if err != nil { + err = &ogenerrors.DecodeParamsError{ + OperationContext: opErrContext, + Err: err, + } + recordError("DecodeParams", err) + s.cfg.ErrorHandler(ctx, w, r, err) + return + } + + var response StreamJSONRes + if m := s.cfg.Middleware; m != nil { + mreq := middleware.Request{ + Context: ctx, + OperationName: "StreamJSON", + OperationID: "streamJSON", + Body: nil, + Params: middleware.Parameters{ + { + Name: "count", + In: "query", + }: params.Count, + }, + Raw: r, + } + + type ( + Request = struct{} + Params = StreamJSONParams + Response = StreamJSONRes + ) + response, err = middleware.HookMiddleware[ + Request, + Params, + Response, + ]( + m, + mreq, + unpackStreamJSONParams, + func(ctx context.Context, request Request, params Params) (response Response, err error) { + response, err = s.h.StreamJSON(ctx, params) + return response, err + }, + ) + } else { + response, err = s.h.StreamJSON(ctx, params) + } + if err != nil { + recordError("Internal", err) + s.cfg.ErrorHandler(ctx, w, r, err) + return + } + + if err := encodeStreamJSONResponse(response, w, span); err != nil { + recordError("EncodeResponse", err) + s.cfg.ErrorHandler(ctx, w, r, err) + return + } +} + // handleTextPlainBinaryStringSchemaRequest handles textPlainBinaryStringSchema operation. // // GET /textPlainBinaryStringSchema diff --git a/internal/integration/test_http_responses/oas_interfaces_gen.go b/internal/integration/test_http_responses/oas_interfaces_gen.go index 80d7dbc08..61456442c 100644 --- a/internal/integration/test_http_responses/oas_interfaces_gen.go +++ b/internal/integration/test_http_responses/oas_interfaces_gen.go @@ -16,3 +16,7 @@ type IntersectPatternCodeRes interface { type MultipleGenericResponsesRes interface { multipleGenericResponsesRes() } + +type StreamJSONRes interface { + streamJSONRes() +} diff --git a/internal/integration/test_http_responses/oas_json_gen.go b/internal/integration/test_http_responses/oas_json_gen.go index 037f71a26..f0610b627 100644 --- a/internal/integration/test_http_responses/oas_json_gen.go +++ b/internal/integration/test_http_responses/oas_json_gen.go @@ -109,6 +109,103 @@ func (s *CombinedOK) UnmarshalJSON(data []byte) error { return s.Decode(d) } +// Encode implements json.Marshaler. +func (s *Error) Encode(e *jx.Encoder) { + e.ObjStart() + s.encodeFields(e) + e.ObjEnd() +} + +// encodeFields encodes fields. +func (s *Error) encodeFields(e *jx.Encoder) { + { + + e.FieldStart("error") + e.Str(s.Error) + } +} + +var jsonFieldsNameOfError = [1]string{ + 0: "error", +} + +// Decode decodes Error from json. +func (s *Error) Decode(d *jx.Decoder) error { + if s == nil { + return errors.New("invalid: unable to decode Error to nil") + } + var requiredBitSet [1]uint8 + + if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error { + switch string(k) { + case "error": + requiredBitSet[0] |= 1 << 0 + if err := func() error { + v, err := d.Str() + s.Error = string(v) + if err != nil { + return err + } + return nil + }(); err != nil { + return errors.Wrap(err, "decode field \"error\"") + } + default: + return d.Skip() + } + return nil + }); err != nil { + return errors.Wrap(err, "decode Error") + } + // Validate required fields. + var failures []validate.FieldError + for i, mask := range [1]uint8{ + 0b00000001, + } { + if result := (requiredBitSet[i] & mask) ^ mask; result != 0 { + // Mask only required fields and check equality to mask using XOR. + // + // If XOR result is not zero, result is not equal to expected, so some fields are missed. + // Bits of fields which would be set are actually bits of missed fields. + missed := bits.OnesCount8(result) + for bitN := 0; bitN < missed; bitN++ { + bitIdx := bits.TrailingZeros8(result) + fieldIdx := i*8 + bitIdx + var name string + if fieldIdx < len(jsonFieldsNameOfError) { + name = jsonFieldsNameOfError[fieldIdx] + } else { + name = strconv.Itoa(fieldIdx) + } + failures = append(failures, validate.FieldError{ + Name: name, + Error: validate.ErrFieldRequired, + }) + // Reset bit. + result &^= 1 << bitIdx + } + } + } + if len(failures) > 0 { + return &validate.Error{Fields: failures} + } + + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s *Error) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *Error) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + // Encode encodes IntersectPatternCodeOKApplicationJSON as json. func (s IntersectPatternCodeOKApplicationJSON) Encode(e *jx.Encoder) { unwrapped := string(s) @@ -241,6 +338,58 @@ func (s *NilString) UnmarshalJSON(data []byte) error { return s.Decode(d) } +// Encode encodes QueryData as json. +func (s QueryData) Encode(e *jx.Encoder) { + unwrapped := []float64(s) + + e.ArrStart() + for _, elem := range unwrapped { + e.Float64(elem) + } + e.ArrEnd() +} + +// Decode decodes QueryData from json. +func (s *QueryData) Decode(d *jx.Decoder) error { + if s == nil { + return errors.New("invalid: unable to decode QueryData to nil") + } + var unwrapped []float64 + if err := func() error { + unwrapped = make([]float64, 0) + if err := d.Arr(func(d *jx.Decoder) error { + var elem float64 + v, err := d.Float64() + elem = float64(v) + if err != nil { + return err + } + unwrapped = append(unwrapped, elem) + return nil + }); err != nil { + return err + } + return nil + }(); err != nil { + return errors.Wrap(err, "alias") + } + *s = QueryData(unwrapped) + return nil +} + +// MarshalJSON implements stdjson.Marshaler. +func (s QueryData) MarshalJSON() ([]byte, error) { + e := jx.Encoder{} + s.Encode(&e) + return e.Bytes(), nil +} + +// UnmarshalJSON implements stdjson.Unmarshaler. +func (s *QueryData) UnmarshalJSON(data []byte) error { + d := jx.DecodeBytes(data) + return s.Decode(d) +} + // Encode implements json.Marshaler. func (s *User) Encode(e *jx.Encoder) { e.ObjStart() diff --git a/internal/integration/test_http_responses/oas_parameters_gen.go b/internal/integration/test_http_responses/oas_parameters_gen.go index 0a396c373..628e18ba4 100644 --- a/internal/integration/test_http_responses/oas_parameters_gen.go +++ b/internal/integration/test_http_responses/oas_parameters_gen.go @@ -198,3 +198,60 @@ func decodeIntersectPatternCodeParams(args [0]string, r *http.Request) (params I } return params, nil } + +// StreamJSONParams is parameters of streamJSON operation. +type StreamJSONParams struct { + Count int +} + +func unpackStreamJSONParams(packed middleware.Parameters) (params StreamJSONParams) { + { + key := middleware.ParameterKey{ + Name: "count", + In: "query", + } + params.Count = packed[key].(int) + } + return params +} + +func decodeStreamJSONParams(args [0]string, r *http.Request) (params StreamJSONParams, _ error) { + q := uri.NewQueryDecoder(r.URL.Query()) + // Decode query: count. + if err := func() error { + cfg := uri.QueryParameterDecodingConfig{ + Name: "count", + 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.ToInt(val) + if err != nil { + return err + } + + params.Count = c + return nil + }); err != nil { + return err + } + } else { + return validate.ErrFieldRequired + } + return nil + }(); err != nil { + return params, &ogenerrors.DecodeParamError{ + Name: "count", + In: "query", + Err: err, + } + } + return params, nil +} diff --git a/internal/integration/test_http_responses/oas_response_decoders_gen.go b/internal/integration/test_http_responses/oas_response_decoders_gen.go index 5177a88ef..90b2a9033 100644 --- a/internal/integration/test_http_responses/oas_response_decoders_gen.go +++ b/internal/integration/test_http_responses/oas_response_decoders_gen.go @@ -81,8 +81,8 @@ func decodeCombinedResponse(resp *http.Response) (res CombinedRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response CombinedOK if err := func() error { if err := response.Decode(d); err != nil { @@ -118,8 +118,8 @@ func decodeCombinedResponse(resp *http.Response) (res CombinedRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response int if err := func() error { v, err := d.Int() @@ -158,8 +158,8 @@ func decodeCombinedResponse(resp *http.Response) (res CombinedRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response bool if err := func() error { v, err := d.Bool() @@ -198,8 +198,8 @@ func decodeCombinedResponse(resp *http.Response) (res CombinedRes, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response []string if err := func() error { response = make([]string, 0) @@ -551,8 +551,8 @@ func decodeIntersectPatternCodeResponse(resp *http.Response) (res IntersectPatte if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response IntersectPatternCodeOKApplicationJSON if err := func() error { if err := response.Decode(d); err != nil { @@ -588,8 +588,8 @@ func decodeIntersectPatternCodeResponse(resp *http.Response) (res IntersectPatte if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response int if err := func() error { v, err := d.Int() @@ -634,8 +634,8 @@ func decodeMultipleGenericResponsesResponse(resp *http.Response) (res MultipleGe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilInt if err := func() error { if err := response.Decode(d); err != nil { @@ -669,8 +669,8 @@ func decodeMultipleGenericResponsesResponse(resp *http.Response) (res MultipleGe if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response NilString if err := func() error { if err := response.Decode(d); err != nil { @@ -746,6 +746,78 @@ func decodeOctetStreamEmptySchemaResponse(resp *http.Response) (res OctetStreamE return res, validate.UnexpectedStatusCode(resp.StatusCode) } +func decodeStreamJSONResponse(resp *http.Response) (res StreamJSONRes, err error) { + switch resp.StatusCode { + case 200: + // Code 200. + ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type")) + if err != nil { + return res, errors.Wrap(err, "parse media type") + } + switch { + case ct == "application/json": + d := jx.Decode(resp.Body, -1) + + var response QueryData + if err := func() error { + if err := response.Decode(d); err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return res, err + } + return &response, nil + default: + return res, validate.InvalidContentType(ct) + } + case 400: + // Code 400. + ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type")) + if err != nil { + return res, errors.Wrap(err, "parse media type") + } + switch { + case ct == "application/json": + buf, err := io.ReadAll(resp.Body) + if err != nil { + return res, err + } + d := jx.DecodeBytes(buf) + + var response Error + if err := func() error { + if err := response.Decode(d); err != nil { + return err + } + if err := d.Skip(); err != io.EOF { + return errors.New("unexpected trailing data") + } + return nil + }(); err != nil { + err = &ogenerrors.DecodeBodyError{ + ContentType: ct, + Body: buf, + Err: err, + } + return res, err + } + return &response, nil + default: + return res, validate.InvalidContentType(ct) + } + } + return res, validate.UnexpectedStatusCode(resp.StatusCode) +} + func decodeTextPlainBinaryStringSchemaResponse(resp *http.Response) (res TextPlainBinaryStringSchemaOK, err error) { switch resp.StatusCode { case 200: diff --git a/internal/integration/test_http_responses/oas_response_encoders_gen.go b/internal/integration/test_http_responses/oas_response_encoders_gen.go index de6bebda1..2dd6212d9 100644 --- a/internal/integration/test_http_responses/oas_response_encoders_gen.go +++ b/internal/integration/test_http_responses/oas_response_encoders_gen.go @@ -461,6 +461,37 @@ func encodeOctetStreamEmptySchemaResponse(response OctetStreamEmptySchemaOK, w h return nil } +func encodeStreamJSONResponse(response StreamJSONRes, w http.ResponseWriter, span trace.Span) error { + switch response := response.(type) { + case *QueryData: + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(200) + span.SetStatus(codes.Ok, http.StatusText(200)) + + e := jx.NewStreamingEncoder(w, -1) + response.Encode(e) + if err := e.Close(); err != nil { + return errors.Wrap(err, "flush streaming") + } + return nil + + case *Error: + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(400) + span.SetStatus(codes.Error, http.StatusText(400)) + + e := jx.GetEncoder() + response.Encode(e) + if _, err := e.WriteTo(w); err != nil { + return errors.Wrap(err, "write") + } + return nil + + default: + return errors.Errorf("unexpected response type: %T", response) + } +} + func encodeTextPlainBinaryStringSchemaResponse(response TextPlainBinaryStringSchemaOK, w http.ResponseWriter, span trace.Span) error { w.Header().Set("Content-Type", "text/plain") w.WriteHeader(200) diff --git a/internal/integration/test_http_responses/oas_router_gen.go b/internal/integration/test_http_responses/oas_router_gen.go index 03da55944..ccecc2db9 100644 --- a/internal/integration/test_http_responses/oas_router_gen.go +++ b/internal/integration/test_http_responses/oas_router_gen.go @@ -293,6 +293,24 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { return } } + case 's': // Prefix: "streamJSON" + if l := len("streamJSON"); len(elem) >= l && elem[0:l] == "streamJSON" { + elem = elem[l:] + } else { + break + } + + if len(elem) == 0 { + // Leaf node. + switch r.Method { + case "POST": + s.handleStreamJSONRequest([0]string{}, w, r) + default: + s.notAllowed(w, r, "POST") + } + + return + } case 't': // Prefix: "textPlainBinaryStringSchema" if l := len("textPlainBinaryStringSchema"); len(elem) >= l && elem[0:l] == "textPlainBinaryStringSchema" { elem = elem[l:] @@ -669,6 +687,27 @@ func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool) { } } } + case 's': // Prefix: "streamJSON" + if l := len("streamJSON"); len(elem) >= l && elem[0:l] == "streamJSON" { + elem = elem[l:] + } else { + break + } + + if len(elem) == 0 { + switch method { + case "POST": + // Leaf: StreamJSON + r.name = "StreamJSON" + r.operationID = "streamJSON" + r.pathPattern = "/streamJSON" + r.args = args + r.count = 0 + return r, true + default: + return + } + } case 't': // Prefix: "textPlainBinaryStringSchema" if l := len("textPlainBinaryStringSchema"); len(elem) >= l && elem[0:l] == "textPlainBinaryStringSchema" { elem = elem[l:] diff --git a/internal/integration/test_http_responses/oas_schemas_gen.go b/internal/integration/test_http_responses/oas_schemas_gen.go index 1c8cbdcba..8cb57a742 100644 --- a/internal/integration/test_http_responses/oas_schemas_gen.go +++ b/internal/integration/test_http_responses/oas_schemas_gen.go @@ -202,6 +202,23 @@ func (s *CombinedType) UnmarshalText(data []byte) error { } } +// Ref: #/components/schemas/Error +type Error struct { + Error string `json:"error"` +} + +// GetError returns the value of Error. +func (s *Error) GetError() string { + return s.Error +} + +// SetError sets the value of Error. +func (s *Error) SetError(val string) { + s.Error = val +} + +func (*Error) streamJSONRes() {} + // Headers200OK is response for Headers200 operation. type Headers200OK struct { XTestHeader string @@ -541,6 +558,10 @@ func (s OctetStreamEmptySchemaOK) Read(p []byte) (n int, err error) { return s.Data.Read(p) } +type QueryData []float64 + +func (*QueryData) streamJSONRes() {} + type TextPlainBinaryStringSchemaOK struct { Data io.Reader } diff --git a/internal/integration/test_http_responses/oas_server_gen.go b/internal/integration/test_http_responses/oas_server_gen.go index 9e5f41cc6..4c691c03f 100644 --- a/internal/integration/test_http_responses/oas_server_gen.go +++ b/internal/integration/test_http_responses/oas_server_gen.go @@ -59,6 +59,10 @@ type Handler interface { // // GET /octetStreamEmptySchema OctetStreamEmptySchema(ctx context.Context) (OctetStreamEmptySchemaOK, error) + // StreamJSON implements streamJSON operation. + // + // POST /streamJSON + StreamJSON(ctx context.Context, params StreamJSONParams) (StreamJSONRes, error) // TextPlainBinaryStringSchema implements textPlainBinaryStringSchema operation. // // GET /textPlainBinaryStringSchema diff --git a/internal/integration/test_http_responses/oas_unimplemented_gen.go b/internal/integration/test_http_responses/oas_unimplemented_gen.go index 84e33316e..7a4e2e618 100644 --- a/internal/integration/test_http_responses/oas_unimplemented_gen.go +++ b/internal/integration/test_http_responses/oas_unimplemented_gen.go @@ -100,6 +100,13 @@ func (UnimplementedHandler) OctetStreamEmptySchema(ctx context.Context) (r Octet return r, ht.ErrNotImplemented } +// StreamJSON implements streamJSON operation. +// +// POST /streamJSON +func (UnimplementedHandler) StreamJSON(ctx context.Context, params StreamJSONParams) (r StreamJSONRes, _ error) { + return r, ht.ErrNotImplemented +} + // TextPlainBinaryStringSchema implements textPlainBinaryStringSchema operation. // // GET /textPlainBinaryStringSchema diff --git a/internal/integration/test_http_responses/oas_validators_gen.go b/internal/integration/test_http_responses/oas_validators_gen.go index 63af71e04..6b731aabe 100644 --- a/internal/integration/test_http_responses/oas_validators_gen.go +++ b/internal/integration/test_http_responses/oas_validators_gen.go @@ -72,6 +72,29 @@ func (s *HeadersJSONOK) Validate() error { } return nil } +func (s QueryData) Validate() error { + if s == nil { + return errors.New("nil is invalid value") + } + var failures []validate.FieldError + for i, elem := range s { + if err := func() error { + if err := (validate.Float{}).Validate(float64(elem)); err != nil { + return errors.Wrap(err, "float") + } + return nil + }(); err != nil { + failures = append(failures, validate.FieldError{ + Name: fmt.Sprintf("[%d]", i), + Error: err, + }) + } + } + if len(failures) > 0 { + return &validate.Error{Fields: failures} + } + return nil +} func (s *User) Validate() error { var failures []validate.FieldError if err := func() error { diff --git a/internal/integration/test_parameters/oas_response_decoders_gen.go b/internal/integration/test_parameters/oas_response_decoders_gen.go index a71a6e5eb..64c4e49e0 100644 --- a/internal/integration/test_parameters/oas_response_decoders_gen.go +++ b/internal/integration/test_parameters/oas_response_decoders_gen.go @@ -37,8 +37,8 @@ func decodeContentQueryParameterResponse(resp *http.Response) (res string, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response string if err := func() error { v, err := d.Str() @@ -80,8 +80,8 @@ func decodeHeaderParameterResponse(resp *http.Response) (res *Hash, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Hash if err := func() error { if err := response.Decode(d); err != nil { @@ -121,8 +121,8 @@ func decodeObjectQueryParameterResponse(resp *http.Response) (res *ObjectQueryPa if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response ObjectQueryParameterOK if err := func() error { if err := response.Decode(d); err != nil { @@ -162,8 +162,8 @@ func decodePathObjectParameterResponse(resp *http.Response) (res *User, err erro if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response User if err := func() error { if err := response.Decode(d); err != nil { diff --git a/internal/integration/test_servers/oas_response_decoders_gen.go b/internal/integration/test_servers/oas_response_decoders_gen.go index 6633b253d..813c7268f 100644 --- a/internal/integration/test_servers/oas_response_decoders_gen.go +++ b/internal/integration/test_servers/oas_response_decoders_gen.go @@ -28,8 +28,8 @@ func decodeProbeLivenessResponse(resp *http.Response) (res string, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response string if err := func() error { v, err := d.Str() @@ -66,8 +66,8 @@ func decodeProbeLivenessResponse(resp *http.Response) (res string, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { diff --git a/internal/integration/test_single_endpoint/oas_response_decoders_gen.go b/internal/integration/test_single_endpoint/oas_response_decoders_gen.go index 6633b253d..813c7268f 100644 --- a/internal/integration/test_single_endpoint/oas_response_decoders_gen.go +++ b/internal/integration/test_single_endpoint/oas_response_decoders_gen.go @@ -28,8 +28,8 @@ func decodeProbeLivenessResponse(resp *http.Response) (res string, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response string if err := func() error { v, err := d.Str() @@ -66,8 +66,8 @@ func decodeProbeLivenessResponse(resp *http.Response) (res string, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { diff --git a/internal/integration/test_webhooks/oas_request_decoders_gen.go b/internal/integration/test_webhooks/oas_request_decoders_gen.go index 100f100fb..2cc9fc789 100644 --- a/internal/integration/test_webhooks/oas_request_decoders_gen.go +++ b/internal/integration/test_webhooks/oas_request_decoders_gen.go @@ -47,8 +47,6 @@ func (s *Server) decodePublishEventRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptEvent buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -59,6 +57,8 @@ func (s *Server) decodePublishEventRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptEvent if err := func() error { request.Reset() if err := request.Decode(d); err != nil { @@ -114,8 +114,6 @@ func (s *WebhookServer) decodeUpdateWebhookRequest(r *http.Request) ( if r.ContentLength == 0 { return req, close, nil } - - var request OptEvent buf, err := io.ReadAll(r.Body) if err != nil { return req, close, err @@ -126,6 +124,8 @@ func (s *WebhookServer) decodeUpdateWebhookRequest(r *http.Request) ( } d := jx.DecodeBytes(buf) + + var request OptEvent if err := func() error { request.Reset() if err := request.Decode(d); err != nil { diff --git a/internal/integration/test_webhooks/oas_response_decoders_gen.go b/internal/integration/test_webhooks/oas_response_decoders_gen.go index bda8cb71d..f03a84490 100644 --- a/internal/integration/test_webhooks/oas_response_decoders_gen.go +++ b/internal/integration/test_webhooks/oas_response_decoders_gen.go @@ -28,8 +28,8 @@ func decodePublishEventResponse(resp *http.Response) (res *Event, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Event if err := func() error { if err := response.Decode(d); err != nil { @@ -64,8 +64,8 @@ func decodePublishEventResponse(resp *http.Response) (res *Event, err error) { if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -111,8 +111,8 @@ func decodeStatusWebhookResponse(resp *http.Response) (res *StatusWebhookOK, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response StatusWebhookOK if err := func() error { if err := response.Decode(d); err != nil { @@ -155,8 +155,8 @@ func decodeUpdateDeleteResponse(resp *http.Response) (res UpdateDeleteRes, err e if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil { @@ -197,8 +197,8 @@ func decodeUpdateWebhookResponse(resp *http.Response) (res UpdateWebhookRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response WebhookResponse if err := func() error { if err := response.Decode(d); err != nil { @@ -232,8 +232,8 @@ func decodeUpdateWebhookResponse(resp *http.Response) (res UpdateWebhookRes, err if err != nil { return res, err } - d := jx.DecodeBytes(buf) + var response Error if err := func() error { if err := response.Decode(d); err != nil {